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.001194/0.001194, allocations: 114.4 kB / 16.42 MB, free: 6.504 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.00121/0.00121, allocations: 189.4 kB / 17.34 MB, free: 5.738 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.403/1.403, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.567/2.567, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 59.91 kB / 1.055 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021/1.022, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002271/1.025, allocations: 0.6466 MB / 1.209 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001115/1.026, allocations: 0.7962 MB / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.082e-05/1.026, allocations: 4 kB / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001077/1.026, allocations: 3.938 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.823e-05/1.026, allocations: 7.984 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 7.526e-05/1.026, allocations: 11.98 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001303/1.026, allocations: 55.84 kB / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/1.026, allocations: 19.97 kB / 1.21 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.774e-05/1.026, allocations: 23.92 kB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.355e-05/1.027, allocations: 27.92 kB / 1.21 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/1.027, allocations: 4 kB / 1.21 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.265e-05/1.027, allocations: 4 kB / 1.21 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.519e-05/1.027, allocations: 31.89 kB / 1.21 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.614e-05/1.027, allocations: 27.81 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001374/1.027, allocations: 67.78 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/1.027, allocations: 0 / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.405e-06/1.027, allocations: 0 / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.131e-06/1.027, allocations: 0 / 1.21 GB, free: 11.89 MB / 0.9356 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.0006955/1.028, allocations: 396.9 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/1.028, allocations: 8.031 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/1.028, allocations: 8.844 kB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/1.028, allocations: 184.3 kB / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/1.028, allocations: 8.312 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.616e-05/1.028, allocations: 4.375 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003467/1.028, allocations: 135.8 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/1.028, allocations: 192 / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/1.028, allocations: 7.938 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/1.028, allocations: 0 / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003737/1.029, allocations: 123.8 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006765/1.029, allocations: 436.9 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/1.03, allocations: 93.08 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/1.03, allocations: 65.7 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.394e-05/1.03, allocations: 0 / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/1.03, allocations: 34.56 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/1.03, allocations: 3.938 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0006448/1.031, allocations: 189.5 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/1.031, allocations: 85.03 kB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/1.031, allocations: 117.8 kB / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/1.031, allocations: 29.7 kB / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.344e-05/1.031, allocations: 95.97 kB / 1.212 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/1.031, allocations: 11.91 kB / 1.212 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.905e-05/1.031, allocations: 13.88 kB / 1.212 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001291/1.031, allocations: 322.8 kB / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/1.031, allocations: 51.92 kB / 1.212 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/1.031, allocations: 61.64 kB / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/1.032, allocations: 109.7 kB / 1.213 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/1.032, allocations: 0 / 1.213 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003887/1.032, allocations: 141.5 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/1.032, allocations: 12.31 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/1.032, allocations: 0 / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/1.032, allocations: 0 / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/1.032, allocations: 19.97 kB / 1.213 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/1.032, allocations: 3.938 kB / 1.213 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.397e-05/1.032, allocations: 15.97 kB / 1.213 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/1.032, allocations: 7.938 kB / 1.213 GB, free: 8.887 MB / 0.9356 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.185e-05/1.033, allocations: 129.8 kB / 1.213 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/1.033, allocations: 3.906 kB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/1.033, allocations: 11.53 kB / 1.213 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/1.033, allocations: 0 / 1.213 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/1.033, allocations: 0 / 1.213 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-05/1.033, allocations: 81.11 kB / 1.213 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/1.033, allocations: 7.922 kB / 1.213 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/1.033, allocations: 11.98 kB / 1.213 GB, free: 8.609 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/1.033, allocations: 15.98 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004875/1.033, allocations: 304 kB / 1.213 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005179/1.034, allocations: 385.9 kB / 1.214 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001905/1.034, allocations: 63.91 kB / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.131e-05/1.034, allocations: 99.3 kB / 1.214 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of Backend: time 4.6e-07/1.034, allocations: 3.938 kB / 1.214 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005867/1.035, allocations: 130.3 kB / 1.214 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0006264/1.035, allocations: 0.6117 MB / 1.215 GB, free: 6.938 MB / 0.9356 GB Notification: Performance of Templates: time 0.003504/1.039, allocations: 1.048 MB / 1.216 GB, free: 5.898 MB / 0.9356 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/jenkins1/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