Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") [: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.2+maint.om/package.mo): time 0.002775/0.002775, allocations: 181.4 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.296/1.296, allocations: 194.2 MB / 202.1 MB, free: 8.648 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002137/0.002137, allocations: 123.9 kB / 247.1 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1919/0.1919, allocations: 39.94 MB / 331.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.443e-06, allocations: 0 / 392.8 MB, free: 75.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 54.87 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.732/5.844, allocations: 2.655 GB / 3.092 GB, free: 103.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/5.844, allocations: 75.97 kB / 3.092 GB, free: 103.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.1/7.944, allocations: 0.5699 GB / 3.662 GB, free: 35.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002166/7.945, allocations: 44.25 kB / 3.662 GB, free: 35.53 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01234/7.957, allocations: 2.857 MB / 3.665 GB, free: 34.05 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/7.957, allocations: 11.12 kB / 3.665 GB, free: 34.05 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004787/7.962, allocations: 0.5643 MB / 3.665 GB, free: 33.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004659/7.967, allocations: 1.445 MB / 3.667 GB, free: 33.6 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/7.967, allocations: 60.64 kB / 3.667 GB, free: 33.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005523/7.967, allocations: 79.09 kB / 3.667 GB, free: 33.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003288/7.971, allocations: 1.606 MB / 3.668 GB, free: 33.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003673/7.974, allocations: 1.809 MB / 3.67 GB, free: 33.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.683e-05/7.974, allocations: 3.844 kB / 3.67 GB, free: 33.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002514/7.975, allocations: 11.09 kB / 3.67 GB, free: 33.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/7.975, allocations: 102.9 kB / 3.67 GB, free: 33.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1762/8.151, allocations: 74.22 MB / 3.743 GB, free: 16.62 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/8.152, allocations: 0.6766 MB / 3.743 GB, free: 16.01 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008558/8.153, allocations: 0.579 MB / 3.744 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2451/8.398, allocations: 17.43 MB / 3.761 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/8.399, allocations: 0.7233 MB / 3.762 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=88): time 3.286e-06/8.399, allocations: 0 / 3.762 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96): time 0.01171/8.411, allocations: 4.811 MB / 3.766 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.373e-05/8.411, allocations: 376.7 kB / 3.767 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/8.412, allocations: 0.8044 MB / 3.768 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.482e-05/8.412, allocations: 26.47 kB / 3.768 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/8.413, allocations: 0.5348 MB / 3.768 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/8.413, allocations: 328.3 kB / 3.768 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.356e-05/8.413, allocations: 1.312 kB / 3.768 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.87e-05/8.413, allocations: 356.8 kB / 3.769 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008165/8.414, allocations: 0.6681 MB / 3.769 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000935/8.415, allocations: 0.9837 MB / 3.77 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007222/8.422, allocations: 1.912 MB / 3.772 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/8.422, allocations: 3.844 kB / 3.772 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.01116/8.433, allocations: 3.399 MB / 3.776 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000756/8.434, allocations: 3.222 MB / 3.779 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.136e-05/8.434, allocations: 15.38 kB / 3.779 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003983/8.435, allocations: 135.4 kB / 3.779 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/8.436, allocations: 331.2 kB / 3.779 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/8.437, allocations: 1.277 MB / 3.78 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002389/8.44, allocations: 170.7 kB / 3.781 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003214/8.44, allocations: 68.33 kB / 3.781 GB, free: 100 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/8.44, allocations: 8.047 kB / 3.781 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009475/8.45, allocations: 2.724 MB / 3.783 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/8.45, allocations: 12.22 kB / 3.783 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003308/8.45, allocations: 129.8 kB / 3.783 GB, free: 99.99 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/8.451, allocations: 329.9 kB / 3.784 GB, free: 99.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007448/8.452, allocations: 1.284 MB / 3.785 GB, free: 98.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/8.454, allocations: 144.9 kB / 3.785 GB, free: 98.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/8.454, allocations: 67.11 kB / 3.785 GB, free: 98.94 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005749/8.454, allocations: 176 kB / 3.785 GB, free: 98.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/8.456, allocations: 433.5 kB / 3.786 GB, free: 98.74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005514/8.461, allocations: 3.713 MB / 3.789 GB, free: 98.44 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.38e-05/8.462, allocations: 35.48 kB / 3.789 GB, free: 98.44 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/8.462, allocations: 0 / 3.789 GB, free: 98.44 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003544/8.465, allocations: 2.92 MB / 3.792 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007636/8.473, allocations: 5.445 MB / 3.798 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/8.473, allocations: 3.219 kB / 3.798 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008512/8.474, allocations: 182.1 kB / 3.798 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005184/8.474, allocations: 166 kB / 3.798 GB, free: 97.41 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/8.474, allocations: 37.09 kB / 3.798 GB, free: 97.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007259/8.475, allocations: 1.366 MB / 3.799 GB, free: 96.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/8.475, allocations: 3.25 kB / 3.799 GB, free: 96.36 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005759/8.481, allocations: 4.059 MB / 3.803 GB, free: 95.94 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/8.482, allocations: 498.4 kB / 3.804 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005028/8.482, allocations: 13.84 kB / 3.804 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/8.484, allocations: 95.98 kB / 3.804 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/8.484, allocations: 76 kB / 3.804 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.936e-05/8.484, allocations: 36.88 kB / 3.804 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001413/8.485, allocations: 0.8121 MB / 3.805 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009379/8.495, allocations: 2.131 MB / 3.807 GB, free: 95.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 22 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01376/8.509, allocations: 2.567 MB / 3.809 GB, free: 95.35 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006415/8.515, allocations: 3.23 MB / 3.812 GB, free: 95.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/8.515, allocations: 0 / 3.812 GB, free: 95.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002095/8.517, allocations: 1.578 MB / 3.814 GB, free: 95.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002987/8.52, allocations: 482.2 kB / 3.814 GB, free: 95.15 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04235/8.563, allocations: 17.88 MB / 3.832 GB, free: 94.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001987/8.565, allocations: 1.726 MB / 3.834 GB, free: 93.69 MB / 0.5105 GB Notification: Performance of SimCode: time 8.01e-07/8.565, allocations: 0 / 3.834 GB, free: 93.69 MB / 0.5105 GB Notification: Performance of Templates: time 0.0902/8.655, allocations: 65.92 MB / 3.898 GB, free: 89.29 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)