Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",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.001687/0.001687, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000881/0.0008811, allocations: 93.91 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1689/0.1689, allocations: 45.14 MB / 383.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1934/0.3623, allocations: 69.38 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08322/0.4455, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.179/4.624, allocations: 2.799 GB / 3.303 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/4.624, allocations: 101 kB / 3.303 GB, free: 123.4 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.38/6.005, allocations: 0.494 GB / 3.797 GB, free: 19.29 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/6.005, allocations: 15.98 kB / 3.797 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001869/6.006, allocations: 238.8 kB / 3.797 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/6.008, allocations: 0.5855 MB / 3.798 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/6.008, allocations: 93.36 kB / 3.798 GB, free: 18.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/6.008, allocations: 36.56 kB / 3.798 GB, free: 18.28 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001126/6.009, allocations: 0.639 MB / 3.799 GB, free: 17.64 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/6.01, allocations: 0.8858 MB / 3.8 GB, free: 16.65 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/6.011, allocations: 4 kB / 3.8 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.54e-05/6.011, allocations: 4 kB / 3.8 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.901e-05/6.011, allocations: 56.75 kB / 3.8 GB, free: 16.59 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2945/6.305, allocations: 75.23 MB / 3.873 GB, free: 88.93 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003504/6.306, allocations: 225.6 kB / 3.873 GB, free: 88.91 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002094/6.306, allocations: 154.2 kB / 3.873 GB, free: 88.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08955/6.395, allocations: 53.42 MB / 3.926 GB, free: 53.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.092e-05/6.395, allocations: 42.66 kB / 3.926 GB, free: 53.63 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=31): time 4.078e-06/6.395, allocations: 0 / 3.926 GB, free: 53.63 MB / 0.5417 GB Notification: Performance of matching and sorting (n=36): time 0.004011/6.399, allocations: 1.372 MB / 3.927 GB, free: 53.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/6.4, allocations: 132 kB / 3.927 GB, free: 53.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/6.4, allocations: 0.5 MB / 3.928 GB, free: 53 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.1e-05/6.4, allocations: 25.7 kB / 3.928 GB, free: 52.96 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/6.4, allocations: 374.1 kB / 3.928 GB, free: 52.75 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.359e-05/6.4, allocations: 132.7 kB / 3.928 GB, free: 52.69 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/6.4, allocations: 0 / 3.928 GB, free: 52.69 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.797e-05/6.401, allocations: 369.2 kB / 3.928 GB, free: 52.38 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/6.401, allocations: 236.5 kB / 3.929 GB, free: 52.37 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/6.401, allocations: 0.5798 MB / 3.929 GB, free: 51.92 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006831/6.402, allocations: 347.6 kB / 3.93 GB, free: 51.91 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/6.402, allocations: 3.938 kB / 3.93 GB, free: 51.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002276/6.404, allocations: 1.026 MB / 3.931 GB, free: 51.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/6.404, allocations: 4.125 kB / 3.931 GB, free: 51.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/6.404, allocations: 18.41 kB / 3.931 GB, free: 51.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003282/6.405, allocations: 77.98 kB / 3.931 GB, free: 51.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/6.406, allocations: 272.3 kB / 3.931 GB, free: 51.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/6.408, allocations: 2.034 MB / 3.933 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007996/6.408, allocations: 40.36 kB / 3.933 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-05/6.409, allocations: 46.22 kB / 3.933 GB, free: 50.02 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (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,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001914/6.409, allocations: 153.6 kB / 3.933 GB, free: 49.91 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005126/6.409, allocations: 206.6 kB / 3.933 GB, free: 49.88 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/6.411, allocations: 1.672 MB / 3.935 GB, free: 49.75 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/6.411, allocations: 29.66 kB / 3.935 GB, free: 49.74 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/6.411, allocations: 0 / 3.935 GB, free: 49.74 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/6.411, allocations: 0 / 3.935 GB, free: 49.74 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00246/6.414, allocations: 2.545 MB / 3.938 GB, free: 49.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/6.414, allocations: 0 / 3.938 GB, free: 49.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008909/6.414, allocations: 163.4 kB / 3.938 GB, free: 49.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002953/6.415, allocations: 116 kB / 3.938 GB, free: 49.34 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/6.415, allocations: 9.188 kB / 3.938 GB, free: 49.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/6.416, allocations: 2.124 MB / 3.94 GB, free: 47.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/6.416, allocations: 0 / 3.94 GB, free: 47.55 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002054/6.418, allocations: 1.973 MB / 3.942 GB, free: 47.34 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002824/6.421, allocations: 2.913 MB / 3.945 GB, free: 46.74 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003161/6.421, allocations: 215.2 kB / 3.945 GB, free: 46.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/6.422, allocations: 0 / 3.945 GB, free: 46.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/6.422, allocations: 24.58 kB / 3.945 GB, free: 46.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/6.422, allocations: 25.95 kB / 3.945 GB, free: 46.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.734e-05/6.422, allocations: 16.67 kB / 3.945 GB, free: 46.59 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004115/6.423, allocations: 366.6 kB / 3.945 GB, free: 46.51 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005341/6.428, allocations: 1.257 MB / 3.946 GB, free: 46.51 MB / 0.5417 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.T) * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005355/6.433, allocations: 1.734 MB / 3.948 GB, free: 46.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002001/6.435, allocations: 1.114 MB / 3.949 GB, free: 46.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/6.435, allocations: 3.203 kB / 3.949 GB, free: 46.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001367/6.437, allocations: 0.8572 MB / 3.95 GB, free: 46.28 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/6.438, allocations: 248.5 kB / 3.95 GB, free: 46.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/6.44, allocations: 1.555 MB / 3.952 GB, free: 45.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000566/6.441, allocations: 1.135 MB / 3.953 GB, free: 45.18 MB / 0.5417 GB Notification: Performance of SimCode: time 6.82e-07/6.441, allocations: 0 / 3.953 GB, free: 45.18 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1)