Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005066/0.005066, allocations: 100.9 kB / 15.73 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 189.2 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 71.88 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3661, allocations: 159.9 MB / 1.226 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001845/0.368, allocations: 0.6671 MB / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008717/0.3689, allocations: 0.7884 MB / 1.227 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.7e-05/0.369, allocations: 4 kB / 1.227 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.833e-05/0.3691, allocations: 4 kB / 1.227 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.2e-05/0.3692, allocations: 7.938 kB / 1.227 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.747e-05/0.3692, allocations: 7.984 kB / 1.227 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.3694, allocations: 59.83 kB / 1.227 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.3695, allocations: 19.98 kB / 1.227 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.532e-05/0.3696, allocations: 27.91 kB / 1.227 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.436e-05/0.3697, allocations: 31.86 kB / 1.227 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.3697, allocations: 4 kB / 1.227 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.3697, allocations: 4 kB / 1.227 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.944e-05/0.3698, allocations: 19.97 kB / 1.227 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.185e-05/0.3698, allocations: 19.88 kB / 1.227 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.37, allocations: 79.64 kB / 1.227 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.37, allocations: 3.938 kB / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.37, allocations: 0 / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.37, allocations: 0 / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007005/0.3707, allocations: 391.2 kB / 1.228 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.3708, allocations: 12.03 kB / 1.228 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.3708, allocations: 8.891 kB / 1.228 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.371, allocations: 184.3 kB / 1.228 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.371, allocations: 4.375 kB / 1.228 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.371, allocations: 4.375 kB / 1.228 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003221/0.3713, allocations: 135.8 kB / 1.228 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3714, allocations: 192 / 1.228 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.3714, allocations: 7.938 kB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3714, allocations: 0 / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003641/0.3718, allocations: 123.8 kB / 1.228 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006481/0.3724, allocations: 440.9 kB / 1.229 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.3727, allocations: 93.02 kB / 1.229 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.3728, allocations: 69.7 kB / 1.229 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.3729, allocations: 0 / 1.229 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.3729, allocations: 30.56 kB / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3729, allocations: 0 / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0006585/0.3736, allocations: 189.4 kB / 1.229 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.3736, allocations: 81.09 kB / 1.229 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3738, allocations: 117.8 kB / 1.229 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.3738, allocations: 25.7 kB / 1.229 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.3739, allocations: 104.3 kB / 1.229 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.3739, allocations: 7.891 kB / 1.229 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.3739, allocations: 17.72 kB / 1.229 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3741, allocations: 322.7 kB / 1.23 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.3742, allocations: 51.92 kB / 1.23 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.3744, allocations: 69.64 kB / 1.23 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003252/0.3747, allocations: 101.6 kB / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3748, allocations: 0 / 1.23 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000371/0.3751, allocations: 145.5 kB / 1.23 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3752, allocations: 4 kB / 1.23 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3752, allocations: 4 kB / 1.23 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3752, allocations: 0 / 1.23 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.3753, allocations: 19.97 kB / 1.23 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3753, allocations: 0 / 1.23 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.045e-05/0.3754, allocations: 23.97 kB / 1.23 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.3755, allocations: 0 / 1.23 GB, free: 4.445 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.865e-05/0.3756, allocations: 122.4 kB / 1.23 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.3756, allocations: 4 kB / 1.23 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.3756, allocations: 15.52 kB / 1.23 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3756, allocations: 0 / 1.23 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3757, allocations: 0 / 1.23 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3757, allocations: 3.938 kB / 1.23 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.3759, allocations: 185.6 kB / 1.23 GB, free: 4.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3759, allocations: 4.375 kB / 1.23 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.513e-05/0.376, allocations: 23.91 kB / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.376, allocations: 0 / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.376, allocations: 0 / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.376, allocations: 7.938 kB / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.376, allocations: 0 / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004711/0.3765, allocations: 310.6 kB / 1.231 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.235e-05/0.3766, allocations: 81.09 kB / 1.231 GB, free: 3.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.3766, allocations: 4 kB / 1.231 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.3767, allocations: 15.98 kB / 1.231 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.3768, allocations: 11.92 kB / 1.231 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.3768, allocations: 0 / 1.231 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.634e-05/0.3769, allocations: 103.2 kB / 1.231 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.573e-06/0.3769, allocations: 0 / 1.231 GB, free: 3.469 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002528/0.3771, allocations: 19.83 kB / 1.231 GB, free: 3.449 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001233/0.3773, allocations: 99.23 kB / 1.231 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004009/0.3777, allocations: 111.9 kB / 1.231 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3777, allocations: 0 / 1.231 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.3779, allocations: 67.86 kB / 1.231 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.3782, allocations: 9.859 kB / 1.231 GB, free: 3.16 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003489/0.3786, allocations: 174.3 kB / 1.231 GB, free: 2.961 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.3788, allocations: 0.6963 MB / 1.232 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.233e-05/0.3789, allocations: 15.84 kB / 1.232 GB, free: 2.223 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.275e-05/0.3789, allocations: 11.44 kB / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.3789, allocations: 0 / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of Templates: time 0.003011/0.382, allocations: 0.798 MB / 1.233 GB, free: 1.422 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[313]=2.990000 File[5002]=1.000000 Error: Could not read variable reaRep.y[1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! " Variables in the reference:time,reaRep.u[1],reaRep.y[1,1],reaRep.y[2,2],reaRep.y[3,2] Variables in the result:ram[1].duration,ram[1].height,ram[1].offset,ram[1].startTime,ram[2].duration,ram[2].height,ram[2].offset,ram[2].startTime,reaRep.nin,reaRep.nout,reaRep.u[1],reaRep.y[3,1],time