Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") [: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.002969/0.002969, allocations: 184.1 kB / 7.457 MB, free: 2.504 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.238/1.238, allocations: 194.2 MB / 202.1 MB, free: 8.73 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.001658/0.001658, allocations: 124.3 kB / 247.1 MB, free: 6.254 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.1639/0.1639, allocations: 39.95 MB / 331.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.302e-06/6.372e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09479, allocations: 54.87 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.223/5.317, allocations: 2.657 GB / 3.095 GB, free: 88.95 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/5.318, allocations: 75.97 kB / 3.095 GB, free: 88.88 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.714/9.032, allocations: 0.8568 GB / 3.951 GB, free: 35.89 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002268/9.032, allocations: 60.58 kB / 3.951 GB, free: 35.89 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01904/9.051, allocations: 3.87 MB / 3.955 GB, free: 34.33 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/9.051, allocations: 11.47 kB / 3.955 GB, free: 34.33 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007095/9.059, allocations: 0.8761 MB / 3.956 GB, free: 34.2 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006397/9.065, allocations: 2.113 MB / 3.958 GB, free: 33.75 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/9.065, allocations: 89.19 kB / 3.958 GB, free: 33.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004113/9.066, allocations: 124.3 kB / 3.958 GB, free: 33.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004631/9.07, allocations: 2.607 MB / 3.961 GB, free: 33.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005193/9.075, allocations: 2.853 MB / 3.964 GB, free: 33.19 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.24e-05/9.076, allocations: 8.562 kB / 3.964 GB, free: 33.19 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002292/9.076, allocations: 5.719 kB / 3.964 GB, free: 33.19 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002066/9.076, allocations: 172.5 kB / 3.964 GB, free: 33.19 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.19/9.266, allocations: 79.98 MB / 4.042 GB, free: 23.56 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002683/9.269, allocations: 1.12 MB / 4.043 GB, free: 23.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/9.271, allocations: 1.014 MB / 4.044 GB, free: 23.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03688/9.307, allocations: 17.45 MB / 4.061 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002868/9.31, allocations: 1.199 MB / 4.062 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 8.977e-06/9.31, allocations: 0 / 4.062 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.02892/9.339, allocations: 8.323 MB / 4.07 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002495/9.34, allocations: 387.2 kB / 4.071 GB, free: 9.672 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002711/9.342, allocations: 1.145 MB / 4.072 GB, free: 9.484 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004033/9.343, allocations: 29.67 kB / 4.072 GB, free: 9.453 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007036/9.343, allocations: 0.7804 MB / 4.073 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005922/9.344, allocations: 0.5449 MB / 4.073 GB, free: 8.633 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/9.344, allocations: 3.938 kB / 4.073 GB, free: 8.633 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001991/9.344, allocations: 382.9 kB / 4.074 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/9.346, allocations: 1.149 MB / 4.075 GB, free: 8.32 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001804/9.348, allocations: 1.633 MB / 4.076 GB, free: 7.766 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01415/9.362, allocations: 3.511 MB / 4.08 GB, free: 7.672 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.029e-05/9.362, allocations: 3.688 kB / 4.08 GB, free: 7.672 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02403/9.386, allocations: 6.532 MB / 4.086 GB, free: 7.434 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002536/9.389, allocations: 5.222 MB / 4.091 GB, free: 18.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.426e-05/9.389, allocations: 14.59 kB / 4.091 GB, free: 18.04 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008046/9.397, allocations: 2.147 MB / 4.093 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/9.398, allocations: 319.5 kB / 4.094 GB, free: 17.97 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009534/9.408, allocations: 4.295 MB / 4.098 GB, free: 17.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004215/9.412, allocations: 252.2 kB / 4.098 GB, free: 17.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007797/9.413, allocations: 103.9 kB / 4.098 GB, free: 17.36 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/9.413, allocations: 3.562 kB / 4.098 GB, free: 17.36 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02288/9.436, allocations: 5.321 MB / 4.103 GB, free: 17.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.332e-05/9.436, allocations: 13.47 kB / 4.103 GB, free: 17.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00639/9.443, allocations: 1.616 MB / 4.105 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00194/9.444, allocations: 360.8 kB / 4.105 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005231/9.45, allocations: 3.008 MB / 4.108 GB, free: 16.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00326/9.453, allocations: 227.4 kB / 4.108 GB, free: 16.58 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006138/9.454, allocations: 100.2 kB / 4.109 GB, free: 16.58 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (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,valveOpening1.nextEventScaled,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.001202/9.455, allocations: 193.2 kB / 4.109 GB, free: 16.43 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002606/9.458, allocations: 0.6557 MB / 4.109 GB, free: 16.33 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/9.47, allocations: 6.665 MB / 4.116 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.764e-05/9.47, allocations: 57.06 kB / 4.116 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-05/9.47, allocations: 3.375 kB / 4.116 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01179/9.482, allocations: 5.468 MB / 4.121 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/9.498, allocations: 9.19 MB / 4.13 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/9.499, allocations: 0 / 4.13 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/9.5, allocations: 329.9 kB / 4.131 GB, free: 11.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009659/9.501, allocations: 337.6 kB / 4.131 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002599/9.501, allocations: 48.44 kB / 4.131 GB, free: 10.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002439/9.504, allocations: 2.719 MB / 4.134 GB, free: 8.367 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.086e-06/9.504, allocations: 7.844 kB / 4.134 GB, free: 8.359 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01321/9.517, allocations: 7.116 MB / 4.141 GB, free: 4.285 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/9.52, allocations: 0.671 MB / 4.141 GB, free: 3.848 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009061/9.52, allocations: 21.17 kB / 4.141 GB, free: 3.836 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002259/9.523, allocations: 162.4 kB / 4.141 GB, free: 3.719 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/9.523, allocations: 126 kB / 4.141 GB, free: 3.664 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000223/9.523, allocations: 70.64 kB / 4.142 GB, free: 3.617 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.002532/9.526, allocations: 1.05 MB / 4.143 GB, free: 2.996 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01478/9.541, allocations: 2.668 MB / 4.145 GB, free: 0.4922 MB / 0.5573 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: 36 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * 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 (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.3301/9.871, allocations: 3.051 MB / 4.148 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00886/9.88, allocations: 5.568 MB / 4.154 GB, free: 116.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/9.88, allocations: 0 / 4.154 GB, free: 116.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003352/9.883, allocations: 2.866 MB / 4.156 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004664/9.888, allocations: 0.7176 MB / 4.157 GB, free: 116.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05076/9.939, allocations: 20.32 MB / 4.177 GB, free: 115.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003616/9.942, allocations: 2.301 MB / 4.179 GB, free: 114.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.142e-06/9.942, allocations: 2.875 kB / 4.179 GB, free: 114.5 MB / 0.5573 GB Notification: Performance of Templates: time 0.1327/10.08, allocations: 94.84 MB / 4.272 GB, free: 109.3 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1)