Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") [: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.003172/0.003172, allocations: 183.7 kB / 7.456 MB, free: 2.18 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.242/1.242, allocations: 194.2 MB / 202.1 MB, free: 8.668 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.002274/0.002275, allocations: 122.7 kB / 247.1 MB, free: 6.434 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.1821/0.1821, allocations: 39.94 MB / 331.9 MB, free: 4.934 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.976e-06/9.006e-06, allocations: 0 / 392.8 MB, free: 75.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.14, allocations: 54.87 MB / 447.6 MB, free: 21.01 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.413/6.554, allocations: 2.659 GB / 3.097 GB, free: 10.48 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/6.554, allocations: 79.45 kB / 3.097 GB, free: 10.44 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.939/9.493, allocations: 0.8946 GB / 3.991 GB, free: 28.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003515/9.493, allocations: 64.14 kB / 3.991 GB, free: 28.89 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01596/9.509, allocations: 4.043 MB / 3.995 GB, free: 26.67 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/9.509, allocations: 14.06 kB / 3.995 GB, free: 26.67 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007314/9.517, allocations: 0.903 MB / 3.996 GB, free: 26.46 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006899/9.524, allocations: 2.096 MB / 3.998 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/9.524, allocations: 100.5 kB / 3.998 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009165/9.525, allocations: 125.2 kB / 3.998 GB, free: 25.49 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005513/9.53, allocations: 2.736 MB / 4.001 GB, free: 24.55 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005676/9.536, allocations: 2.934 MB / 4.004 GB, free: 23.25 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.976e-05/9.536, allocations: 7.875 kB / 4.004 GB, free: 23.25 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/9.536, allocations: 9.719 kB / 4.004 GB, free: 23.25 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/9.536, allocations: 171.5 kB / 4.004 GB, free: 23.23 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4803/10.02, allocations: 111.1 MB / 4.113 GB, free: 66.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001698/10.02, allocations: 1.113 MB / 4.114 GB, free: 66.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/10.02, allocations: 0.9906 MB / 4.115 GB, free: 66.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03101/10.05, allocations: 17.53 MB / 4.132 GB, free: 55.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001777/10.05, allocations: 1.204 MB / 4.133 GB, free: 54.91 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=153): time 3.286e-06/10.05, allocations: 0 / 4.133 GB, free: 54.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=169): time 0.0214/10.07, allocations: 8.071 MB / 4.141 GB, free: 53.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/10.07, allocations: 364.6 kB / 4.141 GB, free: 53.02 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/10.08, allocations: 1.158 MB / 4.142 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000159/10.08, allocations: 28.95 kB / 4.142 GB, free: 52.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005996/10.08, allocations: 0.8 MB / 4.143 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004819/10.08, allocations: 0.5479 MB / 4.144 GB, free: 52.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/10.08, allocations: 0 / 4.144 GB, free: 52.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001129/10.08, allocations: 397.6 kB / 4.144 GB, free: 51.87 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/10.08, allocations: 1.101 MB / 4.145 GB, free: 51.86 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/10.08, allocations: 1.547 MB / 4.147 GB, free: 51.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01157/10.09, allocations: 3.031 MB / 4.15 GB, free: 51.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/10.09, allocations: 10.59 kB / 4.15 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01771/10.11, allocations: 5.4 MB / 4.155 GB, free: 51.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009048/10.11, allocations: 4.873 MB / 4.16 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/10.11, allocations: 14.88 kB / 4.16 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005972/10.11, allocations: 221.8 kB / 4.16 GB, free: 45.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/10.11, allocations: 0.5309 MB / 4.16 GB, free: 45.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/10.11, allocations: 2.482 MB / 4.163 GB, free: 43.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/10.12, allocations: 276.7 kB / 4.163 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/10.12, allocations: 104.8 kB / 4.163 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.976e-06/10.12, allocations: 3.625 kB / 4.163 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01518/10.13, allocations: 4.33 MB / 4.167 GB, free: 43.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-05/10.13, allocations: 19.48 kB / 4.167 GB, free: 43.74 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005569/10.13, allocations: 229.7 kB / 4.168 GB, free: 43.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/10.14, allocations: 0.5221 MB / 4.168 GB, free: 43.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/10.14, allocations: 2.482 MB / 4.17 GB, free: 41.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002399/10.14, allocations: 246.4 kB / 4.171 GB, free: 41.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002036/10.14, allocations: 102.8 kB / 4.171 GB, free: 41.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,splitter.medium.phase,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 (247): * Single equations (assignments): 241 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006147/10.14, allocations: 233.5 kB / 4.171 GB, free: 41.41 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001839/10.14, allocations: 0.6597 MB / 4.172 GB, free: 41.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008563/10.15, allocations: 6.051 MB / 4.178 GB, free: 40.83 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.01e-05/10.15, allocations: 52.94 kB / 4.178 GB, free: 40.83 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/10.15, allocations: 8.062 kB / 4.178 GB, free: 40.83 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006107/10.16, allocations: 5.023 MB / 4.183 GB, free: 40.13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/10.17, allocations: 8.932 MB / 4.191 GB, free: 38.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/10.17, allocations: 0 / 4.191 GB, free: 38.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/10.17, allocations: 340.4 kB / 4.192 GB, free: 38.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008791/10.17, allocations: 325.6 kB / 4.192 GB, free: 38.94 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/10.17, allocations: 42.11 kB / 4.192 GB, free: 38.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/10.17, allocations: 2.661 MB / 4.195 GB, free: 36.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/10.17, allocations: 288 / 4.195 GB, free: 36.84 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009272/10.18, allocations: 6.735 MB / 4.201 GB, free: 36.28 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/10.18, allocations: 0.6808 MB / 4.202 GB, free: 36.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004419/10.18, allocations: 27.44 kB / 4.202 GB, free: 36.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/10.19, allocations: 178.8 kB / 4.202 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/10.19, allocations: 129.1 kB / 4.202 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000154/10.19, allocations: 76.94 kB / 4.202 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001461/10.19, allocations: 1.065 MB / 4.203 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01067/10.2, allocations: 2.736 MB / 4.206 GB, free: 35.83 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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,splitter.medium.phase) * 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 (173): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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.01449/10.21, allocations: 3.203 MB / 4.209 GB, free: 35.38 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007827/10.22, allocations: 5.227 MB / 4.214 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/10.22, allocations: 0 / 4.214 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003115/10.22, allocations: 2.64 MB / 4.217 GB, free: 35.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004883/10.23, allocations: 0.8161 MB / 4.218 GB, free: 35.06 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04791/10.28, allocations: 19.95 MB / 4.237 GB, free: 33.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002349/10.28, allocations: 2.312 MB / 4.239 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of SimCode: time 1.413e-06/10.28, allocations: 4 kB / 4.239 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of Templates: time 0.4198/10.7, allocations: 90.64 MB / 4.328 GB, free: 90.64 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)