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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001939/0.001939, allocations: 104 kB / 16.35 MB, free: 5.824 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.001893/0.001893, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.414/1.414, 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 11.0.0-master/package.mo): time 2.572/2.572, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 62.91 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3501, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002015/0.3521, allocations: 0.6559 MB / 1.027 GB, free: 1.363 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009568/0.3531, allocations: 0.7947 MB / 1.028 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.635e-05/0.3532, allocations: 4 kB / 1.028 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.3533, allocations: 11.92 kB / 1.028 GB, free: 0.543 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.532e-05/0.3534, allocations: 7.984 kB / 1.028 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 6.21e-05/0.3535, allocations: 7.984 kB / 1.028 GB, free: 0.5273 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.3536, allocations: 55.78 kB / 1.028 GB, free: 484 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.3537, allocations: 23.98 kB / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.172e-05/0.3538, allocations: 23.92 kB / 1.028 GB, free: 436 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.264e-05/0.3539, allocations: 27.91 kB / 1.028 GB, free: 408 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.3539, allocations: 4 kB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.071e-05/0.3539, allocations: 4 kB / 1.028 GB, free: 400 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.561e-05/0.354, allocations: 27.95 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.206e-05/0.3541, allocations: 23.81 kB / 1.028 GB, free: 348 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.3542, allocations: 71.72 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3542, allocations: 4 kB / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3542, allocations: 0 / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.3542, allocations: 0 / 1.028 GB, free: 272 kB / 0.795 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.0006584/0.3549, allocations: 387.3 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3549, allocations: 12.03 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.304e-05/0.355, allocations: 0.9375 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.3552, allocations: 192.2 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.3552, allocations: 8.359 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.3552, allocations: 384 / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.3556, allocations: 139.8 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3556, allocations: 3.938 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.3556, allocations: 3.984 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.3556, allocations: 4 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003476/0.356, allocations: 123.8 kB / 1.029 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006739/0.3566, allocations: 432.8 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.3569, allocations: 97.08 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.3571, allocations: 57.72 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.3571, allocations: 4 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.3571, allocations: 38.55 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.3571, allocations: 0 / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0006411/0.3578, allocations: 193.3 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.3578, allocations: 77.11 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.3579, allocations: 133.6 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.358, allocations: 25.7 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.155e-05/0.358, allocations: 104.2 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.3581, allocations: 3.906 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.3581, allocations: 13.72 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3582, allocations: 314.8 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.3584, allocations: 55.92 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.3586, allocations: 70.02 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.3589, allocations: 101.6 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3589, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003329/0.3592, allocations: 137.6 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3593, allocations: 7.938 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.3593, allocations: 0 / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3593, allocations: 4 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.3594, allocations: 19.97 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.3595, allocations: 4 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.168e-05/0.3596, allocations: 23.97 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.3596, allocations: 0 / 1.031 GB, free: 13.27 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 8.321e-05/0.3597, allocations: 121.8 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.3597, allocations: 7.906 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.383e-05/0.3597, allocations: 11.47 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3598, allocations: 4 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3598, allocations: 0 / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3598, allocations: 3.938 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.36, allocations: 181.6 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.36, allocations: 4 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.753e-05/0.3601, allocations: 19.97 kB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.3601, allocations: 0 / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.3601, allocations: 0 / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3601, allocations: 4 kB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3601, allocations: 0 / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/0.3606, allocations: 306.6 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-05/0.3606, allocations: 88.94 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.3607, allocations: 0 / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.3608, allocations: 15.98 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3609, allocations: 19.8 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.3609, allocations: 4 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.275e-05/0.3609, allocations: 95.3 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3609, allocations: 0 / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002556/0.3612, allocations: 12 kB / 1.032 GB, free: 12.29 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.0001236/0.3613, allocations: 102.2 kB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004511/0.3618, allocations: 111.9 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3618, allocations: 0 / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.362, allocations: 67.86 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.3624, allocations: 12.2 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.3627, allocations: 162.6 kB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.3631, allocations: 0.6963 MB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.935e-05/0.3631, allocations: 19.84 kB / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.3632, allocations: 7.438 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of SimCode: time 3.71e-07/0.3632, allocations: 0 / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of Templates: time 0.002979/0.3662, allocations: 0.8007 MB / 1.034 GB, free: 10.26 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 -s gbode -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