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: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 104 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 196.7 kB / 16.53 MB, free: 6.684 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002302/0.002302, allocations: 275 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9995/0.9995, allocations: 178.6 MB / 0.5073 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00268/0.00268, allocations: 106.6 kB / 0.6065 GB, free: 24.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.2008, allocations: 89.13 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.HeatMeter): time 0.02823/0.229, allocations: 23.2 MB / 0.7163 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.008428/0.2375, allocations: 5.104 MB / 0.7212 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/0.2387, allocations: 27.81 kB / 0.7213 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0008881/0.2396, allocations: 274.1 kB / 0.7215 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002095/0.2418, allocations: 0.7889 MB / 0.7223 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00207/0.2439, allocations: 0.7554 MB / 0.723 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002345/0.2462, allocations: 1.613 MB / 0.7246 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009119/0.2471, allocations: 493.3 kB / 0.7251 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.249, allocations: 0.6108 MB / 0.7257 GB, free: 3.262 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009266/0.25, allocations: 450 kB / 0.7261 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.449e-05/0.2501, allocations: 48 kB / 0.7262 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.2514, allocations: 495.1 kB / 0.7266 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.2516, allocations: 143.5 kB / 0.7268 GB, free: 2.148 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.252, allocations: 306.5 kB / 0.7271 GB, free: 1.848 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.2533, allocations: 0.9037 MB / 0.7279 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2533, allocations: 3.938 kB / 0.7279 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2533, allocations: 0 / 0.7279 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.25e-05/0.2533, allocations: 0 / 0.7279 GB, free: 0.9375 MB / 0.5137 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.001343/0.2547, allocations: 0.8805 MB / 0.7288 GB, free: 8 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.275e-05/0.2547, allocations: 16.02 kB / 0.7288 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.147e-05/0.2548, allocations: 78.66 kB / 0.7289 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.2551, allocations: 68.19 kB / 0.729 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009235/0.256, allocations: 0.553 MB / 0.7295 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.256, allocations: 29 kB / 0.7295 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.675e-05/0.2561, allocations: 36 kB / 0.7296 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006939/0.2568, allocations: 436.7 kB / 0.73 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.2568, allocations: 0 / 0.73 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.125e-05/0.2569, allocations: 16 kB / 0.73 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/0.2569, allocations: 19.98 kB / 0.73 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000516/0.2575, allocations: 303.8 kB / 0.7303 GB, free: 14.41 MB / 0.5294 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.002816/0.2603, allocations: 1.927 MB / 0.7322 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005433/0.2608, allocations: 259.4 kB / 0.7324 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.261, allocations: 120.8 kB / 0.7325 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009784/0.262, allocations: 0.8545 MB / 0.7334 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.2621, allocations: 38.5 kB / 0.7334 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=26): time 1.723e-06/0.2621, allocations: 0 / 0.7334 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of matching and sorting (n=26): time 0.0007622/0.2628, allocations: 377.4 kB / 0.7338 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.2629, allocations: 51.41 kB / 0.7338 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005887/0.2635, allocations: 478.1 kB / 0.7343 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.2635, allocations: 29.7 kB / 0.7343 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.2638, allocations: 263.9 kB / 0.7346 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.288e-05/0.2639, allocations: 94.66 kB / 0.7346 GB, free: 9.578 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.264, allocations: 70.02 kB / 0.7347 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.2642, allocations: 354.8 kB / 0.7351 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.2644, allocations: 100.6 kB / 0.7352 GB, free: 9.051 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002478/0.2646, allocations: 168 kB / 0.7353 GB, free: 8.863 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/0.265, allocations: 291.6 kB / 0.7356 GB, free: 8.555 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2651, allocations: 4 kB / 0.7356 GB, free: 8.551 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006095/0.2657, allocations: 356.8 kB / 0.7359 GB, free: 8.195 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.2657, allocations: 11.98 kB / 0.7359 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2657, allocations: 0 / 0.7359 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.2657, allocations: 7.938 kB / 0.736 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.266, allocations: 67.91 kB / 0.736 GB, free: 8.109 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.2661, allocations: 4.219 kB / 0.736 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.2663, allocations: 55.45 kB / 0.7361 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.341e-05/0.2664, allocations: 12 kB / 0.7361 GB, free: 8.039 MB / 0.5294 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.0002256/0.2666, allocations: 177.8 kB / 0.7363 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.2667, allocations: 51.34 kB / 0.7363 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000847/0.2676, allocations: 476.8 kB / 0.7368 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.2676, allocations: 7.938 kB / 0.7368 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2676, allocations: 0 / 0.7368 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006434/0.2682, allocations: 0.5648 MB / 0.7373 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.2702, allocations: 1.153 MB / 0.7384 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2702, allocations: 0 / 0.7384 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000218/0.2705, allocations: 56.09 kB / 0.7385 GB, free: 5.387 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.2705, allocations: 7.938 kB / 0.7385 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.2705, allocations: 8 kB / 0.7385 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.2705, allocations: 7.984 kB / 0.7385 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.2705, allocations: 7.938 kB / 0.7385 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009326/0.2715, allocations: 0.6599 MB / 0.7392 GB, free: 4.66 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.2717, allocations: 176.3 kB / 0.7393 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.825e-05/0.2718, allocations: 8 kB / 0.7393 GB, free: 4.461 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.272, allocations: 8 kB / 0.7394 GB, free: 4.453 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.853e-05/0.2721, allocations: 35.84 kB / 0.7394 GB, free: 4.418 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.7e-05/0.2721, allocations: 19.98 kB / 0.7394 GB, free: 4.398 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004507/0.2726, allocations: 346.8 kB / 0.7397 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2726, allocations: 4 kB / 0.7397 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006613/0.2733, allocations: 195.7 kB / 0.7399 GB, free: 3.867 MB / 0.5294 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.001848/0.2751, allocations: 1.398 MB / 0.7413 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006564/0.2758, allocations: 307.6 kB / 0.7416 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2758, allocations: 4.438 kB / 0.7416 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.2761, allocations: 159.8 kB / 0.7417 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.2778, allocations: 342.2 kB / 0.7421 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006426/0.2842, allocations: 4.292 MB / 0.7463 GB, free: 13.21 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005675/0.2848, allocations: 0.8666 MB / 0.7471 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004728/0.2853, allocations: 120.7 kB / 0.7472 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002755/0.2856, allocations: 195.3 kB / 0.7474 GB, free: 12 MB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/0.2856, allocations: 0 / 0.7474 GB, free: 12 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3279/0.6135, allocations: 16.89 MB / 0.7639 GB, free: 67.27 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.909/8.522, allocations: 5.047 kB / 0.7639 GB, free: 67.27 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_HeatMeter.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1)