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.364/2.364, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001099/0.001099, allocations: 180.9 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.9/1.9, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0009405/0.0009407, allocations: 91.95 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.167e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3847, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9777/1.362, allocations: 149.6 MB / 1.365 GB, free: 4.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/1.363, allocations: 69.45 kB / 1.365 GB, free: 4.441 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002611/1.365, allocations: 0.9243 MB / 1.366 GB, free: 3.586 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.372e-06/1.365, allocations: 0 / 1.366 GB, free: 3.586 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.149e-05/1.365, allocations: 4 kB / 1.366 GB, free: 3.582 MB / 0.823 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.0004695/1.366, allocations: 382.4 kB / 1.366 GB, free: 3.168 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/1.366, allocations: 8.031 kB / 1.366 GB, free: 3.16 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.059e-05/1.366, allocations: 4 kB / 1.366 GB, free: 3.156 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/1.366, allocations: 192.4 kB / 1.366 GB, free: 2.934 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/1.366, allocations: 3.938 kB / 1.366 GB, free: 2.93 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/1.366, allocations: 7.312 kB / 1.366 GB, free: 2.926 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/1.366, allocations: 105.2 kB / 1.366 GB, free: 2.824 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/1.366, allocations: 0 / 1.366 GB, free: 2.824 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/1.366, allocations: 3.375 kB / 1.366 GB, free: 2.824 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/1.366, allocations: 4 kB / 1.366 GB, free: 2.82 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/1.367, allocations: 65.94 kB / 1.367 GB, free: 2.77 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004539/1.367, allocations: 397.1 kB / 1.367 GB, free: 2.348 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.176e-05/1.367, allocations: 59.19 kB / 1.367 GB, free: 2.277 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.703e-05/1.367, allocations: 37 kB / 1.367 GB, free: 2.238 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.19e-05/1.367, allocations: 0 / 1.367 GB, free: 2.238 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/1.367, allocations: 42.39 kB / 1.367 GB, free: 2.191 MB / 0.823 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/1.367, allocations: 0 / 1.367 GB, free: 2.191 MB / 0.823 GB Notification: Performance of matching and sorting (n=2): time 0.0001949/1.367, allocations: 76.97 kB / 1.367 GB, free: 2.117 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/1.368, allocations: 77.11 kB / 1.367 GB, free: 2.023 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.2e-05/1.368, allocations: 107.7 kB / 1.367 GB, free: 1.914 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/1.368, allocations: 29.7 kB / 1.367 GB, free: 1.879 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.244e-05/1.368, allocations: 99.91 kB / 1.367 GB, free: 1.785 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/1.368, allocations: 15.91 kB / 1.367 GB, free: 1.77 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/1.368, allocations: 0 / 1.367 GB, free: 1.77 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.000109/1.368, allocations: 314.8 kB / 1.368 GB, free: 1.453 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.833e-05/1.368, allocations: 26.97 kB / 1.368 GB, free: 1.434 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.379e-05/1.368, allocations: 33.39 kB / 1.368 GB, free: 1.398 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.451e-05/1.368, allocations: 23.53 kB / 1.368 GB, free: 1.379 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/1.368, allocations: 4.438 kB / 1.368 GB, free: 1.375 MB / 0.823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000118/1.368, allocations: 83.75 kB / 1.368 GB, free: 1.297 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/1.368, allocations: 8 kB / 1.368 GB, free: 1.289 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/1.368, allocations: 0 / 1.368 GB, free: 1.289 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/1.368, allocations: 7.891 kB / 1.368 GB, free: 1.281 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/1.368, allocations: 23.97 kB / 1.368 GB, free: 1.258 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/1.368, allocations: 0 / 1.368 GB, free: 1.258 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/1.368, allocations: 28.03 kB / 1.368 GB, free: 1.23 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/1.368, allocations: 0 / 1.368 GB, free: 1.23 MB / 0.823 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 6.632e-05/1.369, allocations: 105 kB / 1.368 GB, free: 1.121 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/1.369, allocations: 0 / 1.368 GB, free: 1.121 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.887e-05/1.369, allocations: 11.28 kB / 1.368 GB, free: 1.113 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/1.369, allocations: 3.953 kB / 1.368 GB, free: 1.109 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/1.369, allocations: 0 / 1.368 GB, free: 1.109 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/1.369, allocations: 7.984 kB / 1.368 GB, free: 1.102 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/1.369, allocations: 180.2 kB / 1.368 GB, free: 0.8867 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.369, allocations: 0 / 1.368 GB, free: 0.8867 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/1.369, allocations: 27.97 kB / 1.368 GB, free: 0.8594 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/1.369, allocations: 0 / 1.368 GB, free: 0.8594 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/1.369, allocations: 3.984 kB / 1.368 GB, free: 0.8555 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/1.369, allocations: 3.5 kB / 1.368 GB, free: 0.8555 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.369, allocations: 3.953 kB / 1.368 GB, free: 0.8516 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/1.369, allocations: 265.8 kB / 1.369 GB, free: 0.582 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.912e-05/1.369, allocations: 81.11 kB / 1.369 GB, free: 496 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/1.369, allocations: 0 / 1.369 GB, free: 496 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/1.37, allocations: 31.95 kB / 1.369 GB, free: 464 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.394e-05/1.37, allocations: 7.984 kB / 1.369 GB, free: 456 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/1.37, allocations: 0 / 1.369 GB, free: 456 kB / 0.823 GB Notification: Performance of sorting global known variables: time 6.534e-05/1.37, allocations: 98.77 kB / 1.369 GB, free: 364 kB / 0.823 GB Notification: Performance of sort global known variables: time 1.5e-07/1.37, allocations: 0 / 1.369 GB, free: 364 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002344/1.37, allocations: 11.91 kB / 1.369 GB, free: 352 kB / 0.823 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.0001152/1.37, allocations: 95.25 kB / 1.369 GB, free: 248 kB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001254/1.37, allocations: 59.58 kB / 1.369 GB, free: 200 kB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.37, allocations: 0 / 1.369 GB, free: 200 kB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 6.001e-05/1.37, allocations: 31.91 kB / 1.369 GB, free: 172 kB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/1.37, allocations: 21.2 kB / 1.369 GB, free: 156 kB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003062/1.371, allocations: 117.3 kB / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/1.371, allocations: 0.6967 MB / 1.37 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.573e-05/1.371, allocations: 12 kB / 1.37 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/1.371, allocations: 7.438 kB / 1.37 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.371, allocations: 0 / 1.37 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of Templates: time 0.002666/1.374, allocations: 0.6253 MB / 1.37 GB, free: 14.67 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