Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.002781/0.002781, allocations: 182 kB / 7.455 MB, free: 2.512 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.234/1.234, allocations: 194.2 MB / 202.1 MB, free: 8.723 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.001723/0.001723, allocations: 118.9 kB / 247.1 MB, free: 6.352 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.1592/0.1592, allocations: 39.94 MB / 331.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/5.901e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08086, allocations: 54.88 MB / 447.6 MB, free: 20.97 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.327/5.408, allocations: 2.657 GB / 3.094 GB, free: 80.93 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/5.408, allocations: 75.97 kB / 3.095 GB, free: 80.86 MB / 474.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.22/8.628, allocations: 0.7936 GB / 3.888 GB, free: 16.97 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003239/8.629, allocations: 70.55 kB / 3.888 GB, free: 16.91 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01737/8.646, allocations: 3.865 MB / 3.892 GB, free: 13 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/8.646, allocations: 12.03 kB / 3.892 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007765/8.654, allocations: 0.8789 MB / 3.893 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008499/8.662, allocations: 2.11 MB / 3.895 GB, free: 9.98 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002567/8.663, allocations: 99.89 kB / 3.895 GB, free: 9.883 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/8.664, allocations: 116 kB / 3.895 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005943/8.67, allocations: 2.616 MB / 3.898 GB, free: 7.145 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006868/8.677, allocations: 2.855 MB / 3.9 GB, free: 4.082 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.908e-05/8.677, allocations: 7.938 kB / 3.9 GB, free: 4.074 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006535/8.677, allocations: 7.906 kB / 3.9 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001907/8.678, allocations: 171.6 kB / 3.901 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5102/9.188, allocations: 79.96 MB / 3.979 GB, free: 45.68 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/9.19, allocations: 1.124 MB / 3.98 GB, free: 45.66 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/9.191, allocations: 1.016 MB / 3.981 GB, free: 45.65 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03451/9.225, allocations: 17.45 MB / 3.998 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00262/9.228, allocations: 1.199 MB / 3.999 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=147): time 4.198e-06/9.228, allocations: 0 / 3.999 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of matching and sorting (n=163): time 0.02342/9.251, allocations: 8.306 MB / 4.007 GB, free: 32.51 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001861/9.252, allocations: 388 kB / 4.007 GB, free: 32.07 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002085/9.254, allocations: 1.148 MB / 4.009 GB, free: 31.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001923/9.254, allocations: 28.92 kB / 4.009 GB, free: 31.87 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000758/9.255, allocations: 0.7772 MB / 4.009 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006316/9.255, allocations: 0.5433 MB / 4.01 GB, free: 31.24 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/9.256, allocations: 0 / 4.01 GB, free: 31.24 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001598/9.256, allocations: 387.2 kB / 4.01 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/9.257, allocations: 1.146 MB / 4.011 GB, free: 30.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001727/9.259, allocations: 1.626 MB / 4.013 GB, free: 30.38 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/9.273, allocations: 3.514 MB / 4.016 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.271e-05/9.273, allocations: 3.844 kB / 4.016 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02241/9.296, allocations: 5.918 MB / 4.022 GB, free: 30.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002782/9.298, allocations: 5.225 MB / 4.027 GB, free: 40.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.693e-05/9.298, allocations: 13.91 kB / 4.027 GB, free: 40.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007144/9.299, allocations: 257 kB / 4.028 GB, free: 40.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/9.302, allocations: 0.5229 MB / 4.028 GB, free: 40.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/9.305, allocations: 2.566 MB / 4.031 GB, free: 38.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003923/9.309, allocations: 251.1 kB / 4.031 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004428/9.309, allocations: 114.1 kB / 4.031 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/9.309, allocations: 2.25 kB / 4.031 GB, free: 38.47 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01692/9.326, allocations: 4.887 MB / 4.036 GB, free: 38.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.163e-05/9.326, allocations: 13.72 kB / 4.036 GB, free: 38.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006154/9.327, allocations: 254.1 kB / 4.036 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002158/9.329, allocations: 0.5174 MB / 4.036 GB, free: 38.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/9.331, allocations: 2.564 MB / 4.039 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/9.334, allocations: 225.4 kB / 4.039 GB, free: 36.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005008/9.335, allocations: 108.6 kB / 4.039 GB, free: 36.18 MB / 0.5261 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 (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.001298/9.336, allocations: 206.4 kB / 4.039 GB, free: 36.04 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002731/9.339, allocations: 0.6527 MB / 4.04 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/9.35, allocations: 6.657 MB / 4.047 GB, free: 35.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-05/9.35, allocations: 54.83 kB / 4.047 GB, free: 35.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/9.35, allocations: 3.75 kB / 4.047 GB, free: 35.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007184/9.357, allocations: 5.471 MB / 4.052 GB, free: 34.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01506/9.372, allocations: 9.18 MB / 4.061 GB, free: 33.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/9.372, allocations: 6.656 kB / 4.061 GB, free: 33.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001589/9.374, allocations: 331.5 kB / 4.061 GB, free: 33.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009869/9.375, allocations: 334.8 kB / 4.062 GB, free: 33.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002386/9.375, allocations: 48.03 kB / 4.062 GB, free: 33.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/9.377, allocations: 2.722 MB / 4.064 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/9.378, allocations: 3.438 kB / 4.064 GB, free: 31.78 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01212/9.39, allocations: 7.116 MB / 4.071 GB, free: 31.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/9.392, allocations: 0.6727 MB / 4.072 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009359/9.393, allocations: 19.3 kB / 4.072 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002282/9.395, allocations: 165.4 kB / 4.072 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003368/9.395, allocations: 126.7 kB / 4.072 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000226/9.396, allocations: 77.34 kB / 4.072 GB, free: 30.95 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002329/9.398, allocations: 1.048 MB / 4.073 GB, free: 30.84 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01595/9.414, allocations: 2.663 MB / 4.076 GB, free: 30.76 MB / 0.5261 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.01617/9.43, allocations: 3.064 MB / 4.079 GB, free: 30.33 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009955/9.44, allocations: 5.493 MB / 4.084 GB, free: 30.13 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/9.44, allocations: 4.344 kB / 4.084 GB, free: 30.13 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00417/9.444, allocations: 2.871 MB / 4.087 GB, free: 30.09 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004994/9.449, allocations: 0.7145 MB / 4.088 GB, free: 30.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05225/9.502, allocations: 20.32 MB / 4.108 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004371/9.506, allocations: 2.333 MB / 4.11 GB, free: 21.92 MB / 0.5261 GB Notification: Performance of SimCode: time 1.293e-06/9.506, allocations: 0 / 4.11 GB, free: 21.92 MB / 0.5261 GB Notification: Performance of Templates: time 0.4612/9.967, allocations: 89.85 MB / 4.198 GB, free: 88.91 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1)