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.001459/0.001459, allocations: 108 kB / 15.61 MB, free: 152 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.001324/0.001324, allocations: 199.2 kB / 16.54 MB, free: 6.664 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.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002379/0.002379, allocations: 278.6 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.047/1.047, allocations: 178.6 MB / 0.5073 GB, free: 4.523 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002866/0.002866, allocations: 101.2 kB / 0.6065 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1675, allocations: 89.14 MB / 0.6936 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.HeatMeter): time 0.02546/0.193, allocations: 23.2 MB / 0.7163 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.007533/0.2006, allocations: 5.105 MB / 0.7212 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00062/0.2012, allocations: 27.81 kB / 0.7213 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000766/0.202, allocations: 274.1 kB / 0.7215 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001892/0.2039, allocations: 0.785 MB / 0.7223 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.2057, allocations: 0.7599 MB / 0.723 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001857/0.2075, allocations: 1.606 MB / 0.7246 GB, free: 4.367 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006848/0.2082, allocations: 493.3 kB / 0.7251 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.2095, allocations: 0.6058 MB / 0.7257 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005677/0.2101, allocations: 450 kB / 0.7261 GB, free: 2.832 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.013e-05/0.2102, allocations: 51.94 kB / 0.7261 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.2112, allocations: 495.1 kB / 0.7266 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.2114, allocations: 143.5 kB / 0.7268 GB, free: 2.156 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003071/0.2117, allocations: 310.5 kB / 0.7271 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.2129, allocations: 0.9037 MB / 0.7279 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2129, allocations: 7.922 kB / 0.7279 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2129, allocations: 3.938 kB / 0.7279 GB, free: 0.9336 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.2129, allocations: 0 / 0.7279 GB, free: 0.9336 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.001281/0.2142, allocations: 0.8727 MB / 0.7288 GB, free: 12 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.2143, allocations: 8.031 kB / 0.7288 GB, free: 4 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.077e-05/0.2144, allocations: 90.69 kB / 0.7289 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.2146, allocations: 64.19 kB / 0.729 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009144/0.2155, allocations: 0.5491 MB / 0.7295 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.108e-05/0.2156, allocations: 29 kB / 0.7295 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.705e-05/0.2156, allocations: 36 kB / 0.7296 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.2164, allocations: 440.7 kB / 0.73 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.2164, allocations: 0 / 0.73 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.2165, allocations: 20 kB / 0.73 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.2165, allocations: 12 kB / 0.73 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005163/0.217, 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.002797/0.2198, allocations: 1.927 MB / 0.7322 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005633/0.2204, allocations: 265 kB / 0.7324 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002001/0.2206, allocations: 124.8 kB / 0.7325 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008887/0.2215, allocations: 0.8428 MB / 0.7334 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.2215, allocations: 38.56 kB / 0.7334 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.2215, allocations: 0 / 0.7334 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of matching and sorting (n=26): time 0.0006981/0.2223, allocations: 377.5 kB / 0.7338 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.2223, allocations: 59.39 kB / 0.7338 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000569/0.2229, allocations: 478.1 kB / 0.7343 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.2229, allocations: 29.7 kB / 0.7343 GB, free: 9.938 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.2232, allocations: 260 kB / 0.7346 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.2233, allocations: 94.64 kB / 0.7346 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.2234, allocations: 70.02 kB / 0.7347 GB, free: 9.512 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.2236, allocations: 358.8 kB / 0.7351 GB, free: 9.152 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.2238, allocations: 96.61 kB / 0.7351 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.224, allocations: 168.1 kB / 0.7353 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.2245, allocations: 287.6 kB / 0.7356 GB, free: 8.566 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.2245, allocations: 7.938 kB / 0.7356 GB, free: 8.559 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006495/0.2252, allocations: 364.8 kB / 0.7359 GB, free: 8.195 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.2252, allocations: 4 kB / 0.7359 GB, free: 8.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2252, allocations: 4.219 kB / 0.7359 GB, free: 8.188 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.2252, allocations: 11.94 kB / 0.736 GB, free: 8.176 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002845/0.2255, allocations: 67.91 kB / 0.736 GB, free: 8.109 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.2256, allocations: 7.984 kB / 0.736 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.2258, allocations: 43.52 kB / 0.7361 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.143e-05/0.2259, allocations: 12 kB / 0.7361 GB, free: 8.047 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.0002154/0.2261, allocations: 177.8 kB / 0.7362 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2262, allocations: 59.33 kB / 0.7363 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008459/0.2271, allocations: 473.4 kB / 0.7368 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.2271, allocations: 7.938 kB / 0.7368 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2271, allocations: 4 kB / 0.7368 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006316/0.2277, allocations: 0.5609 MB / 0.7373 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.2296, allocations: 1.157 MB / 0.7384 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.2296, allocations: 0 / 0.7384 GB, free: 5.441 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/0.2299, allocations: 55.91 kB / 0.7385 GB, free: 5.387 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.2299, allocations: 4.047 kB / 0.7385 GB, free: 5.383 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.2299, allocations: 15.97 kB / 0.7385 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.2299, allocations: 4 kB / 0.7385 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2299, allocations: 0 / 0.7385 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009259/0.2309, allocations: 0.6639 MB / 0.7392 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.2311, allocations: 176.3 kB / 0.7393 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.184e-05/0.2312, allocations: 8 kB / 0.7393 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.2315, allocations: 12 kB / 0.7394 GB, free: 4.453 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.2315, allocations: 35.78 kB / 0.7394 GB, free: 4.418 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.2316, allocations: 19.98 kB / 0.7394 GB, free: 4.398 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004207/0.232, allocations: 346.8 kB / 0.7397 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.41e-07/0.232, allocations: 0 / 0.7397 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007072/0.2327, allocations: 199.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.001742/0.2345, allocations: 1.387 MB / 0.7413 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005943/0.2351, allocations: 315.5 kB / 0.7416 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2351, allocations: 0 / 0.7416 GB, free: 2.133 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.2353, allocations: 159.8 kB / 0.7417 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.2369, allocations: 339.1 kB / 0.7421 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005749/0.2426, 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.0005414/0.2432, allocations: 0.8705 MB / 0.7471 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004918/0.2437, allocations: 112.7 kB / 0.7472 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.244, allocations: 187.4 kB / 0.7474 GB, free: 12.02 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/0.244, allocations: 0 / 0.7474 GB, free: 12.02 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2896/0.5337, allocations: 16.9 MB / 0.7639 GB, free: 67.27 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.433, allocations: 8.25 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_HeatMeter.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1)