Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.RealScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u|reaRep.y.1.|reaRep.y.2.|reaRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u|reaRep.y.1.|reaRep.y.2.|reaRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 110 kB / 16.41 MB, free: 6.477 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.001312/0.001312, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.453/2.453, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 59.91 kB / 1.055 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7732/0.7746, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator): time 0.0022/0.7769, allocations: 0.6441 MB / 1.209 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.778, allocations: 0.8 MB / 1.21 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.6e-05/0.778, allocations: 0 / 1.21 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.107e-05/0.7782, allocations: 4 kB / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.165e-05/0.7782, allocations: 7.938 kB / 1.21 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001063/0.7783, allocations: 3.984 kB / 1.21 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.096e-05/0.7784, allocations: 19.94 kB / 1.21 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.7785, allocations: 11.98 kB / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.523e-05/0.7786, allocations: 7.984 kB / 1.21 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.728e-05/0.7786, allocations: 15.92 kB / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.7786, allocations: 4 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.765e-06/0.7787, allocations: 0 / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.376e-05/0.7787, allocations: 15.92 kB / 1.21 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.17e-05/0.7787, allocations: 11.94 kB / 1.21 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 8.16e-05/0.7788, allocations: 27.89 kB / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.7788, allocations: 0 / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.893e-06/0.7789, allocations: 0 / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.7789, allocations: 0 / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004967/0.7794, allocations: 347 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.7794, allocations: 8.031 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.109e-05/0.7794, allocations: 4.938 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.7796, allocations: 180.2 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.7796, allocations: 384 / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.7797, allocations: 384 / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.7799, allocations: 58.23 kB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.7799, allocations: 192 / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.7799, allocations: 3.938 kB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.7799, allocations: 0 / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.7801, allocations: 43.89 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.7805, allocations: 288.8 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.7806, allocations: 30.56 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.345e-05/0.7807, allocations: 16.91 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.7808, allocations: 0 / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.7808, allocations: 42.55 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.7808, allocations: 0 / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0003432/0.7812, allocations: 81.58 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.7812, allocations: 51.41 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.299e-05/0.7813, allocations: 101.8 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.7813, allocations: 29.77 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.313e-05/0.7814, allocations: 94.16 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.7814, allocations: 0 / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.7814, allocations: 21.7 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.7816, allocations: 314.8 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.098e-05/0.7816, allocations: 11.98 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.067e-05/0.7817, allocations: 15.98 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.7819, allocations: 40.88 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.7819, allocations: 4 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001827/0.7821, allocations: 61.52 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.7821, allocations: 5.719 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.7821, allocations: 3.984 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.7821, allocations: 0 / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.764e-05/0.7822, allocations: 8.031 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.7822, allocations: 0 / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.572e-05/0.7823, allocations: 11.98 kB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.7823, allocations: 0 / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 7.864e-05/0.7824, allocations: 113.8 kB / 1.212 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.7824, allocations: 0 / 1.212 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.883e-05/0.7824, allocations: 7.125 kB / 1.212 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.7824, allocations: 3.984 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.7824, allocations: 4 kB / 1.212 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.7824, allocations: 0 / 1.212 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.7826, allocations: 161.6 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.7826, allocations: 4 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.184e-05/0.7827, allocations: 7.984 kB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.7827, allocations: 0 / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.7827, allocations: 0 / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.7827, allocations: 0 / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.7827, allocations: 256 / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.7829, allocations: 167.4 kB / 1.212 GB, free: 9.492 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.331e-05/0.783, allocations: 77.11 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.783, allocations: 7.938 kB / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.276e-05/0.7831, allocations: 7.984 kB / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/0.7831, allocations: 0 / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.7831, allocations: 0 / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.434e-05/0.7832, allocations: 87.25 kB / 1.212 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7832, allocations: 4 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002112/0.7834, allocations: 7.938 kB / 1.212 GB, free: 9.285 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.0001141/0.7835, allocations: 103.2 kB / 1.212 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002029/0.7837, allocations: 31.91 kB / 1.213 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.7837, allocations: 0 / 1.213 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.38e-05/0.7838, allocations: 24.05 kB / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.7841, allocations: 11.92 kB / 1.213 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003127/0.7844, allocations: 139.1 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.7847, allocations: 0.6807 MB / 1.213 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.657e-05/0.7847, allocations: 7.438 kB / 1.213 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.7847, allocations: 0 / 1.213 GB, free: 8.219 MB / 0.9356 GB Notification: Performance of Templates: time 0.001857/0.7866, allocations: 0.5675 MB / 1.214 GB, free: 7.656 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_RealScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches