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.0017/0.0017, allocations: 108.5 kB / 16.41 MB, free: 6.512 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.002102/0.002103, allocations: 186.7 kB / 17.35 MB, free: 5.723 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.48/1.48, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.77/2.77, allocations: 469.4 MB / 0.7428 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.89 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8453/0.8468, allocations: 159.1 MB / 1.221 GB, free: 2.34 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002141/0.8489, allocations: 0.6409 MB / 1.222 GB, free: 1.699 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00107/0.85, allocations: 0.8001 MB / 1.222 GB, free: 0.8867 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.688e-05/0.8501, allocations: 0 / 1.222 GB, free: 0.8867 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.8503, allocations: 7.922 kB / 1.222 GB, free: 0.8789 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.8504, allocations: 7.938 kB / 1.222 GB, free: 0.8711 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 6.655e-05/0.8505, allocations: 7.984 kB / 1.222 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001233/0.8506, allocations: 59.89 kB / 1.222 GB, free: 0.8047 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.8507, allocations: 12 kB / 1.222 GB, free: 0.793 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.695e-05/0.8508, allocations: 31.91 kB / 1.222 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.293e-05/0.8509, allocations: 35.78 kB / 1.222 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.8509, allocations: 4 kB / 1.222 GB, free: 0.7227 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.322e-05/0.851, allocations: 4 kB / 1.222 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.865e-05/0.851, allocations: 23.97 kB / 1.222 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.092e-05/0.8511, allocations: 19.88 kB / 1.223 GB, free: 0.6758 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.8512, allocations: 75.77 kB / 1.223 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.8512, allocations: 0 / 1.223 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.256e-06/0.8512, allocations: 0 / 1.223 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.8513, allocations: 7.938 kB / 1.223 GB, free: 0.5938 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.0006731/0.8519, allocations: 389 kB / 1.223 GB, free: 172 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.852, allocations: 8.031 kB / 1.223 GB, free: 164 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.022e-05/0.852, allocations: 8.844 kB / 1.223 GB, free: 156 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.8522, allocations: 192.1 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.8523, allocations: 4.375 kB / 1.223 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.8523, allocations: 384 / 1.223 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.8526, allocations: 135.9 kB / 1.223 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.8526, allocations: 192 / 1.223 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.8527, allocations: 11.94 kB / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.8527, allocations: 0 / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003838/0.8531, allocations: 127.8 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006802/0.8538, allocations: 432.9 kB / 1.224 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.854, allocations: 93.12 kB / 1.224 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001945/0.8542, allocations: 61.72 kB / 1.224 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.8542, allocations: 0 / 1.224 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.8542, allocations: 38.48 kB / 1.224 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.8543, allocations: 0 / 1.224 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0006676/0.8549, allocations: 189.4 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.855, allocations: 77.11 kB / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.8551, allocations: 121.8 kB / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.8551, allocations: 25.7 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.024e-05/0.8552, allocations: 104.2 kB / 1.225 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.8552, allocations: 7.906 kB / 1.225 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.8553, allocations: 13.72 kB / 1.225 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.8554, allocations: 318.8 kB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.8556, allocations: 59.86 kB / 1.225 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.8558, allocations: 65.64 kB / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.8562, allocations: 109.9 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.8562, allocations: 0 / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003978/0.8566, allocations: 133.6 kB / 1.225 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.8566, allocations: 4 kB / 1.225 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.8566, allocations: 11.94 kB / 1.225 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.8566, allocations: 0 / 1.225 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.8568, allocations: 23.91 kB / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.8568, allocations: 0 / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.8569, allocations: 23.94 kB / 1.225 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.8569, allocations: 3.938 kB / 1.225 GB, free: 13.6 MB / 0.9512 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 0.0001018/0.857, allocations: 122.4 kB / 1.225 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.579e-05/0.8571, allocations: 4 kB / 1.225 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.498e-05/0.8571, allocations: 7.531 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.8571, allocations: 4 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.8572, allocations: 0 / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.147e-05/0.8572, allocations: 81.02 kB / 1.225 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.8572, allocations: 7.938 kB / 1.225 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.8574, allocations: 19.97 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.8575, allocations: 11.98 kB / 1.226 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005276/0.858, allocations: 308 kB / 1.226 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005073/0.8585, allocations: 377.9 kB / 1.226 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002036/0.8587, allocations: 71.92 kB / 1.226 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.65e-05/0.8588, allocations: 95.25 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of Backend: time 3.8e-07/0.8588, allocations: 0 / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006098/0.8594, allocations: 132.2 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0005997/0.86, allocations: 0.6182 MB / 1.227 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of Templates: time 0.003529/0.8636, allocations: 1.006 MB / 1.228 GB, free: 10.65 MB / 0.9512 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