Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.0018/0.001801, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.002033/0.002033, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.456/1.456, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.701/2.701, allocations: 437 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 63.89 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.095/1.096, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002246/1.098, allocations: 0.6487 MB / 1.168 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009917/1.099, allocations: 0.7923 MB / 1.169 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.078e-05/1.1, allocations: 0 / 1.169 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/1.1, allocations: 11.94 kB / 1.169 GB, free: 2.395 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001051/1.1, allocations: 15.97 kB / 1.169 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 6.805e-05/1.1, allocations: 4 kB / 1.169 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001339/1.1, allocations: 59.83 kB / 1.169 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/1.1, allocations: 15.98 kB / 1.169 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 6.724e-05/1.1, allocations: 27.92 kB / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.875e-05/1.1, allocations: 31.91 kB / 1.169 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/1.1, allocations: 4 kB / 1.169 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.576e-06/1.1, allocations: 0 / 1.169 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.51e-05/1.1, allocations: 27.91 kB / 1.169 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.798e-05/1.101, allocations: 23.86 kB / 1.169 GB, free: 2.188 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/1.101, allocations: 75.38 kB / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/1.101, allocations: 0 / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.723e-06/1.101, allocations: 0 / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.656e-06/1.101, allocations: 0 / 1.169 GB, free: 2.117 MB / 0.8887 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.0006058/1.101, allocations: 400 kB / 1.169 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/1.101, allocations: 12.92 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/1.101, allocations: 0.9375 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/1.102, allocations: 188.3 kB / 1.17 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/1.102, allocations: 4.375 kB / 1.17 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/1.102, allocations: 4.375 kB / 1.17 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003399/1.102, allocations: 146.2 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/1.102, allocations: 192 / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/1.102, allocations: 3.938 kB / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/1.102, allocations: 4 kB / 1.17 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003903/1.102, allocations: 123.8 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000629/1.103, allocations: 432.9 kB / 1.17 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/1.103, allocations: 93.08 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/1.103, allocations: 65.72 kB / 1.17 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/1.104, allocations: 4 kB / 1.17 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/1.104, allocations: 34.56 kB / 1.17 GB, free: 464 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.193e-06/1.104, allocations: 0 / 1.17 GB, free: 464 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0006903/1.104, allocations: 197.5 kB / 1.171 GB, free: 260 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/1.104, allocations: 77.11 kB / 1.171 GB, free: 164 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/1.104, allocations: 125.8 kB / 1.171 GB, free: 28 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/1.104, allocations: 25.7 kB / 1.171 GB, free: 16 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.398e-05/1.105, allocations: 96.03 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/1.105, allocations: 8.094 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.58e-05/1.105, allocations: 17.72 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000128/1.105, allocations: 318.8 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/1.105, allocations: 51.92 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/1.105, allocations: 69.64 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/1.105, allocations: 105.7 kB / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.105, allocations: 0 / 1.171 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003914/1.106, allocations: 141.5 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/1.106, allocations: 7.938 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/1.106, allocations: 0 / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/1.106, allocations: 4.375 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/1.106, allocations: 15.97 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/1.106, allocations: 4 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.864e-05/1.106, allocations: 19.92 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/1.106, allocations: 7.938 kB / 1.172 GB, free: 15.11 MB / 0.9044 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 8.786e-05/1.106, allocations: 124.9 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-05/1.106, allocations: 7.984 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/1.106, allocations: 11.47 kB / 1.172 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/1.106, allocations: 4 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.106, allocations: 0 / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.255e-05/1.106, allocations: 81.06 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/1.106, allocations: 3.938 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/1.107, allocations: 19.97 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/1.107, allocations: 11.97 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005423/1.107, allocations: 304 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004879/1.108, allocations: 382 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001971/1.108, allocations: 59.92 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.31e-05/1.108, allocations: 99.3 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of Backend: time 6.31e-07/1.108, allocations: 0 / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005841/1.109, allocations: 143.9 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0005599/1.109, allocations: 0.596 MB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of Templates: time 0.003126/1.112, allocations: 1.015 MB / 1.174 GB, free: 12.18 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_10_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