Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 185.2 kB / 8.52 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.169/1.169, allocations: 221.4 MB / 230.3 MB, free: 7.625 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000966/0.0009661, allocations: 79.48 kB / 281.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1945/0.1945, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1793/0.3739, allocations: 68.04 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0952/0.4691, allocations: 61.91 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.034/4.503, allocations: 2.798 GB / 3.292 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/4.503, allocations: 94.78 kB / 3.292 GB, free: 159.2 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.298/5.801, allocations: 0.4938 GB / 3.786 GB, free: 61.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/5.801, allocations: 12.25 kB / 3.786 GB, free: 61.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/5.802, allocations: 239.6 kB / 3.786 GB, free: 61.14 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/5.803, allocations: 0.5851 MB / 3.787 GB, free: 60.76 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.269e-05/5.804, allocations: 90.66 kB / 3.787 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-05/5.804, allocations: 37.06 kB / 3.787 GB, free: 60.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009834/5.805, allocations: 0.6405 MB / 3.788 GB, free: 60.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/5.806, allocations: 0.8853 MB / 3.789 GB, free: 59.95 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/5.806, allocations: 10.84 kB / 3.789 GB, free: 59.95 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.777e-05/5.806, allocations: 3.938 kB / 3.789 GB, free: 59.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.417e-05/5.806, allocations: 44.88 kB / 3.789 GB, free: 59.95 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1249/5.931, allocations: 67.63 MB / 3.855 GB, free: 5.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000337/5.931, allocations: 218 kB / 3.855 GB, free: 5.367 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/5.931, allocations: 156.8 kB / 3.855 GB, free: 5.211 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.259/6.191, allocations: 47.22 MB / 3.901 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/6.191, allocations: 40.91 kB / 3.901 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/6.191, allocations: 0 / 3.901 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=36): time 0.003576/6.194, allocations: 1.365 MB / 3.903 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/6.194, allocations: 135.4 kB / 3.903 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005369/6.195, allocations: 0.5036 MB / 3.903 GB, free: 113.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/6.195, allocations: 29.52 kB / 3.903 GB, free: 113.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/6.195, allocations: 375.2 kB / 3.904 GB, free: 113.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/6.195, allocations: 131.3 kB / 3.904 GB, free: 113 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/6.195, allocations: 0 / 3.904 GB, free: 113 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.152e-05/6.195, allocations: 374.1 kB / 3.904 GB, free: 112.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002912/6.195, allocations: 224.3 kB / 3.904 GB, free: 112.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/6.196, allocations: 0.578 MB / 3.905 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00065/6.197, allocations: 347.1 kB / 3.905 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/6.197, allocations: 3.969 kB / 3.905 GB, free: 112.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001947/6.199, allocations: 1.033 MB / 3.906 GB, free: 112.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/6.199, allocations: 6.781 kB / 3.906 GB, free: 112.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/6.199, allocations: 15.56 kB / 3.906 GB, free: 112.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/6.199, allocations: 74.23 kB / 3.906 GB, free: 112.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/6.2, allocations: 276.2 kB / 3.906 GB, free: 112.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/6.202, allocations: 2.036 MB / 3.908 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006254/6.202, allocations: 47.52 kB / 3.909 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.779e-05/6.202, allocations: 44.12 kB / 3.909 GB, free: 110.4 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.0001376/6.202, allocations: 143.8 kB / 3.909 GB, free: 110.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005077/6.203, allocations: 204.7 kB / 3.909 GB, free: 110.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/6.205, allocations: 1.674 MB / 3.911 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/6.205, allocations: 23.78 kB / 3.911 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/6.205, allocations: 0 / 3.911 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/6.205, allocations: 2.578 kB / 3.911 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002325/6.207, allocations: 2.537 MB / 3.913 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/6.207, allocations: 0 / 3.913 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008969/6.208, allocations: 161.7 kB / 3.913 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002917/6.208, allocations: 120.2 kB / 3.913 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/6.208, allocations: 14.12 kB / 3.913 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/6.21, allocations: 2.111 MB / 3.915 GB, free: 108 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/6.21, allocations: 0 / 3.915 GB, free: 108 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002055/6.212, allocations: 1.972 MB / 3.917 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002644/6.214, allocations: 2.915 MB / 3.92 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/6.215, allocations: 214.1 kB / 3.92 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/6.215, allocations: 2.938 kB / 3.92 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/6.215, allocations: 28.66 kB / 3.92 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/6.215, allocations: 24.38 kB / 3.92 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/6.215, allocations: 14.41 kB / 3.92 GB, free: 107 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004025/6.216, allocations: 366 kB / 3.921 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005098/6.221, allocations: 1.241 MB / 3.922 GB, free: 106.9 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.006378/6.227, allocations: 1.742 MB / 3.924 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002047/6.229, allocations: 1.11 MB / 3.925 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/6.229, allocations: 0 / 3.925 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001335/6.231, allocations: 0.86 MB / 3.926 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/6.232, allocations: 252.1 kB / 3.926 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/6.234, allocations: 1.551 MB / 3.927 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005495/6.235, allocations: 1.133 MB / 3.928 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of SimCode: time 4.2e-07/6.235, allocations: 0 / 3.928 GB, free: 105.8 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1)