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.004638/0.004638, allocations: 99.06 kB / 15.73 MB, free: 6.059 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.001245/0.001245, allocations: 189.2 kB / 16.67 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002431/0.002431, allocations: 275.1 kB / 290.8 MB, free: 1.785 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.036/1.036, allocations: 178.6 MB / 0.5074 GB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00258/0.00258, allocations: 97.34 kB / 0.6943 GB, free: 3.613 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4539/0.4565, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.HeatMeter): time 0.0252/0.4817, allocations: 23.21 MB / 0.804 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.007735/0.4895, allocations: 5.089 MB / 0.809 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000931/0.4905, allocations: 28.22 kB / 0.809 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000837/0.4914, allocations: 272.3 kB / 0.8093 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002072/0.4934, allocations: 0.7887 MB / 0.81 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001831/0.4953, allocations: 0.7779 MB / 0.8108 GB, free: 7.477 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002124/0.4974, allocations: 1.606 MB / 0.8124 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007123/0.4981, allocations: 0.4915 MB / 0.8129 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001575/0.4997, allocations: 0.6134 MB / 0.8135 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007605/0.5005, allocations: 450.2 kB / 0.8139 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.226e-05/0.5006, allocations: 45.78 kB / 0.8139 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.5018, allocations: 495.3 kB / 0.8144 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.502, allocations: 145.9 kB / 0.8145 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003321/0.5023, allocations: 303.9 kB / 0.8148 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001373/0.5037, allocations: 0.9232 MB / 0.8157 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.5037, allocations: 0 / 0.8157 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5037, allocations: 1.125 kB / 0.8157 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.916e-06/0.5037, allocations: 0 / 0.8157 GB, free: 4.457 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.001337/0.5051, allocations: 0.9142 MB / 0.8166 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.5051, allocations: 9.625 kB / 0.8166 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.98e-05/0.5052, allocations: 76.47 kB / 0.8167 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.5054, allocations: 66.94 kB / 0.8168 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009661/0.5064, allocations: 0.5847 MB / 0.8173 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.5064, allocations: 33.48 kB / 0.8174 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.328e-05/0.5065, allocations: 37.94 kB / 0.8174 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006778/0.5072, allocations: 431.5 kB / 0.8178 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.5072, allocations: 5 kB / 0.8178 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.918e-05/0.5073, allocations: 16.47 kB / 0.8178 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.5073, allocations: 14.03 kB / 0.8179 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000494/0.5078, allocations: 303.6 kB / 0.8181 GB, free: 2.629 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.002612/0.5104, allocations: 1.912 MB / 0.82 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.511, allocations: 258.8 kB / 0.8203 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.5112, allocations: 126.1 kB / 0.8204 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008879/0.5121, allocations: 0.8499 MB / 0.8212 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.5121, allocations: 43.81 kB / 0.8212 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=26): time 3.606e-06/0.5121, allocations: 0 / 0.8212 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of matching and sorting (n=26): time 0.0006979/0.5128, allocations: 386.3 kB / 0.8216 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.5129, allocations: 54.53 kB / 0.8217 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005727/0.5135, allocations: 476.6 kB / 0.8221 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.5135, allocations: 30.89 kB / 0.8222 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002243/0.5137, allocations: 264.5 kB / 0.8224 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.497e-05/0.5138, allocations: 94.61 kB / 0.8225 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.514, allocations: 79.03 kB / 0.8226 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001802/0.5142, allocations: 358.1 kB / 0.8229 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.5143, allocations: 95.14 kB / 0.823 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.5146, allocations: 165.5 kB / 0.8232 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.5151, allocations: 285.7 kB / 0.8234 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.5151, allocations: 0 / 0.8234 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006598/0.5158, allocations: 367 kB / 0.8238 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.5158, allocations: 6.125 kB / 0.8238 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.5158, allocations: 2.75 kB / 0.8238 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.5158, allocations: 7.031 kB / 0.8238 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.5161, allocations: 67.81 kB / 0.8239 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.5161, allocations: 7.484 kB / 0.8239 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003115/0.5164, allocations: 38.67 kB / 0.8239 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.5165, allocations: 15.62 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.0002528/0.5168, allocations: 185.5 kB / 0.8241 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.5169, allocations: 52.14 kB / 0.8241 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008987/0.5178, allocations: 481.3 kB / 0.8246 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.5178, allocations: 11.47 kB / 0.8246 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5178, allocations: 0 / 0.8246 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006662/0.5185, allocations: 0.5681 MB / 0.8252 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.5205, allocations: 1.155 MB / 0.8263 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.5205, allocations: 1.312 kB / 0.8263 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000219/0.5207, allocations: 51.62 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.808e-06/0.5208, allocations: 3.094 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.5208, allocations: 12.89 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.5208, allocations: 2.594 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.5208, allocations: 2.781 kB / 0.8264 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009927/0.5218, allocations: 0.6655 MB / 0.827 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002962/0.5221, allocations: 186.1 kB / 0.8272 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.586e-05/0.5222, allocations: 7.969 kB / 0.8272 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.5225, allocations: 15.97 kB / 0.8272 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.5226, allocations: 31.48 kB / 0.8273 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.5226, allocations: 15.28 kB / 0.8273 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004833/0.5231, allocations: 352.4 kB / 0.8276 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5231, allocations: 0 / 0.8276 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007133/0.5238, allocations: 197.8 kB / 0.8278 GB, free: 11.03 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.001862/0.5257, allocations: 1.403 MB / 0.8292 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000593/0.5263, allocations: 286.8 kB / 0.8294 GB, free: 9.84 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5263, allocations: 0 / 0.8294 GB, free: 9.84 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.5266, allocations: 161.7 kB / 0.8296 GB, free: 9.77 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/0.5282, allocations: 346.1 kB / 0.8299 GB, free: 9.586 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005916/0.5342, allocations: 4.214 MB / 0.834 GB, free: 6.684 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.5347, allocations: 0.8664 MB / 0.8349 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004488/0.5351, allocations: 121.1 kB / 0.835 GB, free: 5.848 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002689/0.5354, allocations: 194.9 kB / 0.8352 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of SimCode: time 6.51e-07/0.5354, allocations: 4 kB / 0.8352 GB, free: 5.691 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04324/0.5786, allocations: 17.01 MB / 0.8518 GB, free: 6.402 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.467/9.046, allocations: 5.844 kB / 0.8518 GB, free: 6.398 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)