Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.11/2.11, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 181.2 kB / 490.8 MB, free: 1.93 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 221.4 MB / 0.7863 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009251/0.0009251, allocations: 98.7 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5858/0.5867, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.8413, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9669/1.808, allocations: 389.1 MB / 1.592 GB, free: 9.887 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/1.809, allocations: 76.12 kB / 1.592 GB, free: 9.848 MB / 1.01 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.0294/1.838, allocations: 13.28 MB / 1.605 GB, free: 15.44 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/1.838, allocations: 16 kB / 1.605 GB, free: 15.43 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.407e-05/1.838, allocations: 3.938 kB / 1.605 GB, free: 15.42 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/1.838, allocations: 163 kB / 1.605 GB, free: 15.22 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.449e-05/1.838, allocations: 29.7 kB / 1.605 GB, free: 15.19 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.726e-06/1.838, allocations: 0 / 1.605 GB, free: 15.19 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.098e-05/1.838, allocations: 11.98 kB / 1.605 GB, free: 15.18 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.823e-05/1.839, allocations: 41.44 kB / 1.605 GB, free: 15.13 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/1.839, allocations: 0 / 1.605 GB, free: 15.13 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/1.839, allocations: 0 / 1.605 GB, free: 15.13 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/1.839, allocations: 4 kB / 1.605 GB, free: 15.13 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004498/1.839, allocations: 318 kB / 1.605 GB, free: 14.77 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 3.717e-05/1.839, allocations: 18.52 kB / 1.605 GB, free: 14.74 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.964e-05/1.839, allocations: 4.859 kB / 1.605 GB, free: 14.73 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001549/1.839, allocations: 85.17 kB / 1.605 GB, free: 14.63 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/1.839, allocations: 34.56 kB / 1.605 GB, free: 14.59 MB / 1.026 GB Notification: Performance of pre-optimization done (n=1): time 1.373e-06/1.839, allocations: 0 / 1.605 GB, free: 14.59 MB / 1.026 GB Notification: Performance of matching and sorting (n=1): time 0.0001954/1.84, allocations: 37.59 kB / 1.605 GB, free: 14.55 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/1.84, allocations: 58.09 kB / 1.605 GB, free: 14.48 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.239e-05/1.84, allocations: 92.62 kB / 1.606 GB, free: 14.39 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/1.84, allocations: 25.7 kB / 1.606 GB, free: 14.36 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/1.84, allocations: 91.97 kB / 1.606 GB, free: 14.26 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 4.529e-06/1.84, allocations: 0 / 1.606 GB, free: 14.26 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/1.84, allocations: 4 kB / 1.606 GB, free: 14.26 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.000108/1.84, allocations: 318.8 kB / 1.606 GB, free: 13.94 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/1.84, allocations: 3.5 kB / 1.606 GB, free: 13.94 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.335e-05/1.84, allocations: 17.89 kB / 1.606 GB, free: 13.91 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.028e-05/1.84, allocations: 11.98 kB / 1.606 GB, free: 13.9 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.84, allocations: 0 / 1.606 GB, free: 13.9 MB / 1.026 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000114/1.84, allocations: 49.34 kB / 1.606 GB, free: 13.85 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/1.84, allocations: 8.062 kB / 1.606 GB, free: 13.84 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/1.84, allocations: 7.938 kB / 1.606 GB, free: 13.84 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/1.84, allocations: 0 / 1.606 GB, free: 13.84 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.581e-05/1.84, allocations: 4 kB / 1.606 GB, free: 13.83 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/1.84, allocations: 0.5469 kB / 1.606 GB, free: 13.83 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.398e-05/1.84, allocations: 4 kB / 1.606 GB, free: 13.83 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/1.84, allocations: 3.984 kB / 1.606 GB, free: 13.82 MB / 1.026 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 7.307e-05/1.84, allocations: 104.9 kB / 1.606 GB, free: 13.71 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/1.84, allocations: 8 kB / 1.606 GB, free: 13.71 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/1.841, allocations: 117 kB / 1.606 GB, free: 13.58 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-05/1.841, allocations: 187.8 kB / 1.606 GB, free: 13.39 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-05/1.841, allocations: 180.2 kB / 1.607 GB, free: 13.21 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.008e-05/1.841, allocations: 180.2 kB / 1.607 GB, free: 13.03 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/1.841, allocations: 389.7 kB / 1.607 GB, free: 12.6 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-05/1.841, allocations: 104.9 kB / 1.607 GB, free: 12.5 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.537e-05/1.841, allocations: 101 kB / 1.607 GB, free: 12.39 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.946e-05/1.841, allocations: 184.2 kB / 1.608 GB, free: 12.2 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.216e-05/1.841, allocations: 176.3 kB / 1.608 GB, free: 12.02 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-05/1.841, allocations: 180.2 kB / 1.608 GB, free: 11.84 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.689e-05/1.841, allocations: 184.2 kB / 1.608 GB, free: 11.65 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001674/1.842, allocations: 303.2 kB / 1.608 GB, free: 11.34 MB / 1.026 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003453/1.842, allocations: 0.684 MB / 1.609 GB, free: 10.63 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 7.189e-05/1.842, allocations: 181.8 kB / 1.609 GB, free: 10.43 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.262e-05/1.842, allocations: 184.2 kB / 1.609 GB, free: 10.24 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/1.842, allocations: 105 kB / 1.609 GB, free: 10.13 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/1.842, allocations: 176.3 kB / 1.61 GB, free: 9.953 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.506e-05/1.842, allocations: 108.9 kB / 1.61 GB, free: 9.84 MB / 1.026 GB Notification: Performance of sort global known variables: time 4.574e-05/1.842, allocations: 90.39 kB / 1.61 GB, free: 9.754 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0008631/1.843, allocations: 19.84 kB / 1.61 GB, free: 9.734 MB / 1.026 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.0002408/1.844, allocations: 215.8 kB / 1.61 GB, free: 9.52 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 5.692e-05/1.844, allocations: 7.938 kB / 1.61 GB, free: 9.512 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.844, allocations: 0 / 1.61 GB, free: 9.512 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 5.43e-06/1.844, allocations: 7.984 kB / 1.61 GB, free: 9.504 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/1.844, allocations: 0.5243 MB / 1.611 GB, free: 8.98 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002431/1.844, allocations: 131.4 kB / 1.611 GB, free: 8.828 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/1.845, allocations: 0.688 MB / 1.611 GB, free: 8.113 MB / 1.026 GB Notification: Performance of SimCode: time 7.11e-07/1.845, allocations: 0 / 1.611 GB, free: 8.113 MB / 1.026 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat