Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") [: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.1+maint.om/package.mo): time 0.006521/0.006521, allocations: 175.6 kB / 7.451 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.628/1.628, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001791/0.001791, allocations: 123.8 kB / 217.7 MB, free: 8.156 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2073/0.2073, allocations: 37.97 MB / 294.8 MB, free: 9.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.788e-06/1.008e-05, allocations: 1.375 kB / 349.5 MB, free: 37.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 48.71 MB / 398.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.53/5.652, allocations: 2.547 GB / 2.936 GB, free: 114.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/5.652, allocations: 81.75 kB / 2.936 GB, free: 114.4 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd: time 3.028/8.68, allocations: 0.7756 GB / 3.711 GB, free: 6.953 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005326/8.681, allocations: 71.47 kB / 3.711 GB, free: 6.887 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.02231/8.703, allocations: 3.754 MB / 3.715 GB, free: 3.094 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.442e-05/8.703, allocations: 8.031 kB / 3.715 GB, free: 3.086 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008624/8.712, allocations: 0.8477 MB / 3.716 GB, free: 2.234 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009599/8.721, allocations: 2.096 MB / 3.718 GB, free: 120 kB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003399/8.722, allocations: 95.97 kB / 3.718 GB, free: 24 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001482/8.723, allocations: 116 kB / 3.718 GB, free: 15.9 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007276/8.731, allocations: 2.604 MB / 3.721 GB, free: 13.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006823/8.737, allocations: 2.848 MB / 3.723 GB, free: 10.28 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.112e-05/8.738, allocations: 4 kB / 3.723 GB, free: 10.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003406/8.738, allocations: 11.94 kB / 3.723 GB, free: 10.26 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002915/8.738, allocations: 171.6 kB / 3.724 GB, free: 10.09 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6043/9.342, allocations: 79.9 MB / 3.802 GB, free: 44.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002523/9.345, allocations: 1.11 MB / 3.803 GB, free: 44.38 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/9.347, allocations: 1.007 MB / 3.804 GB, free: 44.36 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04199/9.389, allocations: 17.46 MB / 3.821 GB, free: 32.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003578/9.393, allocations: 1.184 MB / 3.822 GB, free: 32.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=145): time 8.866e-06/9.393, allocations: 3.656 kB / 3.822 GB, free: 32.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=161): time 0.03348/9.426, allocations: 8.302 MB / 3.83 GB, free: 31.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003202/9.427, allocations: 388.5 kB / 3.83 GB, free: 30.75 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003723/9.43, allocations: 1.142 MB / 3.832 GB, free: 30.59 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007855/9.431, allocations: 29.3 kB / 3.832 GB, free: 30.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001528/9.433, allocations: 0.7817 MB / 3.832 GB, free: 30.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001462/9.434, allocations: 0.5252 MB / 3.833 GB, free: 29.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004776/9.435, allocations: 1.422 kB / 3.833 GB, free: 29.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004058/9.435, allocations: 395.8 kB / 3.833 GB, free: 29.62 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/9.438, allocations: 1.139 MB / 3.834 GB, free: 29.61 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00317/9.441, allocations: 1.631 MB / 3.836 GB, free: 29.06 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01758/9.459, allocations: 3.509 MB / 3.839 GB, free: 28.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.565e-05/9.459, allocations: 4.594 kB / 3.839 GB, free: 28.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02835/9.487, allocations: 6.527 MB / 3.846 GB, free: 28.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003826/9.491, allocations: 5.213 MB / 3.851 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/9.491, allocations: 17.25 kB / 3.851 GB, free: 39.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008941/9.5, allocations: 2.152 MB / 3.853 GB, free: 39.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/9.502, allocations: 318 kB / 3.853 GB, free: 39.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009618/9.512, allocations: 4.288 MB / 3.857 GB, free: 38.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003728/9.515, allocations: 260.4 kB / 3.858 GB, free: 38.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005905/9.516, allocations: 104.5 kB / 3.858 GB, free: 38.67 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/9.516, allocations: 5 kB / 3.858 GB, free: 38.67 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02137/9.537, allocations: 5.302 MB / 3.863 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/9.538, allocations: 17.12 kB / 3.863 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006607/9.544, allocations: 1.609 MB / 3.865 GB, free: 38.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001788/9.546, allocations: 362.8 kB / 3.865 GB, free: 38.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/9.551, allocations: 2.999 MB / 3.868 GB, free: 37.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003247/9.554, allocations: 228.8 kB / 3.868 GB, free: 37.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006368/9.555, allocations: 106.4 kB / 3.868 GB, free: 37.91 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.001233/9.556, allocations: 201.1 kB / 3.868 GB, free: 37.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002899/9.559, allocations: 0.6469 MB / 3.869 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/9.572, allocations: 6.643 MB / 3.875 GB, free: 37.13 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.992e-05/9.572, allocations: 56.53 kB / 3.875 GB, free: 37.13 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.673e-05/9.572, allocations: 3.969 kB / 3.875 GB, free: 37.13 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008726/9.581, allocations: 5.446 MB / 3.881 GB, free: 36.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02084/9.602, allocations: 9.159 MB / 3.89 GB, free: 35.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-05/9.602, allocations: 0 / 3.89 GB, free: 35.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/9.604, allocations: 328.8 kB / 3.89 GB, free: 35.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/9.605, allocations: 342.4 kB / 3.89 GB, free: 35.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003295/9.605, allocations: 50.06 kB / 3.89 GB, free: 35.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/9.608, allocations: 2.715 MB / 3.893 GB, free: 33.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.465e-06/9.608, allocations: 1.266 kB / 3.893 GB, free: 33.52 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01466/9.623, allocations: 7.093 MB / 3.9 GB, free: 32.94 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/9.625, allocations: 0.6724 MB / 3.901 GB, free: 32.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00118/9.627, allocations: 24.84 kB / 3.901 GB, free: 32.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00268/9.629, allocations: 156 kB / 3.901 GB, free: 32.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004379/9.63, allocations: 126 kB / 3.901 GB, free: 32.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002874/9.63, allocations: 68.84 kB / 3.901 GB, free: 32.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002905/9.633, allocations: 1.053 MB / 3.902 GB, free: 32.57 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01813/9.651, allocations: 2.65 MB / 3.905 GB, free: 32.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01976/9.671, allocations: 3.032 MB / 3.908 GB, free: 32.06 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01394/9.685, allocations: 5.53 MB / 3.913 GB, free: 28.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/9.685, allocations: 0 / 3.913 GB, free: 28.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004907/9.69, allocations: 2.846 MB / 3.916 GB, free: 27.53 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006288/9.696, allocations: 0.7312 MB / 3.917 GB, free: 27.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05822/9.755, allocations: 19.84 MB / 3.936 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004313/9.759, allocations: 2.298 MB / 3.938 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of SimCode: time 3.326e-06/9.759, allocations: 0 / 3.938 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of Templates: time 0.6058/10.37, allocations: 94.4 MB / 4.03 GB, free: 85.44 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)