Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.conf.json 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 174.8 kB / 8.476 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009455/0.0009455, allocations: 91.25 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2034/0.2044, allocations: 52.96 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07515/0.2796, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.996/4.275, allocations: 2.781 GB / 3.135 GB, free: 31.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001705/4.275, allocations: 65.38 kB / 3.135 GB, free: 31.47 MB / 426.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.3647/4.64, allocations: 105.3 MB / 3.238 GB, free: 78.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/4.64, allocations: 12 kB / 3.238 GB, free: 78.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004578/4.641, allocations: 58.06 kB / 3.238 GB, free: 78.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001952/4.641, allocations: 225.3 kB / 3.238 GB, free: 77.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/4.641, allocations: 4 kB / 3.238 GB, free: 77.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.327e-05/4.641, allocations: 14.66 kB / 3.238 GB, free: 77.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003316/4.641, allocations: 208 kB / 3.239 GB, free: 77.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002248/4.641, allocations: 207.9 kB / 3.239 GB, free: 77.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/4.641, allocations: 0 / 3.239 GB, free: 77.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/4.641, allocations: 0 / 3.239 GB, free: 77.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/4.641, allocations: 6.625 kB / 3.239 GB, free: 77.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/4.642, allocations: 1.184 MB / 3.24 GB, free: 76.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/4.643, allocations: 127.4 kB / 3.24 GB, free: 76.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/4.643, allocations: 88.75 kB / 3.24 GB, free: 76.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07711/4.72, allocations: 47.21 MB / 3.286 GB, free: 29.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/4.72, allocations: 34.75 kB / 3.286 GB, free: 29.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.764e-06/4.72, allocations: 4 kB / 3.286 GB, free: 29.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.003256/4.723, allocations: 1.082 MB / 3.287 GB, free: 28.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/4.723, allocations: 106.8 kB / 3.288 GB, free: 28.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.896e-05/4.723, allocations: 104.5 kB / 3.288 GB, free: 28.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/4.723, allocations: 26.08 kB / 3.288 GB, free: 28.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.715e-05/4.723, allocations: 108.1 kB / 3.288 GB, free: 28.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.734e-05/4.723, allocations: 121.2 kB / 3.288 GB, free: 28.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.068e-05/4.723, allocations: 0 / 3.288 GB, free: 28.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 3.617e-05/4.724, allocations: 326.4 kB / 3.288 GB, free: 27.83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/4.724, allocations: 111.4 kB / 3.288 GB, free: 27.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/4.724, allocations: 166.3 kB / 3.288 GB, free: 27.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/4.724, allocations: 130.6 kB / 3.289 GB, free: 27.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/4.724, allocations: 0 / 3.289 GB, free: 27.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00095/4.725, allocations: 429 kB / 3.289 GB, free: 27.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/4.725, allocations: 8 kB / 3.289 GB, free: 27.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/4.725, allocations: 3.984 kB / 3.289 GB, free: 27.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/4.725, allocations: 44.38 kB / 3.289 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/4.726, allocations: 86.7 kB / 3.289 GB, free: 26.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002628/4.726, allocations: 0.5596 MB / 3.29 GB, free: 26.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/4.726, allocations: 23.45 kB / 3.29 GB, free: 26.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.792e-05/4.726, allocations: 16 kB / 3.29 GB, free: 26.32 MB / 426.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.906e-05/4.727, allocations: 108.9 kB / 3.29 GB, free: 26.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/4.727, allocations: 93.59 kB / 3.29 GB, free: 26.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/4.728, allocations: 1.378 MB / 3.291 GB, free: 24.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/4.728, allocations: 17.77 kB / 3.291 GB, free: 24.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/4.728, allocations: 1.453 kB / 3.291 GB, free: 24.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/4.728, allocations: 5.5 kB / 3.291 GB, free: 24.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/4.73, allocations: 1.699 MB / 3.293 GB, free: 23.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/4.73, allocations: 4 kB / 3.293 GB, free: 23.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004327/4.731, allocations: 86.62 kB / 3.293 GB, free: 23.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001991/4.731, allocations: 63.58 kB / 3.293 GB, free: 23.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/4.731, allocations: 7.656 kB / 3.293 GB, free: 23.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002406/4.731, allocations: 0.622 MB / 3.294 GB, free: 22.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/4.731, allocations: 3.938 kB / 3.294 GB, free: 22.57 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001474/4.733, allocations: 1.789 MB / 3.295 GB, free: 20.83 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001866/4.735, allocations: 2.583 MB / 3.298 GB, free: 18.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.867e-05/4.735, allocations: 104.7 kB / 3.298 GB, free: 18.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/4.735, allocations: 5.453 kB / 3.298 GB, free: 18.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/4.735, allocations: 21.34 kB / 3.298 GB, free: 18.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/4.735, allocations: 31.48 kB / 3.298 GB, free: 18.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/4.735, allocations: 20.45 kB / 3.298 GB, free: 18.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.805e-05/4.735, allocations: 92.67 kB / 3.298 GB, free: 18.06 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003832/4.739, allocations: 1.048 MB / 3.299 GB, free: 17.04 MB / 426.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.005153/4.744, allocations: 1.366 MB / 3.301 GB, free: 15.83 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000805/4.745, allocations: 0.6642 MB / 3.301 GB, free: 15.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/4.745, allocations: 0 / 3.301 GB, free: 15.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005274/4.746, allocations: 0.6136 MB / 3.302 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005273/4.746, allocations: 67.25 kB / 3.302 GB, free: 14.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/4.748, allocations: 1.02 MB / 3.303 GB, free: 13.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003277/4.748, allocations: 0.843 MB / 3.304 GB, free: 12.81 MB / 426.7 MB Notification: Performance of SimCode: time 2.71e-07/4.748, allocations: 0 / 3.304 GB, free: 12.81 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1)