Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") [: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.005581/0.005581, allocations: 182.2 kB / 7.458 MB, free: 2.188 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.355/1.355, allocations: 194.2 MB / 202.1 MB, free: 8.676 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.001715/0.001715, allocations: 117.5 kB / 247.1 MB, free: 6.359 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.1808/0.1808, allocations: 39.95 MB / 331.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.943e-06/6.983e-06, allocations: 0 / 392.8 MB, free: 75.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1085, allocations: 54.86 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.151/6.259, allocations: 2.655 GB / 3.092 GB, free: 84.37 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/6.26, allocations: 79.95 kB / 3.092 GB, free: 84.29 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.84/9.1, allocations: 0.7909 GB / 3.883 GB, free: 25.47 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003121/9.1, allocations: 71.62 kB / 3.883 GB, free: 25.41 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01862/9.119, allocations: 4.075 MB / 3.887 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/9.119, allocations: 8.031 kB / 3.887 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0068/9.126, allocations: 0.8709 MB / 3.888 GB, free: 20.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006496/9.132, allocations: 2.109 MB / 3.89 GB, free: 18.27 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002116/9.132, allocations: 83.98 kB / 3.89 GB, free: 18.19 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008483/9.133, allocations: 116 kB / 3.89 GB, free: 18.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00478/9.138, allocations: 2.932 MB / 3.893 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004025/9.142, allocations: 2.934 MB / 3.896 GB, free: 12 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.112e-05/9.142, allocations: 11.98 kB / 3.896 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002481/9.142, allocations: 4 kB / 3.896 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/9.143, allocations: 179.6 kB / 3.896 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4618/9.604, allocations: 110 MB / 4.004 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/9.606, allocations: 1.17 MB / 4.005 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001154/9.607, allocations: 1.013 MB / 4.006 GB, free: 32.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03209/9.639, allocations: 17.53 MB / 4.023 GB, free: 36.75 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00185/9.641, allocations: 1.254 MB / 4.024 GB, free: 36.57 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 3.667e-06/9.641, allocations: 0 / 4.024 GB, free: 36.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.01893/9.66, allocations: 8.252 MB / 4.032 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002581/9.66, allocations: 0.5102 MB / 4.033 GB, free: 34.49 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/9.662, allocations: 1.204 MB / 4.034 GB, free: 34.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001491/9.662, allocations: 29.67 kB / 4.034 GB, free: 34.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000544/9.663, allocations: 0.7828 MB / 4.035 GB, free: 33.95 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/9.663, allocations: 0.5376 MB / 4.035 GB, free: 33.67 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/9.663, allocations: 2.969 kB / 4.035 GB, free: 33.67 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001589/9.663, allocations: 384.7 kB / 4.036 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/9.665, allocations: 1.16 MB / 4.037 GB, free: 33.36 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/9.666, allocations: 1.61 MB / 4.038 GB, free: 32.85 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01163/9.678, allocations: 3.113 MB / 4.041 GB, free: 32.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.376e-05/9.678, allocations: 3.562 kB / 4.041 GB, free: 32.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01769/9.696, allocations: 5.677 MB / 4.047 GB, free: 32.53 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001556/9.697, allocations: 4.453 MB / 4.051 GB, free: 27.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.884e-05/9.697, allocations: 18.45 kB / 4.051 GB, free: 27.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003735/9.701, allocations: 0.8625 MB / 4.052 GB, free: 27.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/9.703, allocations: 483.2 kB / 4.053 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/9.707, allocations: 3.533 MB / 4.056 GB, free: 41.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002449/9.709, allocations: 231.7 kB / 4.056 GB, free: 41.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/9.709, allocations: 105.2 kB / 4.056 GB, free: 41.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/9.709, allocations: 6.188 kB / 4.056 GB, free: 41.77 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01449/9.724, allocations: 4.563 MB / 4.061 GB, free: 41.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.365e-05/9.724, allocations: 18 kB / 4.061 GB, free: 41.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/9.725, allocations: 354.2 kB / 4.061 GB, free: 41.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001947/9.727, allocations: 498.2 kB / 4.062 GB, free: 41.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/9.731, allocations: 3.978 MB / 4.066 GB, free: 38.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/9.733, allocations: 214.8 kB / 4.066 GB, free: 38.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002089/9.733, allocations: 105.3 kB / 4.066 GB, free: 38.79 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006178/9.734, allocations: 238.6 kB / 4.066 GB, free: 38.62 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001724/9.736, allocations: 0.6253 MB / 4.067 GB, free: 38.52 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/9.746, allocations: 6.777 MB / 4.073 GB, free: 38.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-05/9.746, allocations: 55.53 kB / 4.073 GB, free: 38.01 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/9.746, allocations: 3.812 kB / 4.073 GB, free: 38.01 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006605/9.752, allocations: 5.707 MB / 4.079 GB, free: 37.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/9.764, allocations: 9.285 MB / 4.088 GB, free: 36.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/9.764, allocations: 4.625 kB / 4.088 GB, free: 36.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/9.766, allocations: 275.8 kB / 4.088 GB, free: 36.43 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003573/9.769, allocations: 2.062 MB / 4.09 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/9.769, allocations: 50.53 kB / 4.09 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00384/9.773, allocations: 4.271 MB / 4.094 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/9.773, allocations: 3.844 kB / 4.094 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009892/9.783, allocations: 7.208 MB / 4.102 GB, free: 33.59 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/9.785, allocations: 0.6871 MB / 4.102 GB, free: 33.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004345/9.785, allocations: 19.7 kB / 4.102 GB, free: 33.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/9.787, allocations: 159.8 kB / 4.102 GB, free: 33.34 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00026/9.787, allocations: 120 kB / 4.102 GB, free: 33.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/9.787, allocations: 73.61 kB / 4.103 GB, free: 33.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001644/9.789, allocations: 1.104 MB / 4.104 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009624/9.798, allocations: 2.721 MB / 4.106 GB, free: 33.14 MB / 0.5417 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01058/9.809, allocations: 3.066 MB / 4.109 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007737/9.817, allocations: 5.598 MB / 4.115 GB, free: 29.17 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/9.817, allocations: 6.344 kB / 4.115 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002803/9.82, allocations: 2.701 MB / 4.117 GB, free: 27.83 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003825/9.824, allocations: 0.7441 MB / 4.118 GB, free: 27.42 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04411/9.868, allocations: 20.06 MB / 4.138 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002935/9.871, allocations: 2.329 MB / 4.14 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of SimCode: time 9.62e-07/9.871, allocations: 0 / 4.14 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of Templates: time 0.3407/10.21, allocations: 92.95 MB / 4.231 GB, free: 99.63 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1)