Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.004161/0.004161, allocations: 182.2 kB / 7.458 MB, free: 2.5 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.237/1.237, allocations: 194.2 MB / 202.1 MB, free: 8.727 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.001716/0.001716, allocations: 123.9 kB / 247.1 MB, free: 6.336 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.1552/0.1552, allocations: 39.94 MB / 331.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.02e-06/5.05e-06, allocations: 0 / 392.8 MB, free: 75.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08111/0.08113, allocations: 54.87 MB / 447.6 MB, free: 20.94 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.29/5.371, allocations: 2.657 GB / 3.095 GB, free: 76.63 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/5.372, allocations: 75.97 kB / 3.095 GB, free: 76.56 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.049/8.42, allocations: 0.7948 GB / 3.889 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004074/8.421, allocations: 66.67 kB / 3.889 GB, free: 13.71 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.01991/8.441, allocations: 3.864 MB / 3.893 GB, free: 9.797 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/8.441, allocations: 12.03 kB / 3.893 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00755/8.448, allocations: 0.875 MB / 3.894 GB, free: 8.906 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006406/8.455, allocations: 2.113 MB / 3.896 GB, free: 6.777 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/8.455, allocations: 95.97 kB / 3.896 GB, free: 6.684 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004966/8.456, allocations: 123.9 kB / 3.896 GB, free: 6.562 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004311/8.46, allocations: 2.608 MB / 3.899 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003966/8.464, allocations: 2.848 MB / 3.902 GB, free: 0.8945 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.483e-05/8.464, allocations: 7.938 kB / 3.902 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/8.464, allocations: 8 kB / 3.902 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001598/8.464, allocations: 178.9 kB / 3.902 GB, free: 0.707 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5065/8.971, allocations: 79.96 MB / 3.98 GB, free: 42.97 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002235/8.973, allocations: 1.122 MB / 3.981 GB, free: 42.95 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/8.975, allocations: 1.014 MB / 3.982 GB, free: 42.95 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0347/9.01, allocations: 17.45 MB / 3.999 GB, free: 47.39 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003417/9.013, allocations: 1.199 MB / 4 GB, free: 47.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=147): time 8.676e-06/9.013, allocations: 0 / 4 GB, free: 47.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=163): time 0.02855/9.042, allocations: 8.313 MB / 4.008 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002536/9.042, allocations: 394.3 kB / 4.009 GB, free: 45.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/9.044, allocations: 1.144 MB / 4.01 GB, free: 45.19 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004725/9.045, allocations: 25.7 kB / 4.01 GB, free: 45.16 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008701/9.046, allocations: 0.7855 MB / 4.011 GB, free: 44.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007689/9.046, allocations: 0.5353 MB / 4.011 GB, free: 44.53 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/9.046, allocations: 0 / 4.011 GB, free: 44.53 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002174/9.047, allocations: 394 kB / 4.012 GB, free: 44.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/9.048, allocations: 1.144 MB / 4.013 GB, free: 44.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/9.05, allocations: 1.628 MB / 4.014 GB, free: 43.67 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/9.064, allocations: 3.516 MB / 4.018 GB, free: 43.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.464e-05/9.064, allocations: 6.156 kB / 4.018 GB, free: 43.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02325/9.087, allocations: 6.534 MB / 4.024 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002446/9.09, allocations: 5.223 MB / 4.029 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.27e-05/9.09, allocations: 11.62 kB / 4.029 GB, free: 37.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008039/9.098, allocations: 2.151 MB / 4.031 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/9.099, allocations: 320.7 kB / 4.032 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00877/9.108, allocations: 4.281 MB / 4.036 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/9.112, allocations: 255.1 kB / 4.036 GB, free: 37.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006143/9.112, allocations: 112.8 kB / 4.036 GB, free: 37.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/9.112, allocations: 4.938 kB / 4.036 GB, free: 37.27 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02083/9.133, allocations: 5.313 MB / 4.041 GB, free: 37.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-05/9.133, allocations: 16.59 kB / 4.041 GB, free: 37.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006099/9.139, allocations: 1.613 MB / 4.043 GB, free: 37.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/9.141, allocations: 366.6 kB / 4.043 GB, free: 37.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004869/9.146, allocations: 3 MB / 4.046 GB, free: 36.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002948/9.149, allocations: 227.6 kB / 4.046 GB, free: 36.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005501/9.15, allocations: 103.1 kB / 4.047 GB, free: 36.5 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 (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.001134/9.151, allocations: 197.5 kB / 4.047 GB, free: 36.36 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002591/9.153, allocations: 0.6534 MB / 4.047 GB, free: 36.26 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/9.166, allocations: 6.662 MB / 4.054 GB, free: 35.72 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.876e-05/9.166, allocations: 57.5 kB / 4.054 GB, free: 35.72 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.081e-05/9.166, allocations: 7.5 kB / 4.054 GB, free: 35.72 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00761/9.174, allocations: 5.463 MB / 4.059 GB, free: 35.07 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0176/9.192, allocations: 9.181 MB / 4.068 GB, free: 34.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.862e-05/9.192, allocations: 3.75 kB / 4.068 GB, free: 34.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001793/9.194, allocations: 329.8 kB / 4.069 GB, free: 34.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/9.195, allocations: 340.3 kB / 4.069 GB, free: 34.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000296/9.195, allocations: 47.98 kB / 4.069 GB, free: 34.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002733/9.198, allocations: 2.718 MB / 4.072 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/9.198, allocations: 5.312 kB / 4.072 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01429/9.212, allocations: 7.12 MB / 4.079 GB, free: 31.52 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/9.214, allocations: 0.6732 MB / 4.079 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009548/9.215, allocations: 22.28 kB / 4.079 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002383/9.218, allocations: 164.8 kB / 4.079 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003508/9.218, allocations: 128.1 kB / 4.079 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002126/9.218, allocations: 69.97 kB / 4.08 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002543/9.221, allocations: 1.046 MB / 4.081 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0171/9.238, allocations: 2.664 MB / 4.083 GB, free: 31.1 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.01644/9.255, allocations: 3.056 MB / 4.086 GB, free: 30.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01202/9.267, allocations: 5.571 MB / 4.092 GB, free: 30.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/9.267, allocations: 0 / 4.092 GB, free: 30.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00469/9.271, allocations: 2.866 MB / 4.094 GB, free: 30.37 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006484/9.278, allocations: 0.7209 MB / 4.095 GB, free: 30.34 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05616/9.334, allocations: 20.31 MB / 4.115 GB, free: 19.54 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00395/9.338, allocations: 2.303 MB / 4.117 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of SimCode: time 1.453e-06/9.338, allocations: 0 / 4.117 GB, free: 17.81 MB / 0.5261 GB Notification: Performance of Templates: time 0.4674/9.806, allocations: 95.38 MB / 4.21 GB, free: 83.88 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)