Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") [: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.005238/0.005237, allocations: 177.3 kB / 7.451 MB, free: 2.512 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.781/1.781, allocations: 170.6 MB / 178.4 MB, free: 15.79 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.002078/0.002078, allocations: 103.9 kB / 217.7 MB, free: 8.574 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.2394/0.2394, allocations: 37.98 MB / 294.8 MB, free: 9.668 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.828e-06/9.848e-06, allocations: 4 kB / 349.5 MB, free: 37.19 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1545, allocations: 48.71 MB / 398.2 MB, free: 5.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.252/7.406, allocations: 2.566 GB / 2.955 GB, free: 110.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/7.407, allocations: 80.47 kB / 2.955 GB, free: 110.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.783/11.19, allocations: 0.9778 GB / 3.933 GB, free: 27.44 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002769/11.19, allocations: 74.17 kB / 3.933 GB, free: 27.43 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01945/11.21, allocations: 4.113 MB / 3.937 GB, free: 25.57 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/11.21, allocations: 6.844 kB / 3.937 GB, free: 25.57 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008537/11.22, allocations: 0.9469 MB / 3.938 GB, free: 25.42 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007168/11.23, allocations: 2.208 MB / 3.94 GB, free: 24.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/11.23, allocations: 98.52 kB / 3.94 GB, free: 24.95 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007182/11.23, allocations: 131.4 kB / 3.94 GB, free: 24.95 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005658/11.23, allocations: 2.863 MB / 3.943 GB, free: 24.94 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005101/11.24, allocations: 3.071 MB / 3.946 GB, free: 24.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.362e-05/11.24, allocations: 6.688 kB / 3.946 GB, free: 24.34 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002744/11.24, allocations: 6.188 kB / 3.946 GB, free: 24.34 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001904/11.24, allocations: 177.7 kB / 3.946 GB, free: 24.33 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1596/11.4, allocations: 50.9 MB / 3.996 GB, free: 12.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/11.4, allocations: 1.249 MB / 3.997 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001732/11.4, allocations: 1.183 MB / 3.998 GB, free: 12.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03748/11.44, allocations: 17.21 MB / 4.015 GB, free: 17.12 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003162/11.44, allocations: 1.373 MB / 4.017 GB, free: 16.95 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=182): time 6.392e-06/11.44, allocations: 0 / 4.017 GB, free: 16.95 MB / 0.4949 GB Notification: Performance of matching and sorting (n=202): time 0.04547/11.49, allocations: 10.62 MB / 4.027 GB, free: 15.04 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002436/11.49, allocations: 368.1 kB / 4.027 GB, free: 14.63 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/11.49, allocations: 1.157 MB / 4.028 GB, free: 14.45 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0009101/11.49, allocations: 32.36 kB / 4.028 GB, free: 14.41 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.00108/11.49, allocations: 0.8205 MB / 4.029 GB, free: 13.93 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001148/11.49, allocations: 0.6596 MB / 4.03 GB, free: 13.5 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/11.49, allocations: 0 / 4.03 GB, free: 13.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0002293/11.49, allocations: 399.1 kB / 4.03 GB, free: 13.19 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/11.5, allocations: 1.2 MB / 4.031 GB, free: 13.18 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002113/11.5, allocations: 1.733 MB / 4.033 GB, free: 12.62 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/11.51, allocations: 2.223 MB / 4.035 GB, free: 12.57 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.061e-05/11.51, allocations: 4.75 kB / 4.035 GB, free: 12.57 MB / 0.4949 GB Notification: Performance of matching and sorting (n=305) (initialization): time 0.02112/11.53, allocations: 4.806 MB / 4.04 GB, free: 12.32 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.002549/11.53, allocations: 5.516 MB / 4.045 GB, free: 6.652 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.868e-05/11.53, allocations: 15 kB / 4.045 GB, free: 6.652 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/11.53, allocations: 327.1 kB / 4.046 GB, free: 6.609 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003539/11.54, allocations: 0.608 MB / 4.046 GB, free: 6.602 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00359/11.54, allocations: 3.189 MB / 4.049 GB, free: 3.992 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004445/11.55, allocations: 319.8 kB / 4.05 GB, free: 3.945 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/11.55, allocations: 128.8 kB / 4.05 GB, free: 3.945 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/11.55, allocations: 4.844 kB / 4.05 GB, free: 3.945 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01653/11.56, allocations: 3.712 MB / 4.054 GB, free: 3.832 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-05/11.56, allocations: 16.92 kB / 4.054 GB, free: 3.832 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009287/11.56, allocations: 325.5 kB / 4.054 GB, free: 3.789 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003255/11.57, allocations: 0.6036 MB / 4.054 GB, free: 3.781 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003465/11.57, allocations: 3.187 MB / 4.058 GB, free: 1.176 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004231/11.58, allocations: 305.2 kB / 4.058 GB, free: 1.121 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009661/11.58, allocations: 128.4 kB / 4.058 GB, free: 1.121 MB / 0.4949 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001818/11.58, allocations: 242.2 kB / 4.058 GB, free: 0.9375 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003101/11.58, allocations: 0.7085 MB / 4.059 GB, free: 0.8359 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02705/11.61, allocations: 7.726 MB / 4.066 GB, free: 252 kB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000117/11.61, allocations: 59.48 kB / 4.066 GB, free: 252 kB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.129e-05/11.61, allocations: 5.656 kB / 4.066 GB, free: 248 kB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02183/11.63, allocations: 6.623 MB / 4.073 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03488/11.67, allocations: 12.44 MB / 4.085 GB, free: 7.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-05/11.67, allocations: 12.03 kB / 4.085 GB, free: 7.945 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00255/11.67, allocations: 413.6 kB / 4.085 GB, free: 7.633 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/11.67, allocations: 431.6 kB / 4.086 GB, free: 7.383 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006969/11.67, allocations: 57.11 kB / 4.086 GB, free: 7.348 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003093/11.67, allocations: 3.426 MB / 4.089 GB, free: 4.281 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/11.67, allocations: 9.781 kB / 4.089 GB, free: 4.273 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3316/12, allocations: 9.037 MB / 4.098 GB, free: 98.39 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002306/12.01, allocations: 0.7287 MB / 4.099 GB, free: 98.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006103/12.01, allocations: 26.22 kB / 4.099 GB, free: 98.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002033/12.01, allocations: 192.2 kB / 4.099 GB, free: 98.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000319/12.01, allocations: 175.9 kB / 4.099 GB, free: 98.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001983/12.01, allocations: 89.47 kB / 4.099 GB, free: 98.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001523/12.01, allocations: 1.07 MB / 4.1 GB, free: 98.15 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01321/12.03, allocations: 2.756 MB / 4.103 GB, free: 98.15 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 41 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 198 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01499/12.04, allocations: 3.282 MB / 4.106 GB, free: 97.97 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01047/12.05, allocations: 5.91 MB / 4.112 GB, free: 97.79 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.612e-05/12.05, allocations: 3.938 kB / 4.112 GB, free: 97.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00528/12.06, allocations: 3.579 MB / 4.116 GB, free: 97.72 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006684/12.06, allocations: 0.9419 MB / 4.116 GB, free: 97.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04873/12.11, allocations: 20.33 MB / 4.136 GB, free: 96.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002548/12.11, allocations: 2.459 MB / 4.139 GB, free: 95.67 MB / 0.5105 GB Notification: Performance of SimCode: time 1.072e-06/12.11, allocations: 0 / 4.139 GB, free: 95.67 MB / 0.5105 GB Notification: Performance of Templates: time 0.1498/12.26, allocations: 96.3 MB / 4.233 GB, free: 88.43 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)