Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") [: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.003188/0.003188, allocations: 185.5 kB / 7.459 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.326/1.326, allocations: 194.2 MB / 202.1 MB, free: 8.68 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.001809/0.001809, allocations: 115.3 kB / 247.1 MB, free: 6.375 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.1683/0.1683, allocations: 39.94 MB / 331.9 MB, free: 4.895 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.755e-06/7.785e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09526/0.09528, allocations: 54.87 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.155/6.25, allocations: 2.672 GB / 3.109 GB, free: 31.61 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/6.251, allocations: 75.83 kB / 3.109 GB, free: 31.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.858/9.108, allocations: 0.7946 GB / 3.904 GB, free: 7.68 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003159/9.109, allocations: 63.77 kB / 3.904 GB, free: 7.621 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01686/9.126, allocations: 3.78 MB / 3.907 GB, free: 3.789 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/9.126, allocations: 8.031 kB / 3.907 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006975/9.133, allocations: 0.8128 MB / 3.908 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007137/9.14, allocations: 2.005 MB / 3.91 GB, free: 0.9375 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002415/9.14, allocations: 83.98 kB / 3.91 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001015/9.141, allocations: 111.9 kB / 3.91 GB, free: 0.7461 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2145/9.356, allocations: 2.585 MB / 3.913 GB, free: 72.39 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003739/9.36, allocations: 2.574 MB / 3.915 GB, free: 71.92 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.027e-05/9.36, allocations: 6.875 kB / 3.915 GB, free: 71.92 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001922/9.36, allocations: 9.438 kB / 3.915 GB, free: 71.92 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/9.36, allocations: 151.2 kB / 3.916 GB, free: 71.91 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2221/9.582, allocations: 109.1 MB / 4.022 GB, free: 31.79 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/9.584, allocations: 1.037 MB / 4.023 GB, free: 31.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/9.585, allocations: 0.9901 MB / 4.024 GB, free: 31.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03458/9.62, allocations: 17.47 MB / 4.041 GB, free: 36.08 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002547/9.623, allocations: 1.164 MB / 4.042 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=145): time 5.781e-06/9.623, allocations: 0 / 4.042 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=157): time 0.06622/9.689, allocations: 9.109 MB / 4.051 GB, free: 34.34 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002674/9.689, allocations: 358 kB / 4.052 GB, free: 33.94 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002971/9.692, allocations: 1.027 MB / 4.053 GB, free: 33.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003989/9.693, allocations: 29.61 kB / 4.053 GB, free: 33.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007577/9.693, allocations: 0.6993 MB / 4.053 GB, free: 33.43 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005902/9.694, allocations: 0.5058 MB / 4.054 GB, free: 33.17 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/9.694, allocations: 4 kB / 4.054 GB, free: 33.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002394/9.694, allocations: 381.8 kB / 4.054 GB, free: 32.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/9.696, allocations: 1.005 MB / 4.055 GB, free: 32.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/9.698, allocations: 1.428 MB / 4.057 GB, free: 32.42 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009013/9.707, allocations: 1.969 MB / 4.058 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/9.707, allocations: 6.781 kB / 4.058 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01414/9.721, allocations: 4.292 MB / 4.063 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001615/9.723, allocations: 4.245 MB / 4.067 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/9.723, allocations: 9.375 kB / 4.067 GB, free: 27.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002198/9.725, allocations: 0.5217 MB / 4.067 GB, free: 27.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0019/9.727, allocations: 460.4 kB / 4.068 GB, free: 27.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/9.73, allocations: 2.908 MB / 4.071 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/9.732, allocations: 260.2 kB / 4.071 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003947/9.733, allocations: 97.58 kB / 4.071 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/9.733, allocations: 7.312 kB / 4.071 GB, free: 25.58 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01076/9.744, allocations: 3.167 MB / 4.074 GB, free: 25.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.027e-05/9.744, allocations: 11.88 kB / 4.074 GB, free: 25.49 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004621/9.744, allocations: 194.1 kB / 4.074 GB, free: 25.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001865/9.746, allocations: 478.1 kB / 4.075 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/9.748, allocations: 1.924 MB / 4.077 GB, free: 23.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002517/9.75, allocations: 230.3 kB / 4.077 GB, free: 23.87 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003354/9.751, allocations: 95.34 kB / 4.077 GB, free: 23.87 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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: 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007412/9.751, allocations: 246.4 kB / 4.077 GB, free: 23.69 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002021/9.753, allocations: 0.6094 MB / 4.078 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01455/9.768, allocations: 6.724 MB / 4.084 GB, free: 23.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-05/9.768, allocations: 51.62 kB / 4.084 GB, free: 23.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/9.768, allocations: 2.25 kB / 4.084 GB, free: 23.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01199/9.78, allocations: 5.813 MB / 4.09 GB, free: 22.37 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/9.8, allocations: 10.12 MB / 4.1 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.96e-05/9.8, allocations: 3.656 kB / 4.1 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/9.802, allocations: 292.1 kB / 4.1 GB, free: 21.08 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002072/9.804, allocations: 1.169 MB / 4.101 GB, free: 21 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003665/9.804, allocations: 52.08 kB / 4.101 GB, free: 21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2153/10.02, allocations: 3.399 MB / 4.105 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/10.02, allocations: 9.375 kB / 4.105 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01419/10.03, allocations: 7.629 MB / 4.112 GB, free: 99.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/10.04, allocations: 0.6424 MB / 4.113 GB, free: 99.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003816/10.04, allocations: 25.11 kB / 4.113 GB, free: 99.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/10.04, allocations: 148 kB / 4.113 GB, free: 99.61 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/10.04, allocations: 126.7 kB / 4.113 GB, free: 99.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/10.04, allocations: 75.39 kB / 4.113 GB, free: 99.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001218/10.04, allocations: 0.9669 MB / 4.114 GB, free: 99.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008529/10.05, allocations: 2.471 MB / 4.116 GB, free: 99.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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 (153): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.009793/10.06, allocations: 2.906 MB / 4.119 GB, free: 99.34 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006232/10.06, allocations: 4.881 MB / 4.124 GB, free: 99.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/10.06, allocations: 0 / 4.124 GB, free: 99.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003341/10.07, allocations: 2.981 MB / 4.127 GB, free: 99.08 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00375/10.07, allocations: 0.6769 MB / 4.128 GB, free: 99.07 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04678/10.12, allocations: 19.77 MB / 4.147 GB, free: 98.02 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003025/10.12, allocations: 2.206 MB / 4.149 GB, free: 97.27 MB / 0.5417 GB Notification: Performance of SimCode: time 1.183e-06/10.12, allocations: 2.406 kB / 4.149 GB, free: 97.27 MB / 0.5417 GB Notification: Performance of Templates: time 0.1223/10.24, allocations: 83.41 MB / 4.231 GB, free: 92.88 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1)