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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001503/0.001503, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001776/0.001776, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.577/1.577, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.768/2.768, allocations: 461.8 MB / 0.7342 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 67.94 kB / 0.8984 GB, free: 37.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3724, allocations: 157.4 MB / 1.052 GB, free: 8.812 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002158/0.3746, allocations: 0.7015 MB / 1.053 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009265/0.3756, allocations: 0.8001 MB / 1.054 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.492e-05/0.3757, allocations: 0 / 1.054 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.3758, allocations: 7.938 kB / 1.054 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.939e-05/0.3759, allocations: 0 / 1.054 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 6.252e-05/0.376, allocations: 11.92 kB / 1.054 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001034/0.3761, allocations: 55.84 kB / 1.054 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.3762, allocations: 23.98 kB / 1.054 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.185e-05/0.3763, allocations: 23.92 kB / 1.054 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.868e-05/0.3764, allocations: 27.89 kB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.774e-05/0.3764, allocations: 7.938 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.09e-05/0.3764, allocations: 0 / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.994e-05/0.3765, allocations: 19.92 kB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.3765, allocations: 31.86 kB / 1.054 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.719e-05/0.3766, allocations: 59.78 kB / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3767, allocations: 0 / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.143e-06/0.3767, allocations: 0 / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.3767, allocations: 0 / 1.054 GB, free: 7.031 MB / 0.8106 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.0006079/0.3773, allocations: 383.6 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3773, allocations: 12.03 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.323e-05/0.3774, allocations: 4.844 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.3776, allocations: 196.2 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3776, allocations: 4.375 kB / 1.054 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.3776, allocations: 4.375 kB / 1.054 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003289/0.378, allocations: 131.8 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.378, allocations: 192 / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.378, allocations: 7.938 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.378, allocations: 3.984 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003574/0.3784, allocations: 127.8 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006081/0.379, allocations: 432.9 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.3792, allocations: 85.08 kB / 1.055 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3794, allocations: 73.7 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.3794, allocations: 0 / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.3795, allocations: 34.5 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.3795, allocations: 0 / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0006516/0.3801, allocations: 197.5 kB / 1.055 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.3802, allocations: 77.11 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3803, allocations: 121.8 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.3803, allocations: 25.7 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.987e-05/0.3804, allocations: 103.9 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.3804, allocations: 0 / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.3805, allocations: 17.72 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3806, allocations: 326.8 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.3808, allocations: 51.92 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.381, allocations: 61.66 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.3813, allocations: 109.6 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3813, allocations: 0 / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003766/0.3817, allocations: 141.5 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3817, allocations: 12 kB / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.3817, allocations: 0 / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.3817, allocations: 0 / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.3819, allocations: 19.97 kB / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.3819, allocations: 0 / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.001e-05/0.382, allocations: 19.92 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.382, allocations: 0 / 1.057 GB, free: 4.039 MB / 0.8106 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.355e-05/0.3821, allocations: 129.8 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.134e-05/0.3822, allocations: 0 / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.568e-05/0.3822, allocations: 15.52 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3822, allocations: 3.938 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3822, allocations: 0 / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3822, allocations: 3.938 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.3825, allocations: 185.5 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3825, allocations: 0 / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.3826, allocations: 15.98 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3826, allocations: 3.984 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3826, allocations: 8.375 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3826, allocations: 0 / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3826, allocations: 0 / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004396/0.3831, allocations: 306.6 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.085e-05/0.3831, allocations: 88.89 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.3832, allocations: 4 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.3833, allocations: 19.97 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.617e-05/0.3834, allocations: 15.86 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.3834, allocations: 0 / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.845e-05/0.3834, allocations: 95.27 kB / 1.057 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3835, allocations: 3.938 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002639/0.3837, allocations: 8 kB / 1.057 GB, free: 3.055 MB / 0.8106 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.000128/0.3839, allocations: 99.28 kB / 1.057 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003858/0.3843, allocations: 111.8 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3843, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001862/0.3845, allocations: 71.98 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.3848, allocations: 4 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003658/0.3852, allocations: 184.2 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.3855, allocations: 0.7043 MB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.079e-05/0.3855, allocations: 15.84 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.972e-05/0.3856, allocations: 7.438 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of SimCode: time 3.6e-07/0.3856, allocations: 4 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of Templates: time 0.002752/0.3883, allocations: 0.6548 MB / 1.059 GB, free: 1.148 MB / 0.8106 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