Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7121/0.7121, allocations: 141.8 MB / 149.1 MB, free: 4.441 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 183.3 kB / 181.9 MB, free: 92 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 221.3 MB / 436 MB, free: 9.242 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009422/0.0009422, allocations: 97.61 kB / 0.507 GB, free: 24.3 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002067, allocations: 277.7 kB / 0.5884 GB, free: 12.25 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1884/0.1905, allocations: 89.65 MB / 0.676 GB, free: 2.523 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3737/0.5642, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.55/4.114, allocations: 1.827 GB / 2.584 GB, free: 253.8 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/4.115, allocations: 91.94 kB / 2.584 GB, free: 253.7 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.8909/5.006, allocations: 300.8 MB / 2.878 GB, free: 188.6 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/5.006, allocations: 10.59 kB / 2.878 GB, free: 188.6 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004379/5.006, allocations: 65.58 kB / 2.878 GB, free: 188.6 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006464/5.007, allocations: 327.6 kB / 2.878 GB, free: 188.4 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/5.007, allocations: 11.5 kB / 2.878 GB, free: 188.4 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/5.007, allocations: 15.59 kB / 2.878 GB, free: 188.4 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003511/5.007, allocations: 153.4 kB / 2.878 GB, free: 188.4 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/5.008, allocations: 252.8 kB / 2.878 GB, free: 188.3 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/5.008, allocations: 3 kB / 2.878 GB, free: 188.3 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/5.008, allocations: 3.656 kB / 2.878 GB, free: 188.3 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/5.008, allocations: 10.66 kB / 2.878 GB, free: 188.3 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/5.009, allocations: 1.465 MB / 2.88 GB, free: 187.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/5.009, allocations: 82.62 kB / 2.88 GB, free: 187.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/5.01, allocations: 71.47 kB / 2.88 GB, free: 187.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005253/5.01, allocations: 304.5 kB / 2.88 GB, free: 186.9 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/5.01, allocations: 32.28 kB / 2.88 GB, free: 186.9 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=13): time 2.375e-06/5.01, allocations: 0 / 2.88 GB, free: 186.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=13): time 0.0006861/5.011, allocations: 213.4 kB / 2.881 GB, free: 186.8 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/5.011, allocations: 51.41 kB / 2.881 GB, free: 186.8 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/5.011, allocations: 185.3 kB / 2.881 GB, free: 186.7 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/5.011, allocations: 29.42 kB / 2.881 GB, free: 186.6 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 7.423e-05/5.011, allocations: 166.7 kB / 2.881 GB, free: 186.5 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 4.667e-05/5.011, allocations: 45.17 kB / 2.881 GB, free: 186.5 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.645e-06/5.011, allocations: 1.953 kB / 2.881 GB, free: 186.5 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.579e-05/5.011, allocations: 330.8 kB / 2.881 GB, free: 186.2 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.607e-05/5.011, allocations: 42.67 kB / 2.881 GB, free: 186.2 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.988e-05/5.011, allocations: 105.3 kB / 2.881 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/5.012, allocations: 94.59 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/5.012, allocations: 0 / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003635/5.012, allocations: 198.6 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/5.012, allocations: 9 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/5.012, allocations: 1.562 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/5.012, allocations: 5.656 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/5.012, allocations: 36.22 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/5.012, allocations: 9.531 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/5.012, allocations: 29.41 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/5.013, allocations: 12.66 kB / 2.882 GB, free: 186.1 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.791e-05/5.013, allocations: 113.8 kB / 2.882 GB, free: 186 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/5.013, allocations: 22.84 kB / 2.882 GB, free: 186 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003572/5.013, allocations: 203.7 kB / 2.882 GB, free: 185.9 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/5.013, allocations: 2.938 kB / 2.882 GB, free: 185.9 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/5.013, allocations: 0 / 2.882 GB, free: 185.9 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/5.013, allocations: 0 / 2.882 GB, free: 185.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009456/5.014, allocations: 0.6319 MB / 2.883 GB, free: 185.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/5.014, allocations: 2.25 kB / 2.883 GB, free: 185.6 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/5.014, allocations: 32.94 kB / 2.883 GB, free: 185.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.877e-06/5.014, allocations: 6.875 kB / 2.883 GB, free: 185.6 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/5.014, allocations: 2.812 kB / 2.883 GB, free: 185.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.125e-06/5.014, allocations: 10 kB / 2.883 GB, free: 185.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/5.014, allocations: 2.281 kB / 2.883 GB, free: 185.6 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004842/5.015, allocations: 407.8 kB / 2.883 GB, free: 185.3 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000813/5.016, allocations: 0.8271 MB / 2.884 GB, free: 184.6 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/5.016, allocations: 108.4 kB / 2.884 GB, free: 184.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.433e-05/5.016, allocations: 5.797 kB / 2.884 GB, free: 184.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/5.016, allocations: 27.34 kB / 2.884 GB, free: 184.5 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.59e-05/5.016, allocations: 13.91 kB / 2.884 GB, free: 184.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/5.016, allocations: 5.094 kB / 2.884 GB, free: 184.5 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001778/5.016, allocations: 150.2 kB / 2.884 GB, free: 184.4 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001696/5.018, allocations: 297.4 kB / 2.885 GB, free: 184.4 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00203/5.02, allocations: 1.358 MB / 2.886 GB, free: 184.1 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0003056/5.02, allocations: 123.1 kB / 2.886 GB, free: 184.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/5.02, allocations: 0 / 2.886 GB, free: 184.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/5.02, allocations: 63.62 kB / 2.886 GB, free: 184.1 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000585/5.021, allocations: 75.95 kB / 2.886 GB, free: 184.1 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007902/5.022, allocations: 360.5 kB / 2.887 GB, free: 183.9 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/5.022, allocations: 0.8146 MB / 2.887 GB, free: 183.2 MB / 0.6982 GB Notification: Performance of SimCode: time 2.51e-07/5.022, allocations: 0 / 2.887 GB, free: 183.2 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_EnthalpyFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1)