Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion",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/BuildSysPro 3.5.0/package.mo): time 0.9129/0.9129, allocations: 127.4 MB / 134.6 MB, free: 4.105 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00131/0.00131, allocations: 173.3 kB / 164.4 MB, free: 6.883 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.999/1.999, allocations: 205.1 MB / 399.1 MB, free: 6.074 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 83.33 kB / 476.3 MB, free: 8.828 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3553/0.3564, allocations: 82.87 MB / 0.546 GB, free: 42.66 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.5559, allocations: 76.76 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.156/1.712, allocations: 336.2 MB / 0.9493 GB, free: 147.1 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004182/1.713, allocations: 75.95 kB / 0.9494 GB, free: 147.1 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0241/1.737, allocations: 11.57 MB / 0.9607 GB, free: 138.2 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/1.737, allocations: 8 kB / 0.9607 GB, free: 138.2 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.571e-05/1.737, allocations: 0 / 0.9607 GB, free: 138.2 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/1.737, allocations: 159.1 kB / 0.9608 GB, free: 138 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.559e-05/1.737, allocations: 33.69 kB / 0.9609 GB, free: 137.9 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/1.737, allocations: 7.891 kB / 0.9609 GB, free: 137.9 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001037/1.738, allocations: 8 kB / 0.9609 GB, free: 137.9 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/1.738, allocations: 44.75 kB / 0.9609 GB, free: 137.9 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/1.738, allocations: 7.938 kB / 0.9609 GB, free: 137.9 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/1.738, allocations: 0 / 0.9609 GB, free: 137.9 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.669e-05/1.738, allocations: 4 kB / 0.9609 GB, free: 137.9 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006147/1.738, allocations: 310.4 kB / 0.9612 GB, free: 137.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.346e-05/1.738, allocations: 14.58 kB / 0.9613 GB, free: 137.5 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.296e-05/1.738, allocations: 8.922 kB / 0.9613 GB, free: 137.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 9.16e-05/1.739, allocations: 85.11 kB / 0.9613 GB, free: 137.4 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/1.739, allocations: 34.55 kB / 0.9614 GB, free: 137.3 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=1): time 2.665e-06/1.739, allocations: 0 / 0.9614 GB, free: 137.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1): time 0.000239/1.739, allocations: 37.64 kB / 0.9614 GB, free: 137.3 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/1.739, allocations: 51.41 kB / 0.9615 GB, free: 137.2 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.318e-05/1.739, allocations: 92.69 kB / 0.9615 GB, free: 137.1 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/1.739, allocations: 25.7 kB / 0.9616 GB, free: 137.1 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/1.739, allocations: 88.03 kB / 0.9617 GB, free: 137 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.322e-06/1.739, allocations: 11 kB / 0.9617 GB, free: 137 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-06/1.739, allocations: 0 / 0.9617 GB, free: 137 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.363e-05/1.739, allocations: 314.8 kB / 0.962 GB, free: 136.7 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.261e-05/1.739, allocations: 0 / 0.962 GB, free: 136.7 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.784e-05/1.739, allocations: 19.28 kB / 0.962 GB, free: 136.7 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.831e-05/1.739, allocations: 7.984 kB / 0.962 GB, free: 136.7 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/1.739, allocations: 4 kB / 0.962 GB, free: 136.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001229/1.739, allocations: 49.62 kB / 0.962 GB, free: 136.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/1.739, allocations: 4 kB / 0.962 GB, free: 136.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/1.739, allocations: 3.906 kB / 0.9621 GB, free: 136.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/1.739, allocations: 4 kB / 0.9621 GB, free: 136.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.708e-05/1.74, allocations: 4 kB / 0.9621 GB, free: 136.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/1.74, allocations: 7.922 kB / 0.9621 GB, free: 136.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.236e-05/1.74, allocations: 0 / 0.9621 GB, free: 136.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/1.74, allocations: 4 kB / 0.9621 GB, free: 136.6 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.523e-05/1.74, allocations: 109 kB / 0.9622 GB, free: 136.5 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/1.74, allocations: 7.719 kB / 0.9622 GB, free: 136.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/1.74, allocations: 116.9 kB / 0.9623 GB, free: 136.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-05/1.74, allocations: 184.2 kB / 0.9625 GB, free: 136.1 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.175e-05/1.74, allocations: 176.3 kB / 0.9626 GB, free: 136 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.7e-05/1.74, allocations: 184.2 kB / 0.9628 GB, free: 135.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/1.74, allocations: 385.5 kB / 0.9632 GB, free: 135.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-05/1.74, allocations: 108.9 kB / 0.9633 GB, free: 135.2 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.787e-05/1.74, allocations: 108.8 kB / 0.9634 GB, free: 135.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.58e-05/1.74, allocations: 180.3 kB / 0.9636 GB, free: 135 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/1.74, allocations: 176.3 kB / 0.9637 GB, free: 134.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.622e-05/1.74, allocations: 192.2 kB / 0.9639 GB, free: 134.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.269e-05/1.74, allocations: 176.3 kB / 0.9641 GB, free: 134.4 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.583e-05/1.74, allocations: 302.8 kB / 0.9644 GB, free: 134.1 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001424/1.741, allocations: 0.6791 MB / 0.965 GB, free: 133.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.592e-05/1.741, allocations: 183.1 kB / 0.9652 GB, free: 133.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/1.741, allocations: 184.2 kB / 0.9654 GB, free: 133 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/1.741, allocations: 104.9 kB / 0.9655 GB, free: 132.9 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/1.741, allocations: 180.5 kB / 0.9657 GB, free: 132.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/1.741, allocations: 105 kB / 0.9658 GB, free: 132.6 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.42e-05/1.741, allocations: 91.12 kB / 0.9658 GB, free: 132.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000937/1.742, allocations: 12 kB / 0.9659 GB, free: 132.5 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0002393/1.742, allocations: 210.7 kB / 0.9661 GB, free: 132.3 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 6.677e-05/1.742, allocations: 7.938 kB / 0.9661 GB, free: 132.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.742, allocations: 0 / 0.9661 GB, free: 132.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 2.745e-06/1.742, allocations: 11.98 kB / 0.9661 GB, free: 132.3 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/1.743, allocations: 0.5221 MB / 0.9666 GB, free: 131.7 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002119/1.743, allocations: 119.4 kB / 0.9667 GB, free: 131.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/1.743, allocations: 0.6841 MB / 0.9674 GB, free: 130.9 MB / 0.6198 GB Notification: Performance of SimCode: time 2.71e-07/1.743, allocations: 3.938 kB / 0.9674 GB, free: 130.9 MB / 0.6198 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)