Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 107.8 kB / 16.41 MB, free: 6.465 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.001544/0.001544, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.496/1.496, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.423/2.423, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.001511, allocations: 63.91 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.908/0.9096, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02862/0.9382, allocations: 23.24 MB / 1.19 GB, free: 12.5 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.008105/0.9464, allocations: 5.089 MB / 1.195 GB, free: 7.391 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.9476, allocations: 27.81 kB / 1.195 GB, free: 7.363 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.9487, allocations: 282.1 kB / 1.195 GB, free: 7.086 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002703/0.9515, allocations: 0.8241 MB / 1.196 GB, free: 6.258 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002232/0.9537, allocations: 0.7676 MB / 1.197 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.002413/0.9562, allocations: 1.629 MB / 1.198 GB, free: 3.863 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009202/0.9571, allocations: 489.2 kB / 1.199 GB, free: 3.387 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001826/0.9589, allocations: 0.6252 MB / 1.199 GB, free: 2.762 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008874/0.9599, allocations: 454 kB / 1.2 GB, free: 2.316 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001435/0.96, allocations: 44 kB / 1.2 GB, free: 2.273 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.9613, allocations: 495.1 kB / 1.2 GB, free: 1.789 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.9615, allocations: 143.5 kB / 1.201 GB, free: 1.648 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0004739/0.962, allocations: 306.5 kB / 1.201 GB, free: 1.348 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001728/0.9637, allocations: 0.9211 MB / 1.202 GB, free: 436 kB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.9637, allocations: 0 / 1.202 GB, free: 436 kB / 0.92 GB Notification: Performance of FrontEnd: time 1.873e-06/0.9637, allocations: 0 / 1.202 GB, free: 436 kB / 0.92 GB Notification: Performance of Transformations before backend: time 3.482e-05/0.9638, allocations: 0 / 1.202 GB, free: 436 kB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001801/0.9656, allocations: 0.892 MB / 1.203 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.9656, allocations: 8.922 kB / 1.203 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002918/0.9659, allocations: 68.19 kB / 1.203 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.9672, allocations: 0.565 MB / 1.203 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.578e-05/0.9672, allocations: 40.92 kB / 1.203 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.261e-05/0.9673, allocations: 44 kB / 1.203 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007533/0.968, allocations: 432.7 kB / 1.204 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.9681, allocations: 4 kB / 1.204 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.9681, allocations: 16 kB / 1.204 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.9682, allocations: 8 kB / 1.204 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005805/0.9687, allocations: 303.8 kB / 1.204 GB, free: 13.95 MB / 0.9356 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.9717, allocations: 1.915 MB / 1.206 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000516/0.9722, allocations: 258.8 kB / 1.206 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.9724, allocations: 124.8 kB / 1.206 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008719/0.9733, allocations: 0.8545 MB / 1.207 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.9733, allocations: 34.56 kB / 1.207 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.9733, allocations: 0 / 1.207 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of matching and sorting (n=26): time 0.0007163/0.974, allocations: 369.5 kB / 1.208 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.9741, allocations: 59.34 kB / 1.208 GB, free: 10 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006034/0.9747, allocations: 482 kB / 1.208 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.9748, allocations: 33.7 kB / 1.208 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.975, allocations: 256.1 kB / 1.208 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.819e-05/0.9751, allocations: 90.66 kB / 1.208 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.9752, allocations: 73.92 kB / 1.208 GB, free: 9.055 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.9754, allocations: 362.7 kB / 1.209 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.9756, allocations: 104.6 kB / 1.209 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.9758, allocations: 168.1 kB / 1.209 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004148/0.9762, allocations: 280.2 kB / 1.209 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.9762, allocations: 4 kB / 1.209 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006249/0.9769, allocations: 365 kB / 1.21 GB, free: 7.738 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.9769, allocations: 8 kB / 1.21 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.9769, allocations: 0 / 1.21 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.9769, allocations: 4 kB / 1.21 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.9772, allocations: 75.78 kB / 1.21 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.9772, allocations: 4 kB / 1.21 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002994/0.9775, allocations: 43.52 kB / 1.21 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.565e-05/0.9776, allocations: 16 kB / 1.21 GB, free: 7.59 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (39): * Single equations (assignments): 39 * 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 0.0002218/0.9778, allocations: 177.9 kB / 1.21 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.9779, allocations: 51.44 kB / 1.21 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007899/0.9787, allocations: 470.5 kB / 1.211 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/0.9787, allocations: 15.94 kB / 1.211 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.9787, allocations: 0 / 1.211 GB, free: 6.879 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005586/0.9793, allocations: 0.5684 MB / 1.211 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.9811, allocations: 1.158 MB / 1.212 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.9811, allocations: 0 / 1.212 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.9813, allocations: 47.97 kB / 1.212 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/0.9813, allocations: 4 kB / 1.212 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.9814, allocations: 15.88 kB / 1.212 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.9814, allocations: 7.984 kB / 1.212 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.9814, allocations: 3.938 kB / 1.212 GB, free: 4.914 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008978/0.9823, allocations: 0.6611 MB / 1.213 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.9825, allocations: 172.4 kB / 1.213 GB, free: 4.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.117e-05/0.9826, allocations: 8 kB / 1.213 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.9829, allocations: 16 kB / 1.213 GB, free: 4.008 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.9829, allocations: 23.97 kB / 1.213 GB, free: 3.984 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.983, allocations: 19.92 kB / 1.213 GB, free: 3.965 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004104/0.9834, allocations: 346.8 kB / 1.214 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9834, allocations: 0 / 1.214 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0006889/0.9841, allocations: 199.8 kB / 1.214 GB, free: 3.434 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0006983/0.9848, allocations: 308.9 kB / 1.214 GB, free: 3.133 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005151/0.9853, allocations: 296.2 kB / 1.214 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.9854, allocations: 8.062 kB / 1.214 GB, free: 2.836 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002381/0.9856, allocations: 159.8 kB / 1.214 GB, free: 2.68 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.9871, allocations: 333 kB / 1.215 GB, free: 2.363 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.9889, allocations: 1.093 MB / 1.216 GB, free: 1.215 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.9894, allocations: 0.8588 MB / 1.217 GB, free: 336 kB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.9896, allocations: 67.34 kB / 1.217 GB, free: 268 kB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.9896, allocations: 0 / 1.217 GB, free: 268 kB / 0.9356 GB Notification: Performance of Templates: time 0.01598/1.006, allocations: 9.913 MB / 1.226 GB, free: 6.441 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches