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.324/2.324, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001074/0.001074, allocations: 173.1 kB / 498.1 MB, free: 5.73 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.715/1.715, allocations: 223.2 MB / 0.7948 GB, free: 17.85 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.0008561/0.000856, allocations: 102.8 kB / 0.9346 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004227/0.0004227, allocations: 7.781 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3017, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1846/0.4863, allocations: 148.8 MB / 1.368 GB, free: 13.17 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.4866, allocations: 75.89 kB / 1.368 GB, free: 13.09 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002699/0.4893, allocations: 0.9204 MB / 1.369 GB, free: 12.17 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.966e-06/0.4893, allocations: 0 / 1.369 GB, free: 12.17 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.4894, allocations: 0 / 1.369 GB, free: 12.17 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.0004773/0.4898, allocations: 395.1 kB / 1.37 GB, free: 11.74 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.4899, allocations: 12.03 kB / 1.37 GB, free: 11.73 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.4899, allocations: 0 / 1.37 GB, free: 11.73 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.4901, allocations: 186.9 kB / 1.37 GB, free: 11.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.4901, allocations: 8 kB / 1.37 GB, free: 11.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.4902, allocations: 4 kB / 1.37 GB, free: 11.49 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.4905, allocations: 143.2 kB / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.4905, allocations: 0 / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.4905, allocations: 0 / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.4906, allocations: 4 kB / 1.37 GB, free: 11.34 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/0.4909, allocations: 151.8 kB / 1.37 GB, free: 11.19 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004398/0.4914, allocations: 395.7 kB / 1.37 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.4916, allocations: 105.1 kB / 1.371 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.141e-05/0.4916, allocations: 0 / 1.371 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.4916, allocations: 38.56 kB / 1.371 GB, free: 10.58 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.4917, allocations: 0 / 1.371 GB, free: 10.58 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0006367/0.4923, allocations: 225.6 kB / 1.371 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.4924, allocations: 85.05 kB / 1.371 GB, free: 10.25 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.786e-05/0.4924, allocations: 109.2 kB / 1.371 GB, free: 10.14 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.4925, allocations: 25.7 kB / 1.371 GB, free: 10.11 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.4925, allocations: 100 kB / 1.371 GB, free: 10 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.4926, allocations: 7.906 kB / 1.371 GB, free: 9.996 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-06/0.4926, allocations: 0 / 1.371 GB, free: 9.996 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4927, allocations: 322.8 kB / 1.371 GB, free: 9.672 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.4929, allocations: 59.92 kB / 1.371 GB, free: 9.613 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.493, allocations: 81.64 kB / 1.372 GB, free: 9.527 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.4932, allocations: 60 kB / 1.372 GB, free: 9.469 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4932, allocations: 0 / 1.372 GB, free: 9.469 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003616/0.4936, allocations: 157.4 kB / 1.372 GB, free: 9.309 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.4936, allocations: 9.875 kB / 1.372 GB, free: 9.301 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.4936, allocations: 0 / 1.372 GB, free: 9.301 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4937, allocations: 3.953 kB / 1.372 GB, free: 9.297 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.4938, allocations: 28.03 kB / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.4938, allocations: 0 / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.54e-05/0.4939, allocations: 27.97 kB / 1.372 GB, free: 9.242 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.4939, allocations: 0 / 1.372 GB, free: 9.242 MB / 0.8698 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 8.657e-05/0.494, allocations: 121.8 kB / 1.372 GB, free: 9.113 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.83e-05/0.4941, allocations: 4 kB / 1.372 GB, free: 9.109 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.808e-05/0.4941, allocations: 11.53 kB / 1.372 GB, free: 9.094 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4941, allocations: 0 / 1.372 GB, free: 9.094 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.4941, allocations: 7.938 kB / 1.372 GB, free: 9.086 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.4941, allocations: 0 / 1.372 GB, free: 9.086 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.4944, allocations: 181.6 kB / 1.372 GB, free: 8.859 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4944, allocations: 0 / 1.372 GB, free: 8.859 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.4945, allocations: 23.97 kB / 1.372 GB, free: 8.836 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.4945, allocations: 4 kB / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.4945, allocations: 4 kB / 1.372 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.4945, allocations: 0 / 1.372 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4945, allocations: 3.938 kB / 1.372 GB, free: 8.824 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004377/0.495, allocations: 344.6 kB / 1.372 GB, free: 8.465 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.495, allocations: 85.03 kB / 1.373 GB, free: 8.363 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.4951, allocations: 0 / 1.373 GB, free: 8.363 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.4952, allocations: 28 kB / 1.373 GB, free: 8.336 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.4953, allocations: 19.88 kB / 1.373 GB, free: 8.316 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.4953, allocations: 0 / 1.373 GB, free: 8.316 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.131e-05/0.4953, allocations: 95.27 kB / 1.373 GB, free: 8.223 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4953, allocations: 0 / 1.373 GB, free: 8.223 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002317/0.4956, allocations: 11.91 kB / 1.373 GB, free: 8.211 MB / 0.8698 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.0001258/0.4957, allocations: 103 kB / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003932/0.4961, allocations: 139.8 kB / 1.373 GB, free: 7.961 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4961, allocations: 0 / 1.373 GB, free: 7.961 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/0.4963, allocations: 71.92 kB / 1.373 GB, free: 7.891 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002081/0.4965, allocations: 12.17 kB / 1.373 GB, free: 7.879 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003477/0.4969, allocations: 173.5 kB / 1.373 GB, free: 7.68 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.4972, allocations: 0.7043 MB / 1.374 GB, free: 6.949 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.268e-05/0.4972, allocations: 15.98 kB / 1.374 GB, free: 6.934 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.948e-05/0.4973, allocations: 7.438 kB / 1.374 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of SimCode: time 2.21e-07/0.4973, allocations: 0 / 1.374 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of Templates: time 0.002648/0.4999, allocations: 0.6178 MB / 1.375 GB, free: 6.312 MB / 0.8698 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