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.006565/0.006565, allocations: 105.8 kB / 15.74 MB, free: 5.996 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.001215/0.001215, allocations: 200 kB / 16.68 MB, free: 5.922 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.416/1.416, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.891/2.891, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 59.91 kB / 1.054 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084/1.086, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001895/1.088, allocations: 0.6478 MB / 1.208 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009587/1.089, allocations: 0.7962 MB / 1.209 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.757e-05/1.089, allocations: 0 / 1.209 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001129/1.089, allocations: 3.938 kB / 1.209 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.838e-05/1.089, allocations: 0 / 1.209 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 7.275e-05/1.089, allocations: 15.97 kB / 1.209 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001338/1.089, allocations: 55.84 kB / 1.209 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/1.089, allocations: 23.98 kB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.673e-05/1.089, allocations: 27.91 kB / 1.209 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.595e-05/1.089, allocations: 23.91 kB / 1.209 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/1.09, allocations: 4 kB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/1.09, allocations: 4 kB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.698e-05/1.09, allocations: 27.92 kB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.826e-05/1.09, allocations: 27.86 kB / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001215/1.09, allocations: 75.7 kB / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/1.09, allocations: 0 / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.753e-06/1.09, allocations: 0 / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.605e-06/1.09, allocations: 4 kB / 1.209 GB, free: 11.92 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.0006309/1.09, allocations: 388.9 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/1.091, allocations: 8.031 kB / 1.21 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/1.091, allocations: 12.84 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002029/1.091, allocations: 188.2 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.639e-06/1.091, allocations: 384 / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.479e-05/1.091, allocations: 4.375 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/1.091, allocations: 131.8 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/1.091, allocations: 3.938 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/1.091, allocations: 7.984 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/1.091, allocations: 8 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003634/1.092, allocations: 131.8 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006528/1.092, allocations: 420.9 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/1.092, allocations: 93.08 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/1.093, allocations: 65.7 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/1.093, allocations: 4 kB / 1.211 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/1.093, allocations: 38.56 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 2.695e-06/1.093, allocations: 0 / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0006408/1.093, allocations: 193.5 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/1.093, allocations: 85.05 kB / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.907e-05/1.094, allocations: 117.8 kB / 1.211 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/1.094, allocations: 25.7 kB / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/1.094, allocations: 108 kB / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/1.094, allocations: 3.906 kB / 1.211 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.602e-05/1.094, allocations: 13.72 kB / 1.211 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001193/1.094, allocations: 318.8 kB / 1.212 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/1.094, allocations: 51.97 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/1.094, allocations: 65.64 kB / 1.212 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/1.095, allocations: 109.7 kB / 1.212 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/1.095, allocations: 384 / 1.212 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00038/1.095, allocations: 137.5 kB / 1.212 GB, free: 8.984 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/1.095, allocations: 7.938 kB / 1.212 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/1.095, allocations: 4.062 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/1.095, allocations: 3.938 kB / 1.212 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/1.095, allocations: 15.98 kB / 1.212 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/1.095, allocations: 3.984 kB / 1.212 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.969e-05/1.095, allocations: 23.92 kB / 1.212 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/1.095, allocations: 0 / 1.212 GB, free: 8.926 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 0.0001098/1.095, allocations: 125.8 kB / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/1.095, allocations: 11.91 kB / 1.212 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.408e-05/1.095, allocations: 3.531 kB / 1.212 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/1.095, allocations: 3.984 kB / 1.212 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.095, allocations: 4 kB / 1.212 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.095, allocations: 3.938 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002473/1.096, allocations: 177.6 kB / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.096, allocations: 0 / 1.212 GB, free: 8.535 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.878e-05/1.096, allocations: 19.98 kB / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/1.096, allocations: 0 / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/1.096, allocations: 0 / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/1.096, allocations: 7.984 kB / 1.212 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.096, allocations: 4 kB / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004735/1.096, allocations: 306.6 kB / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/1.096, allocations: 85.05 kB / 1.213 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/1.096, allocations: 0 / 1.213 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/1.097, allocations: 15.97 kB / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.701e-05/1.097, allocations: 11.92 kB / 1.213 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/1.097, allocations: 8 kB / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.674e-05/1.097, allocations: 91.27 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/1.097, allocations: 0 / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002592/1.097, allocations: 8 kB / 1.213 GB, free: 7.953 MB / 0.9356 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.0001703/1.097, allocations: 107.2 kB / 1.213 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004516/1.098, allocations: 111.8 kB / 1.213 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/1.098, allocations: 0 / 1.213 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002015/1.098, allocations: 72.09 kB / 1.213 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/1.098, allocations: 8.281 kB / 1.213 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004931/1.099, allocations: 174.2 kB / 1.213 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/1.099, allocations: 0.7079 MB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.54e-05/1.099, allocations: 11.98 kB / 1.214 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/1.099, allocations: 15.5 kB / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/1.099, allocations: 0 / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of Templates: time 0.003808/1.103, allocations: 0.8148 MB / 1.215 GB, free: 5.883 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/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