Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001615/0.001615, allocations: 194.4 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009157/0.0009158, allocations: 90.42 kB / 286.3 MB, free: 5.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1881/0.1881, allocations: 45.15 MB / 383.3 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2332/0.4214, allocations: 69.37 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.5185, allocations: 63.24 MB / 0.5039 GB, free: 12.97 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.89/5.409, allocations: 2.835 GB / 3.338 GB, free: 71.14 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/5.409, allocations: 83.8 kB / 3.339 GB, free: 71.06 MB / 0.5261 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 2.56/7.969, allocations: 0.9132 GB / 4.252 GB, free: 4.641 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/7.969, allocations: 8 kB / 4.252 GB, free: 4.633 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006482/7.975, allocations: 0.91 MB / 4.253 GB, free: 3.719 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005276/7.981, allocations: 2.092 MB / 4.255 GB, free: 1.605 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/7.981, allocations: 95.98 kB / 4.255 GB, free: 1.512 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004172/7.981, allocations: 116 kB / 4.255 GB, free: 1.395 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1877/8.169, allocations: 2.755 MB / 4.258 GB, free: 82.41 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004107/8.173, allocations: 2.95 MB / 4.26 GB, free: 81.89 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.512e-05/8.173, allocations: 7.094 kB / 4.26 GB, free: 81.89 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002254/8.173, allocations: 9.406 kB / 4.26 GB, free: 81.89 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/8.174, allocations: 181 kB / 4.261 GB, free: 81.89 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2248/8.398, allocations: 143 MB / 4.4 GB, free: 37.48 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/8.4, allocations: 1.132 MB / 4.401 GB, free: 37.46 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/8.401, allocations: 1.003 MB / 4.402 GB, free: 37.45 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0326/8.434, allocations: 19.39 MB / 4.421 GB, free: 40.3 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001813/8.436, allocations: 1.223 MB / 4.423 GB, free: 40.12 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=153): time 2.956e-06/8.436, allocations: 0 / 4.423 GB, free: 40.12 MB / 0.6355 GB Notification: Performance of matching and sorting (n=169): time 0.02013/8.456, allocations: 8.168 MB / 4.431 GB, free: 38.46 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/8.456, allocations: 362.4 kB / 4.431 GB, free: 38.06 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/8.457, allocations: 1.173 MB / 4.432 GB, free: 37.89 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001386/8.457, allocations: 25.7 kB / 4.432 GB, free: 37.86 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004774/8.458, allocations: 0.7898 MB / 4.433 GB, free: 37.52 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003956/8.458, allocations: 0.5527 MB / 4.433 GB, free: 37.23 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/8.458, allocations: 0 / 4.433 GB, free: 37.23 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001432/8.459, allocations: 387.8 kB / 4.434 GB, free: 36.92 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/8.46, allocations: 1.119 MB / 4.435 GB, free: 36.92 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/8.462, allocations: 1.533 MB / 4.436 GB, free: 36.46 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006444/8.468, allocations: 2.126 MB / 4.438 GB, free: 36.41 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/8.468, allocations: 3.531 kB / 4.438 GB, free: 36.41 MB / 0.6355 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01121/8.479, allocations: 4.497 MB / 4.443 GB, free: 36.19 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001176/8.481, allocations: 4.339 MB / 4.447 GB, free: 31.71 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/8.481, allocations: 14.06 kB / 4.447 GB, free: 31.71 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006128/8.481, allocations: 226.7 kB / 4.447 GB, free: 31.68 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002174/8.484, allocations: 0.5241 MB / 4.448 GB, free: 31.67 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/8.485, allocations: 2.485 MB / 4.45 GB, free: 29.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/8.487, allocations: 279.4 kB / 4.45 GB, free: 29.55 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002367/8.488, allocations: 109.9 kB / 4.451 GB, free: 29.55 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 5.23e-06/8.488, allocations: 3.719 kB / 4.451 GB, free: 29.55 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008015/8.496, allocations: 3.421 MB / 4.454 GB, free: 29.45 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/8.496, allocations: 11.44 kB / 4.454 GB, free: 29.45 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005393/8.496, allocations: 231.8 kB / 4.454 GB, free: 29.42 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002089/8.498, allocations: 0.5105 MB / 4.455 GB, free: 29.41 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1922/8.69, allocations: 2.486 MB / 4.457 GB, free: 144.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002651/8.693, allocations: 252.4 kB / 4.457 GB, free: 144.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002262/8.693, allocations: 103.1 kB / 4.457 GB, free: 144.7 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (243): * Single equations (assignments): 237 * 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.0006469/8.694, allocations: 230.3 kB / 4.458 GB, free: 144.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001789/8.696, allocations: 0.661 MB / 4.458 GB, free: 144.5 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008124/8.704, allocations: 6.068 MB / 4.464 GB, free: 144.1 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.764e-05/8.704, allocations: 51.3 kB / 4.464 GB, free: 144.1 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/8.704, allocations: 11.75 kB / 4.464 GB, free: 144.1 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005703/8.71, allocations: 5.043 MB / 4.469 GB, free: 143.5 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/8.72, allocations: 9.026 MB / 4.478 GB, free: 142.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/8.72, allocations: 0 / 4.478 GB, free: 142.4 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/8.722, allocations: 342.7 kB / 4.478 GB, free: 142.4 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008858/8.723, allocations: 321.6 kB / 4.479 GB, free: 142.4 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/8.723, allocations: 43.17 kB / 4.479 GB, free: 142.4 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/8.724, allocations: 2.662 MB / 4.481 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/8.724, allocations: 5.125 kB / 4.481 GB, free: 140.3 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009196/8.733, allocations: 6.774 MB / 4.488 GB, free: 139.9 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01138/8.745, allocations: 9.266 MB / 4.497 GB, free: 139 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/8.746, allocations: 0.6949 MB / 4.498 GB, free: 138.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004166/8.747, allocations: 22.56 kB / 4.498 GB, free: 138.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/8.748, allocations: 186.4 kB / 4.498 GB, free: 138.7 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002624/8.749, allocations: 124.7 kB / 4.498 GB, free: 138.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/8.749, allocations: 76.27 kB / 4.498 GB, free: 138.7 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001402/8.75, allocations: 1.125 MB / 4.499 GB, free: 138.6 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0104/8.761, allocations: 3.366 MB / 4.502 GB, free: 138.6 MB / 0.6355 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 (175): * Single equations (assignments): 158 * 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.008389/8.769, allocations: 3.235 MB / 4.506 GB, free: 138.5 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.006964/8.776, allocations: 5.242 MB / 4.511 GB, free: 138.3 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/8.776, allocations: 3.625 kB / 4.511 GB, free: 138.3 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.002841/8.779, allocations: 2.646 MB / 4.513 GB, free: 138.2 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004019/8.783, allocations: 0.8186 MB / 4.514 GB, free: 138.2 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008067/8.791, allocations: 5.585 MB / 4.519 GB, free: 137.2 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/8.793, allocations: 2.35 MB / 4.522 GB, free: 136.5 MB / 0.6355 GB Notification: Performance of SimCode: time 5.51e-07/8.793, allocations: 0 / 4.522 GB, free: 136.5 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)