Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_8_Buildings_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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.647/1.647, allocations: 289.8 MB / 297.1 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 181.2 kB / 366.3 MB, free: 2.02 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.1 MB / 0.6256 GB, free: 7.484 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 83.39 kB / 0.7395 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3023/0.3034, allocations: 122.4 MB / 0.8591 GB, free: 13.55 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6901/0.9935, allocations: 116.3 MB / 0.9726 GB, free: 76.39 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9507/1.944, allocations: 377.9 MB / 1.342 GB, free: 179.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/1.944, allocations: 67.16 kB / 1.342 GB, free: 179.8 MB / 0.8542 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.02436/1.969, allocations: 12.04 MB / 1.353 GB, free: 170.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 6.845e-05/1.969, allocations: 8 kB / 1.353 GB, free: 170.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.886e-05/1.969, allocations: 9.406 kB / 1.354 GB, free: 170.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/1.969, allocations: 167 kB / 1.354 GB, free: 170.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.657e-05/1.969, allocations: 25.7 kB / 1.354 GB, free: 170.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/1.969, allocations: 0 / 1.354 GB, free: 170.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001209/1.97, allocations: 15.92 kB / 1.354 GB, free: 170.3 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/1.97, allocations: 43.38 kB / 1.354 GB, free: 170.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/1.97, allocations: 0 / 1.354 GB, free: 170.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/1.97, allocations: 0 / 1.354 GB, free: 170.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.34e-05/1.97, allocations: 8 kB / 1.354 GB, free: 170.2 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006436/1.97, allocations: 313.2 kB / 1.354 GB, free: 169.9 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 5.252e-05/1.97, allocations: 14.58 kB / 1.354 GB, free: 169.9 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.681e-05/1.97, allocations: 8.922 kB / 1.354 GB, free: 169.9 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/1.971, allocations: 85.05 kB / 1.354 GB, free: 169.8 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/1.971, allocations: 34.56 kB / 1.354 GB, free: 169.7 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=1): time 1.693e-06/1.971, allocations: 0 / 1.354 GB, free: 169.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=1): time 0.0003078/1.971, allocations: 41.59 kB / 1.354 GB, free: 169.7 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/1.971, allocations: 51.41 kB / 1.354 GB, free: 169.6 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/1.971, allocations: 92.25 kB / 1.354 GB, free: 169.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/1.971, allocations: 25.7 kB / 1.354 GB, free: 169.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.608e-05/1.971, allocations: 91.98 kB / 1.354 GB, free: 169.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 6.793e-06/1.971, allocations: 3.984 kB / 1.354 GB, free: 169.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-06/1.971, allocations: 32 / 1.354 GB, free: 169.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001048/1.971, allocations: 318.8 kB / 1.355 GB, free: 169.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.347e-05/1.971, allocations: 4 kB / 1.355 GB, free: 169.1 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.63e-05/1.971, allocations: 17.53 kB / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.517e-05/1.972, allocations: 12.86 kB / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.972, allocations: 0 / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001259/1.972, allocations: 41.69 kB / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/1.972, allocations: 12.06 kB / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/1.972, allocations: 0 / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/1.972, allocations: 0 / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.642e-05/1.972, allocations: 5.25 kB / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/1.972, allocations: 4 kB / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/1.972, allocations: 7.844 kB / 1.355 GB, free: 169 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/1.972, allocations: 288 / 1.355 GB, free: 169 MB / 0.8542 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 8.853e-05/1.972, allocations: 119.7 kB / 1.355 GB, free: 168.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/1.972, allocations: 3.938 kB / 1.355 GB, free: 168.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/1.972, allocations: 121 kB / 1.355 GB, free: 168.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.804e-05/1.972, allocations: 180.2 kB / 1.355 GB, free: 168.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-05/1.972, allocations: 184.2 kB / 1.355 GB, free: 168.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.677e-05/1.972, allocations: 183.3 kB / 1.356 GB, free: 168.2 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/1.973, allocations: 381.8 kB / 1.356 GB, free: 167.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.415e-05/1.973, allocations: 107 kB / 1.356 GB, free: 167.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.851e-05/1.973, allocations: 105 kB / 1.356 GB, free: 167.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.156e-05/1.973, allocations: 184 kB / 1.356 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-05/1.973, allocations: 180.2 kB / 1.357 GB, free: 167.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.639e-05/1.973, allocations: 180.2 kB / 1.357 GB, free: 167 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.712e-05/1.973, allocations: 184.3 kB / 1.357 GB, free: 166.8 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001491/1.973, allocations: 306.7 kB / 1.357 GB, free: 166.5 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002548/1.973, allocations: 0.6764 MB / 1.358 GB, free: 165.8 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 8.752e-05/1.974, allocations: 178.1 kB / 1.358 GB, free: 165.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.577e-05/1.974, allocations: 188.2 kB / 1.358 GB, free: 165.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/1.974, allocations: 108.9 kB / 1.358 GB, free: 165.3 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.776e-05/1.974, allocations: 176.3 kB / 1.358 GB, free: 165.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/1.974, allocations: 105 kB / 1.359 GB, free: 165 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.426e-05/1.974, allocations: 90.42 kB / 1.359 GB, free: 164.9 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000934/1.975, allocations: 23.94 kB / 1.359 GB, free: 164.9 MB / 0.8542 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.0003142/1.975, allocations: 198.8 kB / 1.359 GB, free: 164.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001041/1.975, allocations: 11.94 kB / 1.359 GB, free: 164.7 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.975, allocations: 0 / 1.359 GB, free: 164.7 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.765e-06/1.975, allocations: 3.984 kB / 1.359 GB, free: 164.6 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/1.976, allocations: 0.5212 MB / 1.359 GB, free: 164.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002436/1.976, allocations: 135.1 kB / 1.36 GB, free: 164 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/1.976, allocations: 0.6919 MB / 1.36 GB, free: 163.3 MB / 0.8542 GB Notification: Performance of SimCode: time 6.31e-07/1.976, allocations: 0 / 1.36 GB, free: 163.3 MB / 0.8542 GB (rm -f Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_8_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)