Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.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.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",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.7179/0.7179, allocations: 141.8 MB / 149.1 MB, free: 0.9062 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.001109/0.001109, allocations: 179.7 kB / 182 MB, free: 13.06 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 221.3 MB / 436 MB, free: 5.812 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.0009489/0.0009488, allocations: 95.59 kB / 0.507 GB, free: 19.16 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001781/0.001781, allocations: 279.4 kB / 0.5885 GB, free: 6.953 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3959/0.3977, allocations: 89.62 MB / 0.676 GB, free: 139.9 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.5545, allocations: 82.78 MB / 0.7568 GB, free: 88.94 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8797/1.434, allocations: 414.6 MB / 1.162 GB, free: 240 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/1.435, allocations: 77.89 kB / 1.162 GB, free: 240 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0498/1.484, allocations: 23.21 MB / 1.184 GB, free: 233.2 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/1.484, allocations: 13 kB / 1.184 GB, free: 233.2 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.878e-05/1.484, allocations: 3.75 kB / 1.184 GB, free: 233.2 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.527e-05/1.484, allocations: 166.9 kB / 1.185 GB, free: 233 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.422e-05/1.485, allocations: 29.7 kB / 1.185 GB, free: 232.9 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.918e-06/1.485, allocations: 3.984 kB / 1.185 GB, free: 232.9 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.404e-05/1.485, allocations: 15.7 kB / 1.185 GB, free: 232.9 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.01e-05/1.485, allocations: 37.41 kB / 1.185 GB, free: 232.9 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/1.485, allocations: 4 kB / 1.185 GB, free: 232.9 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/1.485, allocations: 0 / 1.185 GB, free: 232.9 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/1.485, allocations: 7.938 kB / 1.185 GB, free: 232.9 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000521/1.485, allocations: 0.5783 MB / 1.185 GB, free: 232.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 2.666e-05/1.485, allocations: 26.52 kB / 1.185 GB, free: 232.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.217e-05/1.485, allocations: 8.859 kB / 1.185 GB, free: 232.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002257/1.486, allocations: 0.4902 MB / 1.186 GB, free: 231.6 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/1.486, allocations: 30.56 kB / 1.186 GB, free: 231.5 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/1.486, allocations: 0 / 1.186 GB, free: 231.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=1): time 0.0002416/1.486, allocations: 49.31 kB / 1.186 GB, free: 231.5 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.591e-05/1.486, allocations: 51.41 kB / 1.186 GB, free: 231.4 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.197e-05/1.486, allocations: 96.78 kB / 1.186 GB, free: 231.3 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 8.796e-06/1.486, allocations: 25.7 kB / 1.186 GB, free: 231.3 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 2.369e-05/1.486, allocations: 95.98 kB / 1.186 GB, free: 231.2 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 4.148e-06/1.486, allocations: 0 / 1.186 GB, free: 231.2 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-06/1.486, allocations: 3.938 kB / 1.186 GB, free: 231.2 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 3.87e-05/1.486, allocations: 310.8 kB / 1.186 GB, free: 230.9 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.031e-05/1.486, allocations: 7.75 kB / 1.186 GB, free: 230.9 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.532e-05/1.486, allocations: 17.72 kB / 1.186 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/1.486, allocations: 19.66 kB / 1.186 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/1.486, allocations: 0 / 1.186 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002221/1.487, allocations: 61.2 kB / 1.186 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/1.487, allocations: 4 kB / 1.186 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/1.487, allocations: 3.797 kB / 1.187 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/1.487, allocations: 4 kB / 1.187 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.218e-05/1.487, allocations: 7.938 kB / 1.187 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/1.487, allocations: 0 / 1.187 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.905e-05/1.487, allocations: 4.062 kB / 1.187 GB, free: 230.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/1.487, allocations: 4 kB / 1.187 GB, free: 230.8 MB / 0.6982 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 4.339e-05/1.487, allocations: 104.9 kB / 1.187 GB, free: 230.6 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/1.487, allocations: 4 kB / 1.187 GB, free: 230.6 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/1.487, allocations: 116.6 kB / 1.187 GB, free: 230.5 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-05/1.487, allocations: 188.2 kB / 1.187 GB, free: 230.3 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-05/1.487, allocations: 180.3 kB / 1.187 GB, free: 230.1 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.478e-05/1.487, allocations: 180.2 kB / 1.187 GB, free: 230 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/1.487, allocations: 388.9 kB / 1.188 GB, free: 229.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.564e-05/1.487, allocations: 101 kB / 1.188 GB, free: 229.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.536e-05/1.487, allocations: 101 kB / 1.188 GB, free: 229.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-05/1.487, allocations: 188.1 kB / 1.188 GB, free: 229.1 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/1.487, allocations: 184.3 kB / 1.188 GB, free: 228.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.759e-05/1.487, allocations: 176.3 kB / 1.188 GB, free: 228.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.873e-05/1.487, allocations: 183.9 kB / 1.189 GB, free: 228.6 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.061e-05/1.487, allocations: 307.8 kB / 1.189 GB, free: 228.3 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001651/1.487, allocations: 0.6886 MB / 1.189 GB, free: 227.6 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 3.626e-05/1.488, allocations: 182.1 kB / 1.19 GB, free: 227.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.038e-05/1.488, allocations: 187.8 kB / 1.19 GB, free: 227.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/1.488, allocations: 109 kB / 1.19 GB, free: 227 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/1.488, allocations: 176.5 kB / 1.19 GB, free: 226.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/1.488, allocations: 111.9 kB / 1.19 GB, free: 226.8 MB / 0.6982 GB Notification: Performance of sort global known variables: time 2.71e-05/1.488, allocations: 83.28 kB / 1.19 GB, free: 226.7 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001099/1.489, allocations: 135 kB / 1.19 GB, free: 226.5 MB / 0.6982 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.0007537/1.49, allocations: 0.7354 MB / 1.191 GB, free: 225.9 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 5.747e-05/1.49, allocations: 12 kB / 1.191 GB, free: 225.9 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/1.49, allocations: 0 / 1.191 GB, free: 225.9 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 2.304e-06/1.49, allocations: 3.938 kB / 1.191 GB, free: 225.9 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/1.49, allocations: 0.5185 MB / 1.192 GB, free: 225.3 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001802/1.49, allocations: 127 kB / 1.192 GB, free: 225.2 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/1.49, allocations: 0.6877 MB / 1.192 GB, free: 224.5 MB / 0.6982 GB Notification: Performance of SimCode: time 3.4e-07/1.49, allocations: 0 / 1.192 GB, free: 224.5 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)