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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.649/1.649, allocations: 390.4 MB / 397.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009418/0.0009417, allocations: 184.8 kB / 490.8 MB, free: 11.2 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.019/1.019, allocations: 221.4 MB / 0.7863 GB, free: 13.54 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007938/0.0007938, allocations: 89.77 kB / 0.9264 GB, free: 20.91 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 6.642e-06/6.652e-06, allocations: 4 kB / 1.072 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4174/0.4175, allocations: 143 MB / 1.212 GB, free: 53.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1342/0.5517, allocations: 148.8 MB / 1.357 GB, free: 5.055 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001581/0.5519, allocations: 68.47 kB / 1.357 GB, free: 4.988 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.002096/0.554, allocations: 0.6192 MB / 1.358 GB, free: 4.379 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.554, allocations: 0 / 1.358 GB, free: 4.379 MB / 0.8542 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.0003753/0.5544, allocations: 390.2 kB / 1.358 GB, free: 3.953 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.774e-05/0.5544, allocations: 8.031 kB / 1.358 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.956e-05/0.5545, allocations: 7.906 kB / 1.358 GB, free: 3.938 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.5546, allocations: 187 kB / 1.358 GB, free: 3.715 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.275e-06/0.5546, allocations: 4 kB / 1.358 GB, free: 3.711 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.5546, allocations: 3.906 kB / 1.358 GB, free: 3.707 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001009/0.5547, allocations: 63.95 kB / 1.358 GB, free: 3.645 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.5549, allocations: 107.2 kB / 1.358 GB, free: 3.527 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.5549, allocations: 0 / 1.358 GB, free: 3.527 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.5549, allocations: 4 kB / 1.358 GB, free: 3.523 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.5549, allocations: 0 / 1.358 GB, free: 3.523 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003061/0.5552, allocations: 369.5 kB / 1.359 GB, free: 3.121 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.493e-05/0.5553, allocations: 68.39 kB / 1.359 GB, free: 3.039 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.211e-05/0.5553, allocations: 37.75 kB / 1.359 GB, free: 2.996 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 9.468e-06/0.5554, allocations: 0 / 1.359 GB, free: 2.996 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.5554, allocations: 38.5 kB / 1.359 GB, free: 2.949 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=2): time 8.02e-07/0.5554, allocations: 0 / 1.359 GB, free: 2.949 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2): time 0.0001642/0.5555, allocations: 81.59 kB / 1.359 GB, free: 2.863 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.5556, allocations: 77.11 kB / 1.359 GB, free: 2.77 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.412e-05/0.5557, allocations: 109.2 kB / 1.359 GB, free: 2.652 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.628e-06/0.5557, allocations: 25.7 kB / 1.359 GB, free: 2.621 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.307e-05/0.5557, allocations: 96.03 kB / 1.359 GB, free: 2.523 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.5557, allocations: 11.78 kB / 1.359 GB, free: 2.512 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.5557, allocations: 0 / 1.359 GB, free: 2.512 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.898e-05/0.5558, allocations: 314.8 kB / 1.36 GB, free: 2.195 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.329e-05/0.5559, allocations: 32 kB / 1.36 GB, free: 2.164 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.245e-05/0.5559, allocations: 33.7 kB / 1.36 GB, free: 2.125 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.99e-05/0.5559, allocations: 23.97 kB / 1.36 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5559, allocations: 0 / 1.36 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.536e-05/0.556, allocations: 77.59 kB / 1.36 GB, free: 2.02 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.556, allocations: 7.906 kB / 1.36 GB, free: 2.012 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.5561, allocations: 4 kB / 1.36 GB, free: 2.008 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/0.5561, allocations: 8.062 kB / 1.36 GB, free: 2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.5562, allocations: 27.97 kB / 1.36 GB, free: 1.973 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.396e-06/0.5562, allocations: 0 / 1.36 GB, free: 1.973 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.459e-05/0.5563, allocations: 24.36 kB / 1.36 GB, free: 1.949 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.5563, allocations: 0 / 1.36 GB, free: 1.949 MB / 0.8542 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.103e-05/0.5564, allocations: 106.4 kB / 1.36 GB, free: 1.84 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.113e-05/0.5564, allocations: 3.906 kB / 1.36 GB, free: 1.836 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.087e-05/0.5565, allocations: 19.39 kB / 1.36 GB, free: 1.82 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.5565, allocations: 0 / 1.36 GB, free: 1.82 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.5565, allocations: 4 kB / 1.36 GB, free: 1.816 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.5565, allocations: 0 / 1.36 GB, free: 1.816 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.5566, allocations: 162.1 kB / 1.36 GB, free: 1.621 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.5566, allocations: 0 / 1.36 GB, free: 1.621 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.5568, allocations: 23.97 kB / 1.36 GB, free: 1.598 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.5568, allocations: 4 kB / 1.36 GB, free: 1.594 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.5568, allocations: 0 / 1.36 GB, free: 1.594 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.5568, allocations: 4 kB / 1.36 GB, free: 1.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.5568, allocations: 0 / 1.36 GB, free: 1.59 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001406/0.5569, allocations: 264.3 kB / 1.36 GB, free: 1.309 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.92e-05/0.557, allocations: 85.02 kB / 1.36 GB, free: 1.207 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.557, allocations: 4.031 kB / 1.36 GB, free: 1.203 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.5572, allocations: 19.98 kB / 1.36 GB, free: 1.184 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.473e-05/0.5572, allocations: 7.984 kB / 1.36 GB, free: 1.176 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.5572, allocations: 0 / 1.36 GB, free: 1.176 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.098e-05/0.5573, allocations: 95.27 kB / 1.36 GB, free: 1.082 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002221/0.5575, allocations: 8 kB / 1.361 GB, free: 1.074 MB / 0.8542 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.594e-05/0.5576, allocations: 103.2 kB / 1.361 GB, free: 0.9648 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001009/0.5577, allocations: 59.89 kB / 1.361 GB, free: 0.9062 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-06/0.5577, allocations: 0 / 1.361 GB, free: 0.9062 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.697e-05/0.5577, allocations: 35.95 kB / 1.361 GB, free: 0.8711 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.5579, allocations: 8.25 kB / 1.361 GB, free: 0.8633 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002235/0.5581, allocations: 112.6 kB / 1.361 GB, free: 0.7266 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.5584, allocations: 0.7114 MB / 1.362 GB, free: 15.99 MB / 0.8698 GB Notification: Performance of SimCode: time 2.31e-07/0.5584, allocations: 0 / 1.362 GB, free: 15.99 MB / 0.8698 GB Notification: Performance of Templates: time 0.001987/0.5604, allocations: 0.7124 MB / 1.362 GB, free: 15.29 MB / 0.8698 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