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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008305/0.008305, allocations: 102.6 kB / 15.73 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 186.4 kB / 16.67 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.691/2.691, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002233/0.002233, allocations: 67.47 kB / 0.9508 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3605, allocations: 140.4 MB / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001927/0.3624, allocations: 0.6384 MB / 1.089 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008807/0.3633, allocations: 0.8044 MB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.513e-05/0.3634, allocations: 0 / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.3635, allocations: 3.938 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.3636, allocations: 7.938 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 6.073e-05/0.3637, allocations: 7.984 kB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.3638, allocations: 59.89 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.364, allocations: 15.98 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.74e-05/0.3641, allocations: 27.92 kB / 1.089 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.909e-05/0.3642, allocations: 35.78 kB / 1.089 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.3642, allocations: 7.938 kB / 1.089 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.479e-05/0.3642, allocations: 4 kB / 1.089 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.106e-05/0.3643, allocations: 23.97 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.011e-05/0.3643, allocations: 23.86 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.3645, allocations: 83.64 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3645, allocations: 0 / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3645, allocations: 0 / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.703e-06/0.3645, allocations: 4 kB / 1.09 GB, free: 15.72 MB / 0.8575 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.0006612/0.3652, allocations: 383.3 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.3652, allocations: 12.03 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.823e-05/0.3653, allocations: 4.938 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.3655, allocations: 180.2 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.3656, allocations: 8.375 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.335e-05/0.3656, allocations: 4.375 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.366, allocations: 127.9 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.366, allocations: 192 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.366, allocations: 11.94 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.366, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.3664, allocations: 131.8 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008169/0.3673, allocations: 432.8 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.3675, allocations: 89.14 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001955/0.3677, allocations: 65.7 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.3677, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.3677, allocations: 38.5 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.3678, allocations: 0 / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0006564/0.3684, allocations: 197.3 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.447e-05/0.3685, allocations: 77.11 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.3686, allocations: 121.8 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.3686, allocations: 25.95 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.697e-05/0.3687, allocations: 100 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.3687, allocations: 11.84 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.745e-05/0.3688, allocations: 13.72 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3689, allocations: 326.8 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.3691, allocations: 47.94 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.3693, allocations: 65.64 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.3697, allocations: 109.5 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3697, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003714/0.37, allocations: 133.6 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3701, allocations: 7.984 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3701, allocations: 4 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.3701, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.3702, allocations: 19.92 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3703, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.3704, allocations: 27.91 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.3704, allocations: 0 / 1.092 GB, free: 12.73 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.768e-05/0.3705, allocations: 125.8 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.3705, allocations: 3.906 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.056e-05/0.3706, allocations: 11.53 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3706, allocations: 0 / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3706, allocations: 3.984 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3706, allocations: 3.938 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.3708, allocations: 177.7 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.3708, allocations: 3.984 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.614e-05/0.3709, allocations: 15.98 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.371, allocations: 0 / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.371, allocations: 4 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.371, allocations: 0 / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.371, allocations: 7.969 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004866/0.3715, allocations: 314.6 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.269e-05/0.3715, allocations: 81.02 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.3716, allocations: 4 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.3717, allocations: 15.97 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.655e-05/0.3718, allocations: 7.938 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.3718, allocations: 8.391 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.871e-05/0.3718, allocations: 103.2 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.964e-06/0.3719, allocations: 0 / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002524/0.3721, allocations: 11.94 kB / 1.093 GB, free: 11.75 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001482/0.3723, allocations: 97.64 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004401/0.3727, allocations: 115.8 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3727, allocations: 4 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.3729, allocations: 59.91 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.3733, allocations: 12 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004086/0.3737, allocations: 170.6 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.374, allocations: 0.7002 MB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.9e-05/0.374, allocations: 15.97 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.3741, allocations: 7.438 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of SimCode: time 7.01e-07/0.3741, allocations: 0 / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of Templates: time 0.003614/0.3777, allocations: 0.8176 MB / 1.095 GB, free: 9.707 MB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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[2].duration,ram[2].height,ram[2].offset,ram[2].startTime,reaRep.nin,reaRep.nout,reaRep.u[1],reaRep.y[3,1],time