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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.323/2.323, allocations: 390.5 MB / 398 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000974/0.000974, allocations: 187.6 kB / 491.2 MB, free: 1.613 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.897/1.897, allocations: 221.5 MB / 0.7868 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009711/0.0009711, allocations: 102.9 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.009e-05/2.011e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3446, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.095/1.44, allocations: 148.9 MB / 1.358 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00019/1.44, allocations: 70.69 kB / 1.358 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002854/1.443, allocations: 0.909 MB / 1.359 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.583e-06/1.443, allocations: 0 / 1.359 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.059e-05/1.443, allocations: 3.812 kB / 1.359 GB, free: 33.19 MB / 0.8386 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.0004018/1.444, allocations: 388 kB / 1.359 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/1.444, allocations: 11.69 kB / 1.359 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/1.444, allocations: 0 / 1.359 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/1.444, allocations: 194.8 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/1.444, allocations: 5.516 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/1.444, allocations: 0 / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001122/1.444, allocations: 66.61 kB / 1.359 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/1.444, allocations: 101.7 kB / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/1.444, allocations: 0 / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/1.444, allocations: 0 / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/1.444, allocations: 2.078 kB / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003227/1.444, allocations: 372.1 kB / 1.36 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.102e-05/1.445, allocations: 57.36 kB / 1.36 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.125e-05/1.445, allocations: 39.17 kB / 1.36 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/1.445, allocations: 0 / 1.36 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.634e-05/1.445, allocations: 46.94 kB / 1.36 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 7.71e-07/1.445, allocations: 0 / 1.36 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001677/1.445, allocations: 71.27 kB / 1.36 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.155e-05/1.445, allocations: 81.05 kB / 1.36 GB, free: 32 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.165e-05/1.445, allocations: 106.9 kB / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/1.445, allocations: 25.7 kB / 1.36 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.152e-05/1.445, allocations: 97.78 kB / 1.36 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/1.445, allocations: 11.08 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/1.445, allocations: 4.062 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.879e-05/1.445, allocations: 317 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.252e-05/1.445, allocations: 24.83 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.456e-05/1.445, allocations: 30.89 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.146e-05/1.445, allocations: 23.89 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/1.445, allocations: 0 / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.403e-05/1.445, allocations: 84.08 kB / 1.361 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/1.445, allocations: 3.906 kB / 1.361 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/1.445, allocations: 3.938 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/1.445, allocations: 0 / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/1.446, allocations: 30.91 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/1.446, allocations: 3.953 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.253e-05/1.446, allocations: 25.84 kB / 1.361 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/1.446, allocations: 1.781 kB / 1.361 GB, free: 31.39 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.883e-05/1.446, allocations: 101 kB / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/1.446, allocations: 3.906 kB / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/1.446, allocations: 12.61 kB / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/1.446, allocations: 0 / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/1.446, allocations: 0 / 1.361 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/1.446, allocations: 3.953 kB / 1.361 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/1.446, allocations: 151.6 kB / 1.361 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/1.446, allocations: 4 kB / 1.361 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/1.446, allocations: 26.89 kB / 1.361 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/1.446, allocations: 0 / 1.361 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/1.446, allocations: 1.5 kB / 1.361 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/1.446, allocations: 3.984 kB / 1.361 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/1.446, allocations: 7.812 kB / 1.361 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/1.446, allocations: 268.1 kB / 1.361 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.01e-05/1.446, allocations: 78.89 kB / 1.361 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/1.446, allocations: 3.812 kB / 1.361 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/1.446, allocations: 18.81 kB / 1.361 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.621e-05/1.446, allocations: 12.12 kB / 1.361 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.85e-06/1.447, allocations: 8.984 kB / 1.361 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.39e-05/1.447, allocations: 91.44 kB / 1.362 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.447, allocations: 0 / 1.362 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002306/1.447, allocations: 11.69 kB / 1.362 GB, free: 30.69 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.828e-05/1.447, allocations: 99.92 kB / 1.362 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.706e-05/1.447, allocations: 53.75 kB / 1.362 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/1.447, allocations: 0 / 1.362 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.39e-05/1.447, allocations: 39.47 kB / 1.362 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/1.447, allocations: 11.64 kB / 1.362 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002317/1.447, allocations: 109.3 kB / 1.362 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/1.448, allocations: 0.6985 MB / 1.363 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.219e-05/1.448, allocations: 10.62 kB / 1.363 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.518e-05/1.448, allocations: 11.44 kB / 1.363 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/1.448, allocations: 0 / 1.363 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of Templates: time 0.00205/1.45, allocations: 0.5556 MB / 1.363 GB, free: 29.75 MB / 0.8386 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","../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[1].y,ram[2].duration,ram[2].height,ram[2].offset,ram[2].startTime,reaRep.nin,reaRep.nout,reaRep.u[1],time