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.544/2.544, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001367/0.001367, allocations: 176 kB / 0.4902 GB, free: 2.266 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.694/1.694, allocations: 223.2 MB / 0.7992 GB, free: 14.71 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.001056/0.001056, allocations: 102.9 kB / 0.9396 GB, free: 1.848 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003374, allocations: 10.94 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2935, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1798/0.4733, allocations: 149.6 MB / 1.375 GB, free: 3.863 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4736, allocations: 71.95 kB / 1.375 GB, free: 3.793 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002832/0.4764, allocations: 0.9159 MB / 1.376 GB, free: 2.871 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.848e-06/0.4765, allocations: 0 / 1.376 GB, free: 2.871 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.4765, allocations: 3.938 kB / 1.376 GB, free: 2.867 MB / 0.8698 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.0005953/0.4771, allocations: 396.6 kB / 1.377 GB, free: 2.434 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.4771, allocations: 8.562 kB / 1.377 GB, free: 2.426 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.419e-05/0.4772, allocations: 7.906 kB / 1.377 GB, free: 2.418 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.4774, allocations: 194.8 kB / 1.377 GB, free: 2.188 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.4774, allocations: 4 kB / 1.377 GB, free: 2.184 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.4775, allocations: 4 kB / 1.377 GB, free: 2.18 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.4778, allocations: 139.3 kB / 1.377 GB, free: 2.031 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.4778, allocations: 0 / 1.377 GB, free: 2.031 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.4779, allocations: 4 kB / 1.377 GB, free: 2.027 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.4779, allocations: 0 / 1.377 GB, free: 2.027 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004034/0.4783, allocations: 155.8 kB / 1.377 GB, free: 1.875 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005213/0.4788, allocations: 397.8 kB / 1.378 GB, free: 1.434 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.4791, allocations: 93.14 kB / 1.378 GB, free: 1.324 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.4791, allocations: 4.062 kB / 1.378 GB, free: 1.32 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.4791, allocations: 38.5 kB / 1.378 GB, free: 1.273 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/0.4792, allocations: 0 / 1.378 GB, free: 1.273 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0006851/0.4798, allocations: 229.6 kB / 1.378 GB, free: 1.043 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.4799, allocations: 81.05 kB / 1.378 GB, free: 0.9453 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.48, allocations: 105.2 kB / 1.378 GB, free: 0.832 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.48, allocations: 25.7 kB / 1.378 GB, free: 0.8008 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.344e-05/0.4801, allocations: 99.97 kB / 1.378 GB, free: 0.6992 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.4801, allocations: 11.84 kB / 1.378 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/0.4802, allocations: 8.062 kB / 1.378 GB, free: 0.6797 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4803, allocations: 310.8 kB / 1.379 GB, free: 376 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.4805, allocations: 63.92 kB / 1.379 GB, free: 312 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.4807, allocations: 77.64 kB / 1.379 GB, free: 228 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.4809, allocations: 60 kB / 1.379 GB, free: 168 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4809, allocations: 0 / 1.379 GB, free: 168 kB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004203/0.4813, allocations: 157.5 kB / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.476e-05/0.4814, allocations: 8.047 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.4814, allocations: 0 / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.4814, allocations: 3.953 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.4816, allocations: 27.98 kB / 1.379 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.4816, allocations: 4 kB / 1.379 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.4817, allocations: 19.97 kB / 1.379 GB, free: 15.94 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.4817, allocations: 0 / 1.379 GB, free: 15.94 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.4818, allocations: 125.8 kB / 1.379 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.136e-05/0.4819, allocations: 3.906 kB / 1.379 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.094e-05/0.4819, allocations: 11.53 kB / 1.379 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.4819, allocations: 4 kB / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4819, allocations: 7.938 kB / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4819, allocations: 0 / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002511/0.4822, allocations: 177.6 kB / 1.379 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.4822, allocations: 0 / 1.379 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.4823, allocations: 27.91 kB / 1.379 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.4823, allocations: 4 kB / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.4823, allocations: 0 / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.4824, allocations: 4 kB / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4824, allocations: 384 / 1.379 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004909/0.4829, allocations: 341.9 kB / 1.38 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.4829, allocations: 81.11 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.4829, allocations: 4 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.4831, allocations: 27.94 kB / 1.38 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.4832, allocations: 11.94 kB / 1.38 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-06/0.4832, allocations: 4 kB / 1.38 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.927e-05/0.4833, allocations: 99.2 kB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.144e-06/0.4833, allocations: 0 / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002544/0.4835, allocations: 15.88 kB / 1.38 GB, free: 14.91 MB / 0.8855 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 (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.0001578/0.4837, allocations: 100 kB / 1.38 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004342/0.4841, allocations: 135.9 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.644e-06/0.4842, allocations: 0 / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.4844, allocations: 75.86 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.4846, allocations: 12.17 kB / 1.38 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.485, allocations: 169.5 kB / 1.38 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.4852, allocations: 0.7043 MB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.326e-05/0.4853, allocations: 15.98 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/0.4853, allocations: 7.438 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of SimCode: time 5.01e-07/0.4853, allocations: 0 / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of Templates: time 0.002685/0.488, allocations: 0.6227 MB / 1.382 GB, free: 13.03 MB / 0.8855 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