Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.251/1.251, allocations: 249.4 MB / 256.7 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 185.1 kB / 316 MB, free: 3.5 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.183/1.183, allocations: 205.1 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008319/0.000832, allocations: 93.14 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3623/0.3631, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.536, allocations: 106.3 MB / 0.8846 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7401/1.276, allocations: 370.3 MB / 1.246 GB, free: 376 kB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/1.276, allocations: 69.28 kB / 1.246 GB, free: 344 kB / 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.02197/1.298, allocations: 11.71 MB / 1.258 GB, free: 7.285 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/1.299, allocations: 8 kB / 1.258 GB, free: 7.277 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/1.299, allocations: 4 kB / 1.258 GB, free: 7.273 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/1.299, allocations: 167 kB / 1.258 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.394e-05/1.299, allocations: 25.7 kB / 1.258 GB, free: 7.039 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/1.299, allocations: 3.906 kB / 1.258 GB, free: 7.035 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.064e-05/1.299, allocations: 19.73 kB / 1.258 GB, free: 7.02 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.575e-05/1.299, allocations: 33.69 kB / 1.258 GB, free: 6.98 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/1.299, allocations: 0 / 1.258 GB, free: 6.98 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/1.299, allocations: 4 kB / 1.258 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/1.299, allocations: 4 kB / 1.258 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/1.299, allocations: 309.2 kB / 1.258 GB, free: 6.621 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.381e-05/1.299, allocations: 30.06 kB / 1.258 GB, free: 6.586 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.468e-05/1.299, allocations: 8.797 kB / 1.258 GB, free: 6.574 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.275e-05/1.299, allocations: 89.14 kB / 1.258 GB, free: 6.469 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/1.3, allocations: 34.56 kB / 1.259 GB, free: 6.426 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/1.3, allocations: 4 kB / 1.259 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0001552/1.3, allocations: 29.7 kB / 1.259 GB, free: 6.387 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/1.3, allocations: 55.39 kB / 1.259 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.171e-05/1.3, allocations: 92.62 kB / 1.259 GB, free: 6.227 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/1.3, allocations: 25.7 kB / 1.259 GB, free: 6.195 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.072e-05/1.3, allocations: 88.05 kB / 1.259 GB, free: 6.105 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.41e-06/1.3, allocations: 3.906 kB / 1.259 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/1.3, allocations: 0 / 1.259 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.391e-05/1.3, allocations: 326.2 kB / 1.259 GB, free: 5.777 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.137e-05/1.3, allocations: 4 kB / 1.259 GB, free: 5.773 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.772e-05/1.3, allocations: 13.72 kB / 1.259 GB, free: 5.754 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.47e-05/1.3, allocations: 11.55 kB / 1.259 GB, free: 5.746 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.3, allocations: 0 / 1.259 GB, free: 5.746 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001019/1.3, allocations: 45.69 kB / 1.259 GB, free: 5.695 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/1.3, allocations: 7.906 kB / 1.259 GB, free: 5.688 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/1.3, allocations: 4.062 kB / 1.259 GB, free: 5.684 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/1.3, allocations: 0 / 1.259 GB, free: 5.684 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.234e-05/1.3, allocations: 11.94 kB / 1.259 GB, free: 5.672 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/1.3, allocations: 0.7031 kB / 1.259 GB, free: 5.672 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.919e-05/1.3, allocations: 3.938 kB / 1.259 GB, free: 5.668 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/1.3, allocations: 0 / 1.259 GB, free: 5.668 MB / 0.8698 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 5.792e-05/1.3, allocations: 106.6 kB / 1.259 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/1.3, allocations: 3.906 kB / 1.259 GB, free: 5.555 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/1.301, allocations: 128.4 kB / 1.259 GB, free: 5.426 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-05/1.301, allocations: 180.2 kB / 1.26 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.636e-05/1.301, allocations: 180.3 kB / 1.26 GB, free: 5.059 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.248e-05/1.301, allocations: 180.2 kB / 1.26 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/1.301, allocations: 385.3 kB / 1.26 GB, free: 4.457 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.482e-05/1.301, allocations: 113 kB / 1.26 GB, free: 4.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.556e-05/1.301, allocations: 101 kB / 1.261 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.706e-05/1.301, allocations: 184.2 kB / 1.261 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.323e-05/1.301, allocations: 176.3 kB / 1.261 GB, free: 3.867 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-05/1.301, allocations: 180.3 kB / 1.261 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.724e-05/1.301, allocations: 187.8 kB / 1.261 GB, free: 3.496 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001217/1.301, allocations: 307.7 kB / 1.262 GB, free: 3.172 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002127/1.302, allocations: 0.6726 MB / 1.262 GB, free: 2.48 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.923e-05/1.302, allocations: 190 kB / 1.262 GB, free: 2.27 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.014e-05/1.302, allocations: 180.2 kB / 1.263 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/1.302, allocations: 109 kB / 1.263 GB, free: 1.973 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/1.302, allocations: 176.3 kB / 1.263 GB, free: 1.793 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/1.302, allocations: 108.9 kB / 1.263 GB, free: 1.68 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.183e-05/1.302, allocations: 90.53 kB / 1.263 GB, free: 1.594 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0007803/1.303, allocations: 23.42 kB / 1.263 GB, free: 1.574 MB / 0.8698 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.0001976/1.303, allocations: 198.8 kB / 1.263 GB, free: 1.367 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 5.009e-05/1.303, allocations: 12 kB / 1.263 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/1.303, allocations: 0 / 1.263 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 8.52e-07/1.303, allocations: 0 / 1.263 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/1.303, allocations: 0.5332 MB / 1.264 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001708/1.304, allocations: 131.4 kB / 1.264 GB, free: 0.668 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2881/1.592, allocations: 0.6911 MB / 1.265 GB, free: 431.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.873e-06/1.592, allocations: 0 / 1.265 GB, free: 431.9 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)