Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.conf.json 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",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/Complex 4.0.0+maint.om/package.mo): time 0.0009188/0.0009185, allocations: 182.3 kB / 8.131 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.065/1.065, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008731/0.0008731, allocations: 98.42 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08816/0.08907, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.2625, allocations: 50.38 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.766/4.028, allocations: 2.786 GB / 3.164 GB, free: 9.852 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/4.028, allocations: 67.97 kB / 3.164 GB, free: 9.785 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.3911/4.42, allocations: 106.3 MB / 3.268 GB, free: 79.97 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/4.42, allocations: 8 kB / 3.268 GB, free: 79.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004395/4.42, allocations: 59.75 kB / 3.268 GB, free: 79.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/4.42, allocations: 222.6 kB / 3.268 GB, free: 79.65 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/4.42, allocations: 8 kB / 3.268 GB, free: 79.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/4.42, allocations: 16 kB / 3.268 GB, free: 79.62 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000335/4.421, allocations: 208.4 kB / 3.269 GB, free: 79.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/4.421, allocations: 201.6 kB / 3.269 GB, free: 79.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/4.421, allocations: 4 kB / 3.269 GB, free: 79.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/4.421, allocations: 4 kB / 3.269 GB, free: 79.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/4.421, allocations: 8 kB / 3.269 GB, free: 79.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/4.422, allocations: 1.179 MB / 3.27 GB, free: 77.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/4.422, allocations: 123.3 kB / 3.27 GB, free: 77.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/4.422, allocations: 83.02 kB / 3.27 GB, free: 77.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07776/4.5, allocations: 47.22 MB / 3.316 GB, free: 24.87 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/4.5, allocations: 34.75 kB / 3.316 GB, free: 24.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=23): time 1.994e-06/4.5, allocations: 0 / 3.316 GB, free: 24.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.003301/4.503, allocations: 1.087 MB / 3.317 GB, free: 23.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/4.503, allocations: 106.8 kB / 3.317 GB, free: 23.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.473e-05/4.504, allocations: 106.3 kB / 3.318 GB, free: 23.46 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/4.504, allocations: 29.7 kB / 3.318 GB, free: 23.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.764e-05/4.504, allocations: 104.4 kB / 3.318 GB, free: 23.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/4.504, allocations: 118.3 kB / 3.318 GB, free: 23.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/4.504, allocations: 3.938 kB / 3.318 GB, free: 23.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.235e-05/4.504, allocations: 322.8 kB / 3.318 GB, free: 22.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/4.504, allocations: 115.6 kB / 3.318 GB, free: 22.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/4.504, allocations: 167.1 kB / 3.318 GB, free: 22.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/4.504, allocations: 128.4 kB / 3.318 GB, free: 22.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/4.504, allocations: 0 / 3.318 GB, free: 22.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009254/4.505, allocations: 430 kB / 3.319 GB, free: 22.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/4.505, allocations: 8 kB / 3.319 GB, free: 22.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/4.505, allocations: 0 / 3.319 GB, free: 22.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001501/4.506, allocations: 36.78 kB / 3.319 GB, free: 21.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/4.506, allocations: 100.1 kB / 3.319 GB, free: 21.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002662/4.506, allocations: 0.5484 MB / 3.32 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/4.507, allocations: 24.06 kB / 3.32 GB, free: 21.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/4.507, allocations: 19.91 kB / 3.32 GB, free: 21.26 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 8.462e-05/4.507, allocations: 108.9 kB / 3.32 GB, free: 21.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003028/4.507, allocations: 95.7 kB / 3.32 GB, free: 21.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/4.508, allocations: 1.376 MB / 3.321 GB, free: 19.67 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/4.509, allocations: 20.86 kB / 3.321 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/4.509, allocations: 0 / 3.321 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/4.509, allocations: 3.984 kB / 3.321 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001748/4.51, allocations: 1.706 MB / 3.323 GB, free: 17.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/4.51, allocations: 4 kB / 3.323 GB, free: 17.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/4.511, allocations: 87.86 kB / 3.323 GB, free: 17.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001905/4.511, allocations: 68.92 kB / 3.323 GB, free: 17.73 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/4.511, allocations: 7.984 kB / 3.323 GB, free: 17.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002299/4.511, allocations: 0.6186 MB / 3.324 GB, free: 17.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/4.511, allocations: 4.375 kB / 3.324 GB, free: 17.08 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001414/4.513, allocations: 1.785 MB / 3.325 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001812/4.514, allocations: 2.586 MB / 3.328 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/4.515, allocations: 108.7 kB / 3.328 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/4.515, allocations: 11.94 kB / 3.328 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/4.515, allocations: 15.98 kB / 3.328 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/4.515, allocations: 31.86 kB / 3.328 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/4.515, allocations: 19.98 kB / 3.328 GB, free: 12.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.869e-05/4.515, allocations: 91.27 kB / 3.328 GB, free: 12.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004304/4.519, allocations: 1.062 MB / 3.329 GB, free: 11.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003485/4.523, allocations: 1.352 MB / 3.33 GB, free: 9.914 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000726/4.524, allocations: 0.6647 MB / 3.331 GB, free: 9.246 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/4.524, allocations: 4 kB / 3.331 GB, free: 9.242 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004948/4.524, allocations: 0.6136 MB / 3.332 GB, free: 8.629 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/4.525, allocations: 61.75 kB / 3.332 GB, free: 8.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/4.526, allocations: 1.012 MB / 3.333 GB, free: 7.512 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003313/4.527, allocations: 0.8474 MB / 3.334 GB, free: 6.641 MB / 442.7 MB Notification: Performance of SimCode: time 2.71e-07/4.527, allocations: 0 / 3.334 GB, free: 6.641 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1)