Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",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.001022/0.001022, allocations: 199.2 kB / 8.537 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 225.5 MB / 234.4 MB, free: 3.352 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008195/0.0008198, allocations: 98.55 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1675/0.1675, allocations: 45.15 MB / 383.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1913/0.3589, allocations: 69.38 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.4409, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.276/4.717, allocations: 2.801 GB / 3.305 GB, free: 40.23 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/4.717, allocations: 94.02 kB / 3.305 GB, free: 40.18 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 1.515/6.232, allocations: 0.4964 GB / 3.801 GB, free: 63.92 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/6.232, allocations: 7.812 kB / 3.801 GB, free: 63.92 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002422/6.235, allocations: 348.7 kB / 3.802 GB, free: 63.88 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/6.236, allocations: 0.5966 MB / 3.802 GB, free: 63.64 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.686e-05/6.236, allocations: 94.58 kB / 3.802 GB, free: 63.57 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.284e-05/6.236, allocations: 35.97 kB / 3.802 GB, free: 63.57 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001003/6.237, allocations: 0.662 MB / 3.803 GB, free: 63.57 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/6.238, allocations: 0.905 MB / 3.804 GB, free: 63.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/6.238, allocations: 5.25 kB / 3.804 GB, free: 63.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.639e-05/6.238, allocations: 6.875 kB / 3.804 GB, free: 63.27 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.435e-05/6.238, allocations: 41.39 kB / 3.804 GB, free: 63.27 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1616/6.4, allocations: 94.08 MB / 3.896 GB, free: 34.52 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/6.4, allocations: 230.4 kB / 3.896 GB, free: 34.5 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/6.4, allocations: 168.3 kB / 3.896 GB, free: 34.49 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08225/6.483, allocations: 43.91 MB / 3.939 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.339e-05/6.483, allocations: 40.88 kB / 3.939 GB, free: 21.66 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/6.483, allocations: 0 / 3.939 GB, free: 21.66 MB / 0.5886 GB Notification: Performance of matching and sorting (n=37): time 0.00395/6.487, allocations: 1.35 MB / 3.94 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/6.487, allocations: 139.2 kB / 3.94 GB, free: 21.1 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006753/6.488, allocations: 497.5 kB / 3.941 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.034e-05/6.488, allocations: 30.55 kB / 3.941 GB, free: 20.94 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/6.488, allocations: 372.1 kB / 3.941 GB, free: 20.68 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 8.644e-05/6.488, allocations: 130 kB / 3.941 GB, free: 20.61 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/6.488, allocations: 1.281 kB / 3.941 GB, free: 20.61 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001648/6.488, allocations: 373.6 kB / 3.942 GB, free: 20.29 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003541/6.488, allocations: 220 kB / 3.942 GB, free: 20.29 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005033/6.489, allocations: 0.5508 MB / 3.943 GB, free: 19.85 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007148/6.49, allocations: 332.4 kB / 3.943 GB, free: 19.84 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/6.49, allocations: 2.688 kB / 3.943 GB, free: 19.84 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002227/6.492, allocations: 1.007 MB / 3.944 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/6.492, allocations: 5.531 kB / 3.944 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/6.492, allocations: 16.62 kB / 3.944 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002579/6.492, allocations: 57.62 kB / 3.944 GB, free: 19.74 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/6.494, allocations: 275.4 kB / 3.944 GB, free: 19.74 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001853/6.495, allocations: 1.976 MB / 3.946 GB, free: 17.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000808/6.496, allocations: 47.06 kB / 3.946 GB, free: 17.94 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.522e-05/6.496, allocations: 45.05 kB / 3.946 GB, free: 17.94 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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 0.0002224/6.497, allocations: 150.5 kB / 3.946 GB, free: 17.82 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007657/6.497, allocations: 265.2 kB / 3.947 GB, free: 17.79 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/6.5, allocations: 1.769 MB / 3.948 GB, free: 17.63 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.603e-05/6.5, allocations: 26.67 kB / 3.948 GB, free: 17.63 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/6.5, allocations: 0 / 3.948 GB, free: 17.63 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/6.5, allocations: 4.766 kB / 3.948 GB, free: 17.63 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002967/6.503, allocations: 2.663 MB / 3.951 GB, free: 17.24 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.716e-06/6.503, allocations: 0 / 3.951 GB, free: 17.24 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009227/6.504, allocations: 176.2 kB / 3.951 GB, free: 17.23 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002549/6.504, allocations: 83.17 kB / 3.951 GB, free: 17.22 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/6.504, allocations: 3.781 kB / 3.951 GB, free: 17.22 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001694/6.506, allocations: 2.015 MB / 3.953 GB, free: 31.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/6.506, allocations: 0 / 3.953 GB, free: 31.44 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002533/6.508, allocations: 2.065 MB / 3.955 GB, free: 31.21 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00327/6.512, allocations: 2.999 MB / 3.958 GB, free: 29.91 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003489/6.512, allocations: 229.6 kB / 3.958 GB, free: 29.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/6.512, allocations: 4 kB / 3.958 GB, free: 29.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005426/6.513, allocations: 48.91 kB / 3.958 GB, free: 29.69 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/6.513, allocations: 25.45 kB / 3.958 GB, free: 29.68 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.812e-05/6.513, allocations: 20.3 kB / 3.958 GB, free: 29.67 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0003925/6.513, allocations: 361.3 kB / 3.959 GB, free: 29.43 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.005112/6.518, allocations: 1.259 MB / 3.96 GB, free: 28.39 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.005356/6.524, allocations: 1.729 MB / 3.962 GB, free: 27.06 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001996/6.526, allocations: 1.12 MB / 3.963 GB, free: 26.41 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/6.526, allocations: 2.297 kB / 3.963 GB, free: 26.41 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00145/6.527, allocations: 0.9042 MB / 3.964 GB, free: 25.97 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/6.528, allocations: 253.6 kB / 3.964 GB, free: 25.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/6.531, allocations: 1.617 MB / 3.965 GB, free: 24.73 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007257/6.531, allocations: 1.153 MB / 3.967 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of SimCode: time 3.3e-07/6.531, allocations: 0 / 3.967 GB, free: 23.71 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1)