Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_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.00123/0.00123, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000898/0.000898, allocations: 95.12 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1833/0.1833, allocations: 45.14 MB / 383.3 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2058/0.3891, allocations: 69.38 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.4768, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.184/4.66, allocations: 2.801 GB / 3.305 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/4.661, allocations: 90.88 kB / 3.305 GB, free: 121.8 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.297/5.958, allocations: 0.4964 GB / 3.801 GB, free: 18.24 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/5.958, allocations: 8 kB / 3.801 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/5.961, allocations: 349.4 kB / 3.802 GB, free: 17.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/5.962, allocations: 0.6 MB / 3.802 GB, free: 17.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.691e-05/5.962, allocations: 96.7 kB / 3.802 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-05/5.962, allocations: 44 kB / 3.802 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00106/5.963, allocations: 0.7093 MB / 3.803 GB, free: 16.41 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/5.964, allocations: 0.897 MB / 3.804 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/5.964, allocations: 7.938 kB / 3.804 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.428e-05/5.964, allocations: 8.797 kB / 3.804 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.116e-05/5.964, allocations: 43.55 kB / 3.804 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2728/6.237, allocations: 59.07 MB / 3.862 GB, free: 99.86 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/6.238, allocations: 250.4 kB / 3.862 GB, free: 99.84 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/6.238, allocations: 183.6 kB / 3.862 GB, free: 99.84 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0148/6.253, allocations: 8.79 MB / 3.871 GB, free: 94.11 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/6.253, allocations: 43.23 kB / 3.871 GB, free: 94.07 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=37): time 2.184e-06/6.253, allocations: 0 / 3.871 GB, free: 94.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=41): time 0.003802/6.256, allocations: 1.439 MB / 3.872 GB, free: 93.72 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/6.257, allocations: 137.8 kB / 3.872 GB, free: 93.57 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005425/6.257, allocations: 490.2 kB / 3.873 GB, free: 93.45 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/6.257, allocations: 25.7 kB / 3.873 GB, free: 93.42 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/6.257, allocations: 370.2 kB / 3.873 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/6.257, allocations: 143.3 kB / 3.873 GB, free: 93.14 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/6.257, allocations: 0 / 3.873 GB, free: 93.14 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.811e-05/6.258, allocations: 372.7 kB / 3.873 GB, free: 92.83 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/6.258, allocations: 240 kB / 3.874 GB, free: 92.83 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004586/6.258, allocations: 0.561 MB / 3.874 GB, free: 92.43 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006544/6.259, allocations: 334.6 kB / 3.875 GB, free: 92.43 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/6.259, allocations: 7.297 kB / 3.875 GB, free: 92.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002302/6.261, allocations: 1.108 MB / 3.876 GB, free: 92.35 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/6.261, allocations: 3.969 kB / 3.876 GB, free: 92.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/6.261, allocations: 10.25 kB / 3.876 GB, free: 92.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002122/6.262, allocations: 60.17 kB / 3.876 GB, free: 92.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/6.263, allocations: 307.9 kB / 3.876 GB, free: 92.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/6.264, allocations: 1.983 MB / 3.878 GB, free: 90.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008324/6.265, allocations: 94.88 kB / 3.878 GB, free: 90.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.73e-05/6.265, allocations: 44.06 kB / 3.878 GB, free: 90.56 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,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.0001622/6.265, allocations: 135.1 kB / 3.878 GB, free: 90.46 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007016/6.266, allocations: 265 kB / 3.878 GB, free: 90.42 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/6.268, allocations: 1.806 MB / 3.88 GB, free: 90.29 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/6.268, allocations: 28.92 kB / 3.88 GB, free: 90.29 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/6.268, allocations: 3.875 kB / 3.88 GB, free: 90.29 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/6.268, allocations: 2.906 kB / 3.88 GB, free: 90.29 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002752/6.271, allocations: 2.772 MB / 3.883 GB, free: 89.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/6.271, allocations: 3.469 kB / 3.883 GB, free: 89.88 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/6.272, allocations: 191.3 kB / 3.883 GB, free: 89.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/6.272, allocations: 80.98 kB / 3.883 GB, free: 89.86 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.68e-05/6.272, allocations: 10.61 kB / 3.883 GB, free: 89.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/6.273, allocations: 2.026 MB / 3.885 GB, free: 88.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/6.273, allocations: 0 / 3.885 GB, free: 88.08 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002485/6.276, allocations: 2.173 MB / 3.887 GB, free: 87.8 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00315/6.279, allocations: 3.148 MB / 3.89 GB, free: 87.14 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003117/6.279, allocations: 230.2 kB / 3.891 GB, free: 87 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/6.28, allocations: 1.203 kB / 3.891 GB, free: 87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005301/6.28, allocations: 50.31 kB / 3.891 GB, free: 87 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/6.28, allocations: 45.75 kB / 3.891 GB, free: 87 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.387e-05/6.28, allocations: 19.48 kB / 3.891 GB, free: 87 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0003831/6.281, allocations: 358.9 kB / 3.891 GB, free: 86.91 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005004/6.286, allocations: 1.257 MB / 3.892 GB, free: 86.91 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.005397/6.291, allocations: 1.722 MB / 3.894 GB, free: 86.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002001/6.293, allocations: 1.158 MB / 3.895 GB, free: 86.79 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/6.293, allocations: 0 / 3.895 GB, free: 86.79 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001483/6.295, allocations: 0.9382 MB / 3.896 GB, free: 86.78 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/6.296, allocations: 258 kB / 3.896 GB, free: 86.78 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/6.298, allocations: 1.652 MB / 3.898 GB, free: 86.46 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006418/6.299, allocations: 1.163 MB / 3.899 GB, free: 85.75 MB / 0.5417 GB Notification: Performance of SimCode: time 1.633e-06/6.299, allocations: 3.188 kB / 3.899 GB, free: 85.75 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1)