Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter") translateModel(BuildingSystems.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.00151/0.00151, allocations: 108.1 kB / 17.07 MB, free: 5.441 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.001456/0.001456, allocations: 207 kB / 18.05 MB, free: 4.477 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.367/1.367, allocations: 225.6 MB / 244.5 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002508/0.002508, allocations: 274.7 kB / 297.6 MB, free: 11.31 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.186/1.186, allocations: 180.9 MB / 0.519 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002631/0.002631, allocations: 100.7 kB / 0.7166 GB, free: 40.52 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.167, allocations: 94.16 MB / 0.8086 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.HeatMeter): time 0.02777/0.1947, allocations: 23.38 MB / 0.8314 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.008167/0.2029, allocations: 5.105 MB / 0.8364 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009665/0.2039, allocations: 31.81 kB / 0.8364 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008763/0.2047, allocations: 282 kB / 0.8367 GB, free: 9.648 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00217/0.2069, allocations: 0.8318 MB / 0.8375 GB, free: 8.812 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002029/0.2089, allocations: 0.7766 MB / 0.8383 GB, free: 8.043 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002307/0.2113, allocations: 1.617 MB / 0.8399 GB, free: 6.422 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006724/0.2119, allocations: 425.5 kB / 0.8403 GB, free: 6.004 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001746/0.2137, allocations: 0.6324 MB / 0.8409 GB, free: 5.371 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007949/0.2145, allocations: 481.9 kB / 0.8413 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 9.521e-05/0.2146, allocations: 44 kB / 0.8414 GB, free: 4.855 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.2158, allocations: 0.4991 MB / 0.8419 GB, free: 4.355 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.2159, allocations: 143.4 kB / 0.842 GB, free: 4.215 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003838/0.2163, allocations: 310.5 kB / 0.8423 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.2179, allocations: 0.9225 MB / 0.8432 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.218, allocations: 0 / 0.8432 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.272e-06/0.218, allocations: 0 / 0.8432 GB, free: 2.984 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.886e-06/0.218, allocations: 0 / 0.8432 GB, free: 2.984 MB / 0.5919 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.001389/0.2194, allocations: 0.9068 MB / 0.8441 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.2194, allocations: 8.031 kB / 0.8441 GB, free: 2.02 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002186/0.2196, allocations: 72.56 kB / 0.8442 GB, free: 1.949 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.2206, allocations: 0.5731 MB / 0.8447 GB, free: 1.336 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.2207, allocations: 32.94 kB / 0.8448 GB, free: 1.305 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.885e-05/0.2208, allocations: 44 kB / 0.8448 GB, free: 1.262 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007127/0.2215, allocations: 448.6 kB / 0.8452 GB, free: 0.8008 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2215, allocations: 0 / 0.8452 GB, free: 0.8008 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.2215, allocations: 19.94 kB / 0.8452 GB, free: 0.7812 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.521e-05/0.2216, allocations: 11.98 kB / 0.8453 GB, free: 0.7695 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005233/0.2221, allocations: 299.8 kB / 0.8455 GB, free: 488 kB / 0.5919 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.002796/0.2249, allocations: 1.919 MB / 0.8474 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005386/0.2254, allocations: 242.8 kB / 0.8477 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.2256, allocations: 120.7 kB / 0.8478 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009348/0.2265, allocations: 0.8428 MB / 0.8486 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.2266, allocations: 38.55 kB / 0.8486 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=26): time 1.904e-06/0.2266, allocations: 0 / 0.8486 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of matching and sorting (n=26): time 0.0007354/0.2273, allocations: 373.2 kB / 0.849 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.2274, allocations: 59.34 kB / 0.849 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005931/0.228, allocations: 478 kB / 0.8495 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.228, allocations: 33.7 kB / 0.8495 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.2282, allocations: 260.4 kB / 0.8498 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.498e-05/0.2283, allocations: 95.17 kB / 0.8499 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.2284, allocations: 81.91 kB / 0.8499 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.2286, allocations: 358.8 kB / 0.8503 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.2288, allocations: 96.61 kB / 0.8504 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.229, allocations: 168.1 kB / 0.8505 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/0.2294, allocations: 287.7 kB / 0.8508 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2294, allocations: 0 / 0.8508 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006015/0.23, allocations: 365.2 kB / 0.8512 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.2301, allocations: 4 kB / 0.8512 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.2301, allocations: 4 kB / 0.8512 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.2301, allocations: 0 / 0.8512 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000282/0.2304, allocations: 83.77 kB / 0.8512 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2304, allocations: 4 kB / 0.8513 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.2306, allocations: 43.62 kB / 0.8513 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.2307, allocations: 19.98 kB / 0.8513 GB, free: 10.12 MB / 0.6075 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.0002191/0.2309, allocations: 177.9 kB / 0.8515 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.827e-05/0.231, allocations: 51.75 kB / 0.8515 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008423/0.2318, allocations: 472.8 kB / 0.852 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.2318, allocations: 11.94 kB / 0.852 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2319, allocations: 3.938 kB / 0.852 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006394/0.2325, allocations: 0.5768 MB / 0.8526 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.2344, allocations: 1.152 MB / 0.8537 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/0.2344, allocations: 7.938 kB / 0.8537 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002231/0.2346, allocations: 47.98 kB / 0.8537 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.2346, allocations: 3.938 kB / 0.8537 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.2347, allocations: 15.98 kB / 0.8538 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.2347, allocations: 0 / 0.8538 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.2347, allocations: 4 kB / 0.8538 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000928/0.2356, allocations: 0.6683 MB / 0.8544 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000241/0.2358, allocations: 180.6 kB / 0.8546 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.217e-05/0.2359, allocations: 12 kB / 0.8546 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.2362, allocations: 15.98 kB / 0.8546 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.2362, allocations: 19.97 kB / 0.8546 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.798e-05/0.2362, allocations: 19.92 kB / 0.8547 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004351/0.2367, allocations: 346.9 kB / 0.855 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.2367, allocations: 0 / 0.855 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0006682/0.2373, allocations: 199.6 kB / 0.8552 GB, free: 5.941 MB / 0.6075 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.0006591/0.238, allocations: 296.3 kB / 0.8555 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005312/0.2385, allocations: 291.6 kB / 0.8557 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2385, allocations: 0 / 0.8557 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002301/0.2388, allocations: 143.8 kB / 0.8559 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.2403, allocations: 341.8 kB / 0.8562 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.2422, allocations: 1.099 MB / 0.8573 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.2427, allocations: 0.8627 MB / 0.8581 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.2428, allocations: 59.42 kB / 0.8582 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of SimCode: time 6.21e-07/0.2428, allocations: 0 / 0.8582 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of Templates: time 0.01595/0.2588, allocations: 9.963 MB / 0.8679 GB, free: 8.945 MB / 0.6231 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1)