Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 387.1 MB / 399.7 MB, free: 9.461 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.001146/0.001146, allocations: 176.9 kB / 492.3 MB, free: 0.5938 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.535/1.535, allocations: 221.3 MB / 0.7872 GB, free: 12.88 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.0009204/0.0009204, allocations: 86.77 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.513e-05/3.515e-05, allocations: 7.5 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2787, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8198/1.099, allocations: 148.8 MB / 1.358 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/1.099, allocations: 75.33 kB / 1.358 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003055/1.102, allocations: 0.9168 MB / 1.359 GB, free: 34.7 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.623e-06/1.102, allocations: 0 / 1.359 GB, free: 34.7 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.528e-06/1.102, allocations: 0 / 1.359 GB, free: 34.7 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.0004085/1.102, allocations: 383.6 kB / 1.359 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/1.102, allocations: 9.203 kB / 1.359 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/1.102, allocations: 3.844 kB / 1.359 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/1.103, allocations: 194 kB / 1.359 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/1.103, allocations: 3.938 kB / 1.359 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.537e-05/1.103, allocations: 11.78 kB / 1.359 GB, free: 34.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/1.103, allocations: 99.47 kB / 1.359 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/1.103, allocations: 0 / 1.359 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/1.103, allocations: 3.75 kB / 1.359 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/1.103, allocations: 0 / 1.359 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/1.103, allocations: 70.36 kB / 1.359 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/1.103, allocations: 393.7 kB / 1.36 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.469e-05/1.103, allocations: 59.75 kB / 1.36 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.78e-05/1.103, allocations: 42.11 kB / 1.36 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/1.103, allocations: 4 kB / 1.36 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/1.104, allocations: 35.02 kB / 1.36 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 2.023e-06/1.104, allocations: 3.984 kB / 1.36 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001863/1.104, allocations: 79.38 kB / 1.36 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/1.104, allocations: 81.02 kB / 1.36 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.526e-05/1.104, allocations: 110.8 kB / 1.36 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.975e-06/1.104, allocations: 25.7 kB / 1.36 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/1.104, allocations: 98.61 kB / 1.36 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.689e-05/1.104, allocations: 12.27 kB / 1.36 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-06/1.104, allocations: 0 / 1.36 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.243e-05/1.104, allocations: 316.9 kB / 1.361 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.71e-05/1.104, allocations: 24.86 kB / 1.361 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.781e-05/1.104, allocations: 34.48 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.475e-05/1.104, allocations: 20.05 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.104, allocations: 0.5625 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001041/1.104, allocations: 86.17 kB / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/1.104, allocations: 3.844 kB / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/1.104, allocations: 0.7969 kB / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/1.104, allocations: 0 / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/1.104, allocations: 30.84 kB / 1.361 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/1.104, allocations: 4.062 kB / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.927e-05/1.105, allocations: 23.08 kB / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/1.105, allocations: 5.5 kB / 1.361 GB, free: 32.86 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 5.059e-05/1.105, allocations: 105.5 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.972e-05/1.105, allocations: 4.422 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.86e-05/1.105, allocations: 11.61 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/1.105, allocations: 0.6094 kB / 1.361 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/1.105, allocations: 7.953 kB / 1.361 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/1.105, allocations: 0 / 1.361 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/1.105, allocations: 177.1 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/1.105, allocations: 0 / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/1.105, allocations: 27.31 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/1.105, allocations: 0 / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/1.105, allocations: 4.734 kB / 1.361 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/1.105, allocations: 3.938 kB / 1.361 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/1.105, allocations: 4 kB / 1.361 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/1.105, allocations: 266.4 kB / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.943e-05/1.105, allocations: 77.91 kB / 1.361 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/1.105, allocations: 0 / 1.361 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/1.105, allocations: 27.03 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/1.106, allocations: 14.94 kB / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/1.106, allocations: 0 / 1.362 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.484e-05/1.106, allocations: 93.62 kB / 1.362 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.106, allocations: 0 / 1.362 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002539/1.106, allocations: 11.56 kB / 1.362 GB, free: 32.13 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 0.0001075/1.106, allocations: 105.1 kB / 1.362 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001171/1.106, allocations: 55.31 kB / 1.362 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/1.106, allocations: 0 / 1.362 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.424e-05/1.106, allocations: 39 kB / 1.362 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/1.106, allocations: 6.094 kB / 1.362 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002558/1.107, allocations: 118.3 kB / 1.362 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/1.107, allocations: 0.7031 MB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.502e-05/1.107, allocations: 10.2 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.687e-05/1.107, allocations: 7.438 kB / 1.363 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.107, allocations: 0 / 1.363 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of Templates: time 0.00231/1.109, allocations: 0.6347 MB / 1.363 GB, free: 31.18 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","../files/Buildings_9_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_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_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