Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",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.00112/0.00112, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008996/0.0008996, allocations: 97.25 kB / 286.3 MB, free: 5.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1683/0.1683, allocations: 45.14 MB / 383.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1836/0.352, allocations: 69.37 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07894/0.4309, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.123/4.554, allocations: 2.852 GB / 3.355 GB, free: 53.94 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/4.554, allocations: 79.95 kB / 3.355 GB, free: 53.86 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.64/7.194, allocations: 0.9174 GB / 4.273 GB, free: 44.11 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/7.194, allocations: 7.656 kB / 4.273 GB, free: 44.11 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005766/7.2, allocations: 0.9165 MB / 4.274 GB, free: 43.97 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004279/7.204, allocations: 2.11 MB / 4.276 GB, free: 43.53 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/7.205, allocations: 97.72 kB / 4.276 GB, free: 43.53 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002988/7.205, allocations: 121.5 kB / 4.276 GB, free: 43.53 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003673/7.209, allocations: 2.707 MB / 4.279 GB, free: 43.52 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003646/7.212, allocations: 2.921 MB / 4.282 GB, free: 42.97 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.997e-05/7.212, allocations: 10.03 kB / 4.282 GB, free: 42.97 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002206/7.212, allocations: 7.031 kB / 4.282 GB, free: 42.97 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/7.213, allocations: 172.8 kB / 4.282 GB, free: 42.97 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2334/7.446, allocations: 143.1 MB / 4.421 GB, free: 29.83 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/7.448, allocations: 1.153 MB / 4.423 GB, free: 29.81 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001267/7.449, allocations: 1.107 MB / 4.424 GB, free: 29.79 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03332/7.482, allocations: 19.37 MB / 4.443 GB, free: 16.63 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001866/7.484, allocations: 1.275 MB / 4.444 GB, free: 16.46 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=163): time 3.467e-06/7.484, allocations: 0 / 4.444 GB, free: 16.46 MB / 0.6511 GB Notification: Performance of matching and sorting (n=179): time 0.03588/7.52, allocations: 9.948 MB / 4.454 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/7.52, allocations: 370.8 kB / 4.454 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/7.521, allocations: 1.109 MB / 4.455 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.000157/7.522, allocations: 28.83 kB / 4.455 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004503/7.522, allocations: 0.7758 MB / 4.456 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000408/7.523, allocations: 0.5751 MB / 4.456 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/7.523, allocations: 3.75 kB / 4.456 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001339/7.523, allocations: 384.5 kB / 4.457 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/7.524, allocations: 1.127 MB / 4.458 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/7.526, allocations: 1.576 MB / 4.459 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/7.537, allocations: 2.13 MB / 4.461 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/7.537, allocations: 3.094 kB / 4.461 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01449/7.551, allocations: 4.506 MB / 4.466 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001124/7.552, allocations: 4.344 MB / 4.47 GB, free: 23.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/7.552, allocations: 10.5 kB / 4.47 GB, free: 23.7 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006191/7.553, allocations: 225.8 kB / 4.47 GB, free: 23.66 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002276/7.555, allocations: 0.5309 MB / 4.471 GB, free: 23.66 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/7.557, allocations: 2.487 MB / 4.473 GB, free: 21.57 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002764/7.56, allocations: 310.4 kB / 4.474 GB, free: 21.53 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/7.56, allocations: 108.4 kB / 4.474 GB, free: 21.53 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/7.56, allocations: 7.844 kB / 4.474 GB, free: 21.52 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01146/7.572, allocations: 3.436 MB / 4.477 GB, free: 21.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/7.572, allocations: 11.97 kB / 4.477 GB, free: 21.43 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005819/7.572, allocations: 228.3 kB / 4.477 GB, free: 21.39 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002288/7.574, allocations: 0.5302 MB / 4.478 GB, free: 21.38 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/7.576, allocations: 2.484 MB / 4.48 GB, free: 19.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/7.578, allocations: 289.3 kB / 4.48 GB, free: 19.25 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002253/7.579, allocations: 106.1 kB / 4.481 GB, free: 19.25 MB / 0.6667 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 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.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 (250): * Single equations (assignments): 244 * 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.0005672/7.579, allocations: 227.5 kB / 4.481 GB, free: 19.07 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001785/7.581, allocations: 0.6617 MB / 4.481 GB, free: 18.98 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/7.596, allocations: 6.816 MB / 4.488 GB, free: 18.47 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.606e-05/7.596, allocations: 54.48 kB / 4.488 GB, free: 18.46 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/7.596, allocations: 8.719 kB / 4.488 GB, free: 18.46 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0133/7.61, allocations: 5.886 MB / 4.494 GB, free: 15.05 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02082/7.631, allocations: 11.19 MB / 4.505 GB, free: 8.539 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-05/7.631, allocations: 4 kB / 4.505 GB, free: 8.535 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/7.632, allocations: 370.1 kB / 4.505 GB, free: 8.258 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009455/7.633, allocations: 331.4 kB / 4.505 GB, free: 8.062 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001724/7.633, allocations: 58.39 kB / 4.506 GB, free: 8.031 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001547/7.635, allocations: 2.658 MB / 4.508 GB, free: 5.621 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/7.635, allocations: 9.875 kB / 4.508 GB, free: 5.613 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01743/7.652, allocations: 8.145 MB / 4.516 GB, free: 0.5156 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2172/7.87, allocations: 10.64 MB / 4.526 GB, free: 178.7 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/7.871, allocations: 0.6951 MB / 4.527 GB, free: 178.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004274/7.871, allocations: 30 kB / 4.527 GB, free: 178.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/7.873, allocations: 186.2 kB / 4.527 GB, free: 178.6 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/7.873, allocations: 151.1 kB / 4.528 GB, free: 178.6 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001751/7.873, allocations: 85.95 kB / 4.528 GB, free: 178.6 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.001257/7.875, allocations: 1.074 MB / 4.529 GB, free: 178.5 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.01003/7.885, allocations: 3.259 MB / 4.532 GB, free: 178.5 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.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,$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,junctionIdeal.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 (188): * Single equations (assignments): 171 * 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.009218/7.894, allocations: 3.129 MB / 4.535 GB, free: 178.3 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.007497/7.902, allocations: 5.271 MB / 4.54 GB, free: 178.1 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/7.902, allocations: 0 / 4.54 GB, free: 178.1 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.003703/7.905, allocations: 3.187 MB / 4.543 GB, free: 178 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004206/7.91, allocations: 0.8058 MB / 4.544 GB, free: 178 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008476/7.918, allocations: 5.793 MB / 4.55 GB, free: 176.9 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002017/7.92, allocations: 2.347 MB / 4.552 GB, free: 176.1 MB / 0.6667 GB Notification: Performance of SimCode: time 8.71e-07/7.92, allocations: 0 / 4.552 GB, free: 176.1 MB / 0.6667 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)