Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") [: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.006869/0.00687, allocations: 173.4 kB / 7.449 MB, free: 2.492 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.837/1.837, allocations: 170.6 MB / 178.4 MB, free: 15.43 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.002285/0.002285, allocations: 103.9 kB / 217.7 MB, free: 8.207 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.262/0.262, allocations: 37.98 MB / 294.8 MB, free: 9.602 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.22e-05/1.223e-05, allocations: 1.656 kB / 349.5 MB, free: 37.1 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1657, allocations: 48.7 MB / 398.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.696/6.862, allocations: 2.547 GB / 2.936 GB, free: 114.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/6.862, allocations: 72.14 kB / 2.936 GB, free: 114.8 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 2.902/9.764, allocations: 0.7744 GB / 3.71 GB, free: 21.31 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003447/9.764, allocations: 75.08 kB / 3.71 GB, free: 21.24 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.01993/9.784, allocations: 3.741 MB / 3.714 GB, free: 17.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/9.784, allocations: 15.91 kB / 3.714 GB, free: 17.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007627/9.792, allocations: 0.8516 MB / 3.715 GB, free: 16.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006146/9.798, allocations: 2.098 MB / 3.717 GB, free: 14.48 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/9.798, allocations: 95.98 kB / 3.717 GB, free: 14.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003863/9.798, allocations: 119.9 kB / 3.717 GB, free: 14.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004116/9.803, allocations: 2.604 MB / 3.719 GB, free: 11.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00382/9.806, allocations: 2.847 MB / 3.722 GB, free: 8.637 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.166e-05/9.806, allocations: 7.938 kB / 3.722 GB, free: 8.629 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002209/9.807, allocations: 8 kB / 3.722 GB, free: 8.621 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/9.807, allocations: 174.8 kB / 3.722 GB, free: 8.453 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4615/10.27, allocations: 79.89 MB / 3.8 GB, free: 39.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/10.27, allocations: 1.117 MB / 3.801 GB, free: 39.11 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/10.27, allocations: 1.005 MB / 3.802 GB, free: 39.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03254/10.3, allocations: 17.46 MB / 3.819 GB, free: 27.53 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002182/10.31, allocations: 1.183 MB / 3.821 GB, free: 27.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=145): time 5.48e-06/10.31, allocations: 3.703 kB / 3.821 GB, free: 27.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=161): time 0.02311/10.33, allocations: 8.285 MB / 3.829 GB, free: 25.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/10.33, allocations: 386 kB / 3.829 GB, free: 25.51 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/10.33, allocations: 1.137 MB / 3.83 GB, free: 25.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003094/10.33, allocations: 28.28 kB / 3.83 GB, free: 25.31 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007313/10.33, allocations: 0.7774 MB / 3.831 GB, free: 24.96 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006157/10.33, allocations: 0.5417 MB / 3.832 GB, free: 24.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/10.33, allocations: 0 / 3.832 GB, free: 24.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/10.33, allocations: 394.3 kB / 3.832 GB, free: 24.38 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00159/10.33, allocations: 1.14 MB / 3.833 GB, free: 24.37 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/10.34, allocations: 1.623 MB / 3.835 GB, free: 23.82 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/10.35, allocations: 3.511 MB / 3.838 GB, free: 23.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-05/10.35, allocations: 2.969 kB / 3.838 GB, free: 23.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02082/10.37, allocations: 5.907 MB / 3.844 GB, free: 23.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001937/10.37, allocations: 5.219 MB / 3.849 GB, free: 34.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.657e-05/10.37, allocations: 22.28 kB / 3.849 GB, free: 34.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006908/10.37, allocations: 250.6 kB / 3.849 GB, free: 34.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002475/10.38, allocations: 0.529 MB / 3.85 GB, free: 34.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/10.38, allocations: 2.551 MB / 3.852 GB, free: 31.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003014/10.38, allocations: 259.4 kB / 3.852 GB, free: 31.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003894/10.38, allocations: 107.1 kB / 3.853 GB, free: 31.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/10.38, allocations: 3.094 kB / 3.853 GB, free: 31.91 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01807/10.4, allocations: 4.874 MB / 3.857 GB, free: 31.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.877e-05/10.4, allocations: 16.06 kB / 3.857 GB, free: 31.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006061/10.4, allocations: 255.2 kB / 3.858 GB, free: 31.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/10.4, allocations: 0.5224 MB / 3.858 GB, free: 31.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/10.41, allocations: 2.56 MB / 3.861 GB, free: 29.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/10.41, allocations: 229.9 kB / 3.861 GB, free: 29.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/10.41, allocations: 106.4 kB / 3.861 GB, free: 29.62 MB / 490.7 MB 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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.0007762/10.41, allocations: 199.3 kB / 3.861 GB, free: 29.48 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002184/10.41, allocations: 0.6488 MB / 3.862 GB, free: 29.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/10.42, allocations: 6.651 MB / 3.868 GB, free: 28.85 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.964e-05/10.42, allocations: 54.69 kB / 3.868 GB, free: 28.85 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/10.42, allocations: 9.234 kB / 3.868 GB, free: 28.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006737/10.43, allocations: 5.444 MB / 3.874 GB, free: 28.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01292/10.44, allocations: 9.154 MB / 3.882 GB, free: 27.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/10.44, allocations: 3.719 kB / 3.882 GB, free: 27.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/10.44, allocations: 325.5 kB / 3.883 GB, free: 27.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008971/10.44, allocations: 343.7 kB / 3.883 GB, free: 27.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/10.44, allocations: 47.69 kB / 3.883 GB, free: 27.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001799/10.45, allocations: 2.721 MB / 3.886 GB, free: 25.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/10.45, allocations: 3.844 kB / 3.886 GB, free: 25.23 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01097/10.46, allocations: 7.087 MB / 3.893 GB, free: 24.65 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002077/10.46, allocations: 0.6688 MB / 3.893 GB, free: 24.42 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006765/10.46, allocations: 27.17 kB / 3.893 GB, free: 24.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/10.46, allocations: 160.4 kB / 3.894 GB, free: 24.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/10.46, allocations: 130.1 kB / 3.894 GB, free: 24.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/10.46, allocations: 68.34 kB / 3.894 GB, free: 24.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.002048/10.46, allocations: 1.049 MB / 3.895 GB, free: 24.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01372/10.48, allocations: 2.653 MB / 3.897 GB, free: 24.18 MB / 490.7 MB 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.01501/10.49, allocations: 3.029 MB / 3.9 GB, free: 23.77 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008552/10.5, allocations: 5.535 MB / 3.906 GB, free: 23.57 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/10.5, allocations: 0 / 3.906 GB, free: 23.57 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003323/10.5, allocations: 2.843 MB / 3.909 GB, free: 23.52 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00421/10.51, allocations: 0.7252 MB / 3.909 GB, free: 23.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04667/10.56, allocations: 19.86 MB / 3.929 GB, free: 13.76 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003037/10.56, allocations: 2.333 MB / 3.931 GB, free: 12.02 MB / 490.7 MB Notification: Performance of SimCode: time 8.52e-07/10.56, allocations: 0 / 3.931 GB, free: 12.02 MB / 490.7 MB Notification: Performance of Templates: time 0.3999/10.96, allocations: 89.35 MB / 4.018 GB, free: 78.12 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)