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.232/2.232, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001082/0.001082, allocations: 176.8 kB / 487.4 MB, free: 5.035 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.585/1.585, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 95.89 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.414e-05/1.416e-05, allocations: 5.484 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2505, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7964/1.047, allocations: 148.1 MB / 1.351 GB, free: 18.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/1.047, allocations: 64.56 kB / 1.351 GB, free: 18.34 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002799/1.05, allocations: 0.9185 MB / 1.352 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.092e-06/1.05, allocations: 0 / 1.352 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.966e-06/1.05, allocations: 7.906 kB / 1.352 GB, free: 33.99 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.0003867/1.05, allocations: 377.2 kB / 1.352 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/1.05, allocations: 11.5 kB / 1.352 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.775e-05/1.05, allocations: 0 / 1.352 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/1.051, allocations: 195.1 kB / 1.352 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/1.051, allocations: 5.281 kB / 1.352 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/1.051, allocations: 3.844 kB / 1.352 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001238/1.051, allocations: 67.8 kB / 1.352 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/1.051, allocations: 94.61 kB / 1.352 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/1.051, allocations: 0.5625 kB / 1.352 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/1.051, allocations: 1.312 kB / 1.352 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/1.051, allocations: 1.312 kB / 1.352 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003665/1.051, allocations: 372.3 kB / 1.353 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.486e-05/1.051, allocations: 60.91 kB / 1.353 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.38e-05/1.051, allocations: 32.19 kB / 1.353 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/1.051, allocations: 4.703 kB / 1.353 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.244e-05/1.051, allocations: 35.41 kB / 1.353 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/1.051, allocations: 0 / 1.353 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001716/1.052, allocations: 78.8 kB / 1.353 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.85e-05/1.052, allocations: 79.22 kB / 1.353 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.015e-05/1.052, allocations: 108.5 kB / 1.353 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.255e-06/1.052, allocations: 29.77 kB / 1.353 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.117e-05/1.052, allocations: 94.08 kB / 1.353 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/1.052, allocations: 9.625 kB / 1.353 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/1.052, allocations: 0 / 1.353 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.395e-05/1.052, allocations: 318.4 kB / 1.353 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.757e-05/1.052, allocations: 22.86 kB / 1.353 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.782e-05/1.052, allocations: 36.78 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.233e-05/1.052, allocations: 22.02 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/1.052, allocations: 1.312 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001011/1.052, allocations: 78.17 kB / 1.354 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/1.052, allocations: 9.75 kB / 1.354 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/1.052, allocations: 1.312 kB / 1.354 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/1.052, allocations: 0 / 1.354 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/1.052, allocations: 29.83 kB / 1.354 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/1.052, allocations: 0.6094 kB / 1.354 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/1.053, allocations: 25.56 kB / 1.354 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/1.053, allocations: 5.25 kB / 1.354 GB, free: 32.19 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.188e-05/1.053, allocations: 103 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/1.053, allocations: 2.625 kB / 1.354 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.47e-05/1.053, allocations: 15.36 kB / 1.354 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/1.053, allocations: 5.125 kB / 1.354 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/1.053, allocations: 1.281 kB / 1.354 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/1.053, allocations: 0.7969 kB / 1.354 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/1.053, allocations: 156.1 kB / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/1.053, allocations: 0 / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/1.053, allocations: 24.83 kB / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/1.053, allocations: 1.969 kB / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/1.053, allocations: 5.188 kB / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/1.053, allocations: 7.062 kB / 1.354 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/1.053, allocations: 1.844 kB / 1.354 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/1.053, allocations: 262.6 kB / 1.354 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.75e-05/1.053, allocations: 78.94 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/1.053, allocations: 2.094 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/1.053, allocations: 28.61 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/1.053, allocations: 3.422 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/1.053, allocations: 3.969 kB / 1.354 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.651e-05/1.054, allocations: 89.31 kB / 1.354 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.8e-07/1.054, allocations: 0 / 1.354 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002488/1.054, allocations: 15.55 kB / 1.354 GB, free: 31.5 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 8.9e-05/1.054, allocations: 107.8 kB / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001019/1.054, allocations: 49.94 kB / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/1.054, allocations: 0 / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.659e-05/1.054, allocations: 34.73 kB / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/1.054, allocations: 14.44 kB / 1.355 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002231/1.054, allocations: 113.2 kB / 1.355 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/1.055, allocations: 0.7028 MB / 1.355 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.055e-05/1.055, allocations: 10.47 kB / 1.355 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.662e-05/1.055, allocations: 11.34 kB / 1.355 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of SimCode: time 3.7e-07/1.055, allocations: 0 / 1.355 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of Templates: time 0.002129/1.057, allocations: 0.5375 MB / 1.356 GB, free: 30.55 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