Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00111/0.00111, allocations: 197.8 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008735/0.0008736, allocations: 95.03 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09369/0.09459, allocations: 56.89 MB / 343.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.1814, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.101/4.282, allocations: 2.787 GB / 3.172 GB, free: 109.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001738/4.282, allocations: 65.59 kB / 3.173 GB, free: 109.1 MB / 458.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.265/4.547, allocations: 106.4 MB / 3.276 GB, free: 35.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/4.547, allocations: 12 kB / 3.276 GB, free: 35.57 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004905/4.548, allocations: 55.75 kB / 3.276 GB, free: 35.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/4.548, allocations: 218.9 kB / 3.277 GB, free: 35.27 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/4.548, allocations: 4 kB / 3.277 GB, free: 35.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.563e-05/4.548, allocations: 23.91 kB / 3.277 GB, free: 35.24 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003564/4.548, allocations: 204.5 kB / 3.277 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/4.549, allocations: 204.9 kB / 3.277 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/4.549, allocations: 0 / 3.277 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/4.549, allocations: 0 / 3.277 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/4.549, allocations: 8 kB / 3.277 GB, free: 34.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/4.55, allocations: 1.181 MB / 3.278 GB, free: 33.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/4.55, allocations: 120.5 kB / 3.278 GB, free: 33.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/4.55, allocations: 86.95 kB / 3.278 GB, free: 33.31 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2192/4.769, allocations: 53.41 MB / 3.331 GB, free: 110.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/4.769, allocations: 39.5 kB / 3.331 GB, free: 110.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 2.765e-06/4.769, allocations: 0 / 3.331 GB, free: 110.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.003585/4.773, allocations: 1.08 MB / 3.332 GB, free: 110.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/4.773, allocations: 110.5 kB / 3.332 GB, free: 110.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.079e-05/4.773, allocations: 101.3 kB / 3.332 GB, free: 110 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/4.773, allocations: 29.55 kB / 3.332 GB, free: 110 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.985e-05/4.773, allocations: 105.6 kB / 3.332 GB, free: 109.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.612e-05/4.773, allocations: 119.1 kB / 3.332 GB, free: 109.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.192e-05/4.773, allocations: 0 / 3.332 GB, free: 109.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.594e-05/4.773, allocations: 327.4 kB / 3.332 GB, free: 109.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/4.773, allocations: 100.3 kB / 3.333 GB, free: 109.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/4.774, allocations: 171.1 kB / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003312/4.774, allocations: 121.5 kB / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/4.774, allocations: 0 / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001022/4.775, allocations: 439 kB / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/4.775, allocations: 3.844 kB / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/4.775, allocations: 13.78 kB / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001796/4.775, allocations: 35.91 kB / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005048/4.776, allocations: 89.28 kB / 3.333 GB, free: 109.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003106/4.776, allocations: 0.5598 MB / 3.334 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/4.776, allocations: 20.81 kB / 3.334 GB, free: 108.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/4.776, allocations: 21.22 kB / 3.334 GB, free: 108.8 MB / 458.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 9.668e-05/4.777, allocations: 115.3 kB / 3.334 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003258/4.777, allocations: 98.64 kB / 3.334 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/4.779, allocations: 1.372 MB / 3.336 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/4.779, allocations: 15.86 kB / 3.336 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/4.779, allocations: 0 / 3.336 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/4.779, allocations: 6.031 kB / 3.336 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/4.781, allocations: 1.706 MB / 3.337 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/4.781, allocations: 7.656 kB / 3.337 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/4.781, allocations: 83.91 kB / 3.337 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002207/4.782, allocations: 66.34 kB / 3.337 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.105e-05/4.782, allocations: 10.47 kB / 3.337 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002795/4.782, allocations: 0.6189 MB / 3.338 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/4.782, allocations: 3 kB / 3.338 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001678/4.784, allocations: 1.787 MB / 3.34 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002239/4.786, allocations: 2.585 MB / 3.342 GB, free: 106.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.325e-05/4.786, allocations: 108.1 kB / 3.342 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.643e-05/4.786, allocations: 3.969 kB / 3.342 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/4.786, allocations: 25.61 kB / 3.342 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.271e-05/4.786, allocations: 31.09 kB / 3.342 GB, free: 106.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.036e-05/4.787, allocations: 19.22 kB / 3.342 GB, free: 106.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.815e-05/4.787, allocations: 92.72 kB / 3.343 GB, free: 106.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005479/4.792, allocations: 1.072 MB / 3.344 GB, free: 106.3 MB / 458.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.004897/4.797, allocations: 1.365 MB / 3.345 GB, free: 106.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0009077/4.798, allocations: 0.6638 MB / 3.346 GB, free: 106.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/4.798, allocations: 3.938 kB / 3.346 GB, free: 106.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005656/4.798, allocations: 0.6108 MB / 3.346 GB, free: 106.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/4.799, allocations: 62.28 kB / 3.346 GB, free: 106.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/4.801, allocations: 1.025 MB / 3.347 GB, free: 106 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/4.801, allocations: 0.8498 MB / 3.348 GB, free: 105.3 MB / 458.7 MB Notification: Performance of SimCode: time 2.71e-07/4.801, allocations: 0 / 3.348 GB, free: 105.3 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1)