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.001506/0.001506, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.001485/0.001485, allocations: 187.3 kB / 16.25 MB, free: 6.145 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.392/1.392, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002383/0.002383, allocations: 282.5 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.053/1.053, allocations: 178.6 MB / 0.507 GB, free: 4.723 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002643/0.002643, allocations: 100.4 kB / 0.606 GB, free: 25.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1551, allocations: 89.15 MB / 0.6931 GB, free: 4.578 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.HeatMeter): time 0.02348/0.1787, allocations: 23.05 MB / 0.7156 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.007067/0.1858, allocations: 5.067 MB / 0.7206 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000514/0.1863, allocations: 23.81 kB / 0.7206 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006785/0.187, allocations: 242.6 kB / 0.7208 GB, free: 8.109 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.1886, allocations: 0.7301 MB / 0.7215 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.1901, allocations: 0.6999 MB / 0.7222 GB, free: 6.684 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001697/0.1918, allocations: 1.621 MB / 0.7238 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005917/0.1924, allocations: 485.3 kB / 0.7242 GB, free: 4.578 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001227/0.1937, allocations: 0.612 MB / 0.7248 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005173/0.1942, allocations: 470 kB / 0.7253 GB, free: 3.508 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.646e-05/0.1943, allocations: 44 kB / 0.7253 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008079/0.1951, allocations: 0.4912 MB / 0.7258 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.1953, allocations: 143.4 kB / 0.726 GB, free: 2.832 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002885/0.1956, allocations: 310.5 kB / 0.7262 GB, free: 2.527 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1966, allocations: 0.9114 MB / 0.7271 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1966, allocations: 0 / 0.7271 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1966, allocations: 0 / 0.7271 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.1966, allocations: 0 / 0.7271 GB, free: 1.613 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.001237/0.1979, allocations: 0.8882 MB / 0.728 GB, free: 0.6758 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.1979, allocations: 8.031 kB / 0.728 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.752e-05/0.198, allocations: 82.66 kB / 0.7281 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.1982, allocations: 68.17 kB / 0.7282 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008807/0.1991, allocations: 0.5685 MB / 0.7287 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.1992, allocations: 29 kB / 0.7287 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.524e-05/0.1992, allocations: 39.98 kB / 0.7288 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000705/0.1999, allocations: 436.7 kB / 0.7292 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.2, allocations: 3.938 kB / 0.7292 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.856e-05/0.2, allocations: 16 kB / 0.7292 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.2, allocations: 12 kB / 0.7292 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005027/0.2005, allocations: 303.8 kB / 0.7295 GB, free: 15.06 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.002551/0.2031, allocations: 1.907 MB / 0.7314 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.2036, allocations: 259.4 kB / 0.7316 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001902/0.2038, allocations: 120.8 kB / 0.7317 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008572/0.2047, allocations: 0.8506 MB / 0.7326 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.2047, allocations: 34.56 kB / 0.7326 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.2047, allocations: 0 / 0.7326 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of matching and sorting (n=26): time 0.0006805/0.2054, allocations: 385.2 kB / 0.733 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.2055, allocations: 59.41 kB / 0.733 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000548/0.206, allocations: 474 kB / 0.7335 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.2061, allocations: 29.7 kB / 0.7335 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.2063, allocations: 264 kB / 0.7338 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 8.765e-05/0.2064, allocations: 90.66 kB / 0.7338 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.2065, allocations: 70.02 kB / 0.7339 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.2067, allocations: 354.8 kB / 0.7343 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.2068, allocations: 100.6 kB / 0.7343 GB, free: 9.727 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.2071, allocations: 168.1 kB / 0.7345 GB, free: 9.539 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004099/0.2075, allocations: 287.6 kB / 0.7348 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.2075, allocations: 4 kB / 0.7348 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006536/0.2082, allocations: 356.8 kB / 0.7351 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.2082, allocations: 4.219 kB / 0.7351 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2082, allocations: 11.94 kB / 0.7351 GB, free: 8.859 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/0.2082, allocations: 11.92 kB / 0.7352 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.2085, allocations: 71.91 kB / 0.7352 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2086, allocations: 4 kB / 0.7352 GB, free: 8.773 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003177/0.2089, allocations: 43.58 kB / 0.7353 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/0.2089, allocations: 12 kB / 0.7353 GB, free: 8.719 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.0002599/0.2092, allocations: 189.7 kB / 0.7355 GB, free: 8.523 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.2093, allocations: 55.34 kB / 0.7355 GB, free: 8.469 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009102/0.2102, allocations: 476.7 kB / 0.736 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.2103, allocations: 7.938 kB / 0.736 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2103, allocations: 0 / 0.736 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005971/0.2109, allocations: 0.5647 MB / 0.7365 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.2127, allocations: 1.148 MB / 0.7376 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.2127, allocations: 0 / 0.7376 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.2129, allocations: 51.91 kB / 0.7377 GB, free: 6.059 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.213, allocations: 4 kB / 0.7377 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.213, allocations: 8.188 kB / 0.7377 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.213, allocations: 8 kB / 0.7377 GB, free: 6.039 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.213, allocations: 0 / 0.7377 GB, free: 6.039 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000899/0.2139, allocations: 0.6761 MB / 0.7384 GB, free: 5.328 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.2141, allocations: 172.4 kB / 0.7385 GB, free: 5.141 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.679e-05/0.2142, allocations: 8 kB / 0.7385 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002903/0.2145, allocations: 19.89 kB / 0.7386 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.2145, allocations: 28.05 kB / 0.7386 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-05/0.2146, allocations: 16 kB / 0.7386 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004035/0.215, allocations: 346.8 kB / 0.7389 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.215, allocations: 0 / 0.7389 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006154/0.2156, allocations: 191.8 kB / 0.7391 GB, free: 4.547 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.001691/0.2173, allocations: 1.4 MB / 0.7405 GB, free: 3.109 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005553/0.2179, allocations: 311.6 kB / 0.7408 GB, free: 2.805 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2179, allocations: 3.938 kB / 0.7408 GB, free: 2.801 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002396/0.2181, allocations: 160.3 kB / 0.7409 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.2196, allocations: 348.6 kB / 0.7413 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00576/0.2254, allocations: 4.439 MB / 0.7456 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.2259, allocations: 0.8627 MB / 0.7465 GB, free: 12.84 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004109/0.2263, allocations: 120.7 kB / 0.7466 GB, free: 12.72 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.2266, allocations: 191.4 kB / 0.7467 GB, free: 12.53 MB / 0.545 GB Notification: Performance of SimCode: time 2.154e-06/0.2266, allocations: 0 / 0.7467 GB, free: 12.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.993/2.22, allocations: 16.61 MB / 0.763 GB, free: 68.32 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001847/2.22, allocations: 249.5 kB / 0.7632 GB, free: 68.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.062/5.282, allocations: 1.438 kB / 0.7632 GB, free: 68.07 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)