Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_latest_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_latest_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.001561/0.001561, allocations: 102 kB / 16.27 MB, free: 5.859 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.001568/0.001568, allocations: 185.3 kB / 17.19 MB, free: 5.508 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.383/1.383, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.725/2.725, allocations: 482.4 MB / 0.7553 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.00195, allocations: 67.44 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7815/0.7834, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02909/0.8126, allocations: 23.27 MB / 1.106 GB, free: 0.9844 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01026/0.8229, allocations: 5.093 MB / 1.111 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.8242, allocations: 29.25 kB / 1.111 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009732/0.8253, allocations: 274.6 kB / 1.111 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002588/0.8279, allocations: 0.7883 MB / 1.112 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002336/0.8302, allocations: 0.7549 MB / 1.112 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002826/0.8331, allocations: 1.607 MB / 1.114 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000952/0.8341, allocations: 492 kB / 1.114 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002113/0.8362, allocations: 0.7036 MB / 1.115 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007499/0.8369, allocations: 442 kB / 1.116 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.179e-05/0.837, allocations: 46.75 kB / 1.116 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.8384, allocations: 481.8 kB / 1.116 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.8386, allocations: 137.2 kB / 1.116 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.839, allocations: 311.7 kB / 1.116 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001649/0.8406, allocations: 0.9131 MB / 1.117 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8407, allocations: 4 kB / 1.117 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8407, allocations: 0 / 1.117 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.177e-06/0.8407, allocations: 0.9375 kB / 1.117 GB, free: 10.04 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001544/0.8422, allocations: 0.8838 MB / 1.118 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.8423, allocations: 9.219 kB / 1.118 GB, free: 9.367 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.8425, allocations: 68.41 kB / 1.118 GB, free: 9.336 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.8436, allocations: 0.5449 MB / 1.119 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.8436, allocations: 33.75 kB / 1.119 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.757e-05/0.8437, allocations: 41.81 kB / 1.119 GB, free: 8.926 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007276/0.8444, allocations: 435.6 kB / 1.119 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.8445, allocations: 6.484 kB / 1.119 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.8445, allocations: 15.91 kB / 1.119 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.8446, allocations: 9.562 kB / 1.119 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005303/0.8451, allocations: 303.6 kB / 1.12 GB, free: 8.598 MB / 0.8575 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.002996/0.8481, allocations: 1.933 MB / 1.122 GB, free: 7.219 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005718/0.8487, allocations: 249.4 kB / 1.122 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.8489, allocations: 122 kB / 1.122 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009957/0.8499, allocations: 0.8631 MB / 1.123 GB, free: 6.109 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.8499, allocations: 35.94 kB / 1.123 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 2.064e-06/0.85, allocations: 1.094 kB / 1.123 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0008254/0.8508, allocations: 369.9 kB / 1.123 GB, free: 5.914 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.8509, allocations: 58.06 kB / 1.123 GB, free: 5.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006777/0.8515, allocations: 476.8 kB / 1.124 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.8516, allocations: 34.92 kB / 1.124 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/0.8518, allocations: 256.3 kB / 1.124 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.8519, allocations: 95.06 kB / 1.124 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.8521, allocations: 74.59 kB / 1.124 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002051/0.8523, allocations: 360.9 kB / 1.124 GB, free: 4.922 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.8525, allocations: 97.75 kB / 1.125 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.8527, allocations: 177.1 kB / 1.125 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004438/0.8532, allocations: 282.9 kB / 1.125 GB, free: 4.609 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.8532, allocations: 0.9062 kB / 1.125 GB, free: 4.609 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006749/0.8539, allocations: 362.3 kB / 1.125 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.8539, allocations: 8.688 kB / 1.125 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.8539, allocations: 1.094 kB / 1.125 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.8539, allocations: 3.562 kB / 1.125 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.8542, allocations: 79.53 kB / 1.125 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.8543, allocations: 8.047 kB / 1.125 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.8546, allocations: 42.91 kB / 1.125 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.805e-05/0.8547, allocations: 13.44 kB / 1.125 GB, free: 4.406 MB / 0.8575 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.0002482/0.8549, allocations: 180.5 kB / 1.126 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.855, allocations: 47.81 kB / 1.126 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008492/0.8559, allocations: 474.4 kB / 1.126 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.925e-05/0.8559, allocations: 8.078 kB / 1.126 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.8559, allocations: 4.609 kB / 1.126 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006401/0.8566, allocations: 0.5703 MB / 1.127 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.8587, allocations: 1.15 MB / 1.128 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.8587, allocations: 1.828 kB / 1.128 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.859, allocations: 46.33 kB / 1.128 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.859, allocations: 3.125 kB / 1.128 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.859, allocations: 13.88 kB / 1.128 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.859, allocations: 8.75 kB / 1.128 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.859, allocations: 1.062 kB / 1.128 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.86, allocations: 0.6656 MB / 1.129 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.8603, allocations: 171.7 kB / 1.129 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.687e-05/0.8604, allocations: 8.234 kB / 1.129 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/0.8607, allocations: 11.27 kB / 1.129 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.8607, allocations: 26.88 kB / 1.129 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.8608, allocations: 21.64 kB / 1.129 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004974/0.8613, allocations: 346.7 kB / 1.129 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8613, allocations: 0 / 1.129 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008223/0.8621, allocations: 198.2 kB / 1.129 GB, free: 2.082 MB / 0.8575 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.0007169/0.8629, allocations: 303 kB / 1.13 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000694/0.8636, allocations: 312.5 kB / 1.13 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.8636, allocations: 1.469 kB / 1.13 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002658/0.8638, allocations: 170.3 kB / 1.13 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001699/0.8656, allocations: 336.5 kB / 1.13 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.8676, allocations: 1.098 MB / 1.131 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006476/0.8682, allocations: 0.8634 MB / 1.132 GB, free: 240 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.8684, allocations: 66.42 kB / 1.132 GB, free: 220 kB / 0.8575 GB Notification: Performance of SimCode: time 8.72e-07/0.8684, allocations: 0 / 1.132 GB, free: 220 kB / 0.8575 GB Notification: Performance of Templates: time 0.01819/0.8866, allocations: 9.86 MB / 1.142 GB, free: 11.28 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches