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.004449/0.004449, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001209/0.001209, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002437/0.002437, allocations: 290.5 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.03/1.03, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002659/0.002659, allocations: 95.84 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4518/0.4545, allocations: 89.14 MB / 0.7814 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.HeatMeter): time 0.02503/0.4795, allocations: 23.2 MB / 0.804 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.007636/0.4872, allocations: 5.099 MB / 0.809 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008198/0.4881, allocations: 24.5 kB / 0.809 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008052/0.4889, allocations: 271.8 kB / 0.8093 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002138/0.4911, allocations: 0.7863 MB / 0.81 GB, free: 8.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.493, allocations: 0.773 MB / 0.8108 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002255/0.4953, allocations: 1.611 MB / 0.8124 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007826/0.4961, allocations: 490.3 kB / 0.8128 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.4977, allocations: 0.6222 MB / 0.8134 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007449/0.4985, allocations: 451.6 kB / 0.8139 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.327e-05/0.4986, allocations: 45.59 kB / 0.8139 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.4998, allocations: 490.5 kB / 0.8144 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.5, allocations: 139.4 kB / 0.8145 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003297/0.5003, allocations: 307.2 kB / 0.8148 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.5017, allocations: 0.9306 MB / 0.8157 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.5017, allocations: 0 / 0.8157 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.853e-06/0.5017, allocations: 0 / 0.8157 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.058e-05/0.5017, allocations: 5.906 kB / 0.8157 GB, free: 4.461 MB / 0.5762 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.0015/0.5032, allocations: 0.9065 MB / 0.8166 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.5033, allocations: 9.094 kB / 0.8166 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.5034, allocations: 80.38 kB / 0.8167 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002252/0.5036, allocations: 66.53 kB / 0.8168 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009967/0.5047, allocations: 0.5769 MB / 0.8173 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.067e-05/0.5047, allocations: 29.5 kB / 0.8174 GB, free: 3.102 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.019e-05/0.5048, allocations: 46.11 kB / 0.8174 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007006/0.5055, allocations: 439.2 kB / 0.8178 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.5055, allocations: 1.375 kB / 0.8178 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.901e-05/0.5056, allocations: 16.12 kB / 0.8178 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.5056, allocations: 9.625 kB / 0.8178 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005052/0.5061, allocations: 303.7 kB / 0.8181 GB, free: 2.641 MB / 0.5762 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.002725/0.5088, allocations: 1.917 MB / 0.82 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005299/0.5094, allocations: 263 kB / 0.8203 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.5096, allocations: 125 kB / 0.8204 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009014/0.5105, allocations: 0.8462 MB / 0.8212 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.5105, allocations: 33.19 kB / 0.8212 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.5105, allocations: 0 / 0.8212 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of matching and sorting (n=26): time 0.0007271/0.5113, allocations: 382.4 kB / 0.8216 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.5113, allocations: 62.03 kB / 0.8217 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005674/0.5119, allocations: 475.2 kB / 0.8221 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/0.5119, allocations: 31.83 kB / 0.8221 GB, free: 15.17 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.5122, allocations: 268.6 kB / 0.8224 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.723e-05/0.5122, allocations: 99.11 kB / 0.8225 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.5124, allocations: 70.56 kB / 0.8226 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.5125, allocations: 358 kB / 0.8229 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.5127, allocations: 98.98 kB / 0.823 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.5129, allocations: 166.3 kB / 0.8232 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004143/0.5134, allocations: 288.9 kB / 0.8234 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5134, allocations: 1.094 kB / 0.8234 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005637/0.5139, allocations: 355.8 kB / 0.8238 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.514, allocations: 9.469 kB / 0.8238 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.514, allocations: 1.75 kB / 0.8238 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.514, allocations: 7.438 kB / 0.8238 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/0.5143, allocations: 79.53 kB / 0.8239 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.5143, allocations: 11.98 kB / 0.8239 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.5146, allocations: 33.52 kB / 0.8239 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.5146, allocations: 16.28 kB / 0.8239 GB, free: 13.84 MB / 0.5919 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.000208/0.5148, allocations: 186.4 kB / 0.8241 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.816e-05/0.5149, allocations: 51.45 kB / 0.8242 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007813/0.5157, allocations: 468.8 kB / 0.8246 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.5157, allocations: 11.91 kB / 0.8246 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5158, allocations: 0 / 0.8246 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005897/0.5163, allocations: 0.571 MB / 0.8252 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.5181, allocations: 1.155 MB / 0.8263 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.5182, allocations: 6.234 kB / 0.8263 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/0.5184, allocations: 50.7 kB / 0.8263 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.5184, allocations: 3.812 kB / 0.8264 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.5184, allocations: 12.14 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.5184, allocations: 3.125 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5184, allocations: 2.5 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008762/0.5193, allocations: 0.6705 MB / 0.827 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/0.5195, allocations: 181.9 kB / 0.8272 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.742e-05/0.5196, allocations: 7.281 kB / 0.8272 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.5199, allocations: 20.97 kB / 0.8272 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.5199, allocations: 31.81 kB / 0.8273 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.52, allocations: 11.06 kB / 0.8273 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004122/0.5204, allocations: 347.9 kB / 0.8276 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5204, allocations: 0 / 0.8276 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000648/0.5211, allocations: 197.6 kB / 0.8278 GB, free: 11.04 MB / 0.5919 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.001681/0.5228, allocations: 1.403 MB / 0.8292 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005184/0.5233, allocations: 296 kB / 0.8294 GB, free: 9.844 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5233, allocations: 0 / 0.8294 GB, free: 9.844 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.5235, allocations: 161.5 kB / 0.8296 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.5251, allocations: 337.9 kB / 0.8299 GB, free: 9.598 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.5305, allocations: 4.221 MB / 0.834 GB, free: 6.688 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.531, allocations: 0.8676 MB / 0.8349 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004088/0.5314, allocations: 116.4 kB / 0.835 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002761/0.5317, allocations: 191.4 kB / 0.8352 GB, free: 5.707 MB / 0.5919 GB Notification: Performance of SimCode: time 7.02e-07/0.5317, allocations: 0 / 0.8352 GB, free: 5.707 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04802/0.5798, allocations: 17.02 MB / 0.8518 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.529/9.109, allocations: 7.406 kB / 0.8518 GB, free: 6.391 MB / 0.6075 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)