Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001769/0.001769, allocations: 192.6 kB / 7.803 MB, free: 2.449 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009498/0.0009497, allocations: 92.72 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2007/0.2007, allocations: 43.5 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2256/0.4264, allocations: 64.97 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3924/0.8188, allocations: 58.84 MB / 476.7 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.25/7.069, allocations: 2.795 GB / 3.26 GB, free: 72.62 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/7.069, allocations: 91.94 kB / 3.26 GB, free: 72.54 MB / 0.4948 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.978/9.047, allocations: 0.4913 GB / 3.752 GB, free: 58.18 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/9.047, allocations: 12.62 kB / 3.752 GB, free: 58.18 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002799/9.05, allocations: 341.8 kB / 3.752 GB, free: 58.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/9.052, allocations: 0.5975 MB / 3.753 GB, free: 57.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/9.052, allocations: 96.19 kB / 3.753 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/9.052, allocations: 42.28 kB / 3.753 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001409/9.054, allocations: 0.709 MB / 3.753 GB, free: 57.83 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/9.055, allocations: 0.9031 MB / 3.754 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/9.055, allocations: 7.531 kB / 3.754 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.861e-05/9.055, allocations: 3.875 kB / 3.754 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.574e-05/9.055, allocations: 41.7 kB / 3.754 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/9.158, allocations: 52.87 MB / 3.806 GB, free: 24.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004635/9.158, allocations: 257.8 kB / 3.806 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/9.158, allocations: 194.5 kB / 3.806 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0154/9.174, allocations: 8.072 MB / 3.814 GB, free: 35.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/9.174, allocations: 46.56 kB / 3.814 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=37): time 2.705e-06/9.174, allocations: 0 / 3.814 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.004754/9.179, allocations: 1.444 MB / 3.816 GB, free: 35.22 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/9.179, allocations: 136 kB / 3.816 GB, free: 35.06 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008256/9.18, allocations: 498.5 kB / 3.816 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.251e-05/9.18, allocations: 25.7 kB / 3.816 GB, free: 34.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/9.18, allocations: 358.4 kB / 3.817 GB, free: 34.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/9.18, allocations: 140.6 kB / 3.817 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.904e-05/9.18, allocations: 0 / 3.817 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001877/9.18, allocations: 375.8 kB / 3.817 GB, free: 34.26 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/9.181, allocations: 243.9 kB / 3.818 GB, free: 34.26 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006046/9.181, allocations: 0.5553 MB / 3.818 GB, free: 33.85 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007665/9.182, allocations: 345.5 kB / 3.818 GB, free: 33.83 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/9.182, allocations: 2.844 kB / 3.818 GB, free: 33.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002666/9.185, allocations: 1.105 MB / 3.819 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/9.185, allocations: 6.406 kB / 3.819 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/9.185, allocations: 14.88 kB / 3.819 GB, free: 33.74 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/9.185, allocations: 57.78 kB / 3.82 GB, free: 33.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/9.187, allocations: 300.7 kB / 3.82 GB, free: 33.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/9.189, allocations: 1.983 MB / 3.822 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/9.19, allocations: 88.97 kB / 3.822 GB, free: 31.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/9.19, allocations: 44.25 kB / 3.822 GB, free: 31.93 MB / 0.5261 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.0002709/9.19, allocations: 148.8 kB / 3.822 GB, free: 31.81 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008208/9.191, allocations: 268.3 kB / 3.822 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002257/9.194, allocations: 1.802 MB / 3.824 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-05/9.194, allocations: 26.83 kB / 3.824 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/9.194, allocations: 5.562 kB / 3.824 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/9.194, allocations: 0 / 3.824 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/9.197, allocations: 2.77 MB / 3.827 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/9.197, allocations: 2.344 kB / 3.827 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/9.198, allocations: 192.9 kB / 3.827 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002713/9.198, allocations: 81.72 kB / 3.827 GB, free: 31.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/9.199, allocations: 10.73 kB / 3.827 GB, free: 31.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/9.2, allocations: 2.017 MB / 3.829 GB, free: 29.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/9.2, allocations: 0 / 3.829 GB, free: 29.41 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003071/9.203, allocations: 2.174 MB / 3.831 GB, free: 29.12 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004109/9.208, allocations: 3.139 MB / 3.834 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005505/9.208, allocations: 231.7 kB / 3.834 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/9.208, allocations: 2.125 kB / 3.834 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006978/9.209, allocations: 54.16 kB / 3.834 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/9.209, allocations: 42.59 kB / 3.835 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.98e-05/9.209, allocations: 20.06 kB / 3.835 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005574/9.21, allocations: 353.2 kB / 3.835 GB, free: 28.22 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006638/9.216, allocations: 1.243 MB / 3.836 GB, free: 28.07 MB / 0.5261 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.01017/9.227, allocations: 1.723 MB / 3.838 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002528/9.229, allocations: 1.162 MB / 3.839 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/9.229, allocations: 0 / 3.839 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001724/9.231, allocations: 0.9386 MB / 3.84 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/9.233, allocations: 277.6 kB / 3.84 GB, free: 27.65 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/9.236, allocations: 1.65 MB / 3.842 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008874/9.237, allocations: 1.158 MB / 3.843 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.102e-06/9.237, allocations: 4 kB / 3.843 GB, free: 26.53 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1)