Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001197/0.001197, allocations: 188.5 kB / 7.803 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.2 MB / 213.4 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 85.25 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2629/0.2629, allocations: 43.48 MB / 352.8 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2587/0.5217, allocations: 64.97 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.9542, allocations: 58.84 MB / 476.6 MB, free: 5.316 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.622/7.576, allocations: 2.829 GB / 3.294 GB, free: 38.68 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/7.576, allocations: 75.36 kB / 3.294 GB, free: 38.61 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 3.519/11.1, allocations: 0.9042 GB / 4.199 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/11.1, allocations: 7.656 kB / 4.199 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007544/11.1, allocations: 0.913 MB / 4.199 GB, free: 28.72 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007997/11.11, allocations: 2.095 MB / 4.201 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002721/11.11, allocations: 99.78 kB / 4.202 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/11.11, allocations: 113.8 kB / 4.202 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00636/11.12, allocations: 2.754 MB / 4.204 GB, free: 28.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006841/11.13, allocations: 2.959 MB / 4.207 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.478e-05/11.13, allocations: 13.47 kB / 4.207 GB, free: 27.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003215/11.13, allocations: 6.25 kB / 4.207 GB, free: 27.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002055/11.13, allocations: 182.4 kB / 4.207 GB, free: 27.73 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2465/11.37, allocations: 127.2 MB / 4.332 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/11.37, allocations: 1.141 MB / 4.333 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/11.38, allocations: 1 MB / 4.334 GB, free: 9.816 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2838/11.66, allocations: 17.01 MB / 4.35 GB, free: 128.8 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00204/11.66, allocations: 1.216 MB / 4.352 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=153): time 4.018e-06/11.66, allocations: 0 / 4.352 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=169): time 0.0287/11.69, allocations: 8.153 MB / 4.36 GB, free: 127.2 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.016e-05/11.69, allocations: 363.1 kB / 4.36 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/11.69, allocations: 1.171 MB / 4.361 GB, free: 126.7 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000233/11.69, allocations: 29.11 kB / 4.361 GB, free: 126.6 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005521/11.69, allocations: 0.7942 MB / 4.362 GB, free: 126.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005086/11.69, allocations: 0.5477 MB / 4.362 GB, free: 126 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/11.69, allocations: 0 / 4.362 GB, free: 126 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000109/11.69, allocations: 388.8 kB / 4.363 GB, free: 125.7 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/11.7, allocations: 1.122 MB / 4.364 GB, free: 125.7 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/11.7, allocations: 1.536 MB / 4.365 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01639/11.71, allocations: 3.051 MB / 4.368 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.716e-05/11.71, allocations: 6.219 kB / 4.368 GB, free: 125.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.03024/11.74, allocations: 5.421 MB / 4.374 GB, free: 125 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000864/11.74, allocations: 4.344 MB / 4.378 GB, free: 120.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/11.74, allocations: 10.62 kB / 4.378 GB, free: 120.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009345/11.75, allocations: 225.2 kB / 4.378 GB, free: 120.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003446/11.75, allocations: 0.5246 MB / 4.379 GB, free: 120.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/11.75, allocations: 2.48 MB / 4.381 GB, free: 118.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003125/11.75, allocations: 285.3 kB / 4.381 GB, free: 118.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/11.75, allocations: 106.6 kB / 4.381 GB, free: 118.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/11.75, allocations: 6.719 kB / 4.381 GB, free: 118.5 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01451/11.77, allocations: 4.344 MB / 4.386 GB, free: 118.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/11.77, allocations: 16.95 kB / 4.386 GB, free: 118.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/11.77, allocations: 226 kB / 4.386 GB, free: 118.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002202/11.77, allocations: 0.5176 MB / 4.386 GB, free: 118.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/11.77, allocations: 2.484 MB / 4.389 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002583/11.78, allocations: 251.5 kB / 4.389 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002379/11.78, allocations: 98.62 kB / 4.389 GB, free: 116.3 MB / 0.5886 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.000674/11.78, allocations: 232.9 kB / 4.389 GB, free: 116.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00206/11.78, allocations: 0.6571 MB / 4.39 GB, free: 116 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008915/11.79, allocations: 6.065 MB / 4.396 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.251e-05/11.79, allocations: 49 kB / 4.396 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/11.79, allocations: 3.188 kB / 4.396 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006392/11.79, allocations: 5.053 MB / 4.401 GB, free: 114.8 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/11.81, allocations: 9.018 MB / 4.41 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/11.81, allocations: 2.5 kB / 4.41 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/11.81, allocations: 332.2 kB / 4.41 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008866/11.81, allocations: 320.8 kB / 4.41 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001654/11.81, allocations: 48.09 kB / 4.41 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/11.81, allocations: 2.671 MB / 4.413 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/11.81, allocations: 0 / 4.413 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01016/11.82, allocations: 6.77 MB / 4.42 GB, free: 111 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01192/11.83, allocations: 9.27 MB / 4.429 GB, free: 110.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/11.83, allocations: 0.6978 MB / 4.429 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004771/11.84, allocations: 23.94 kB / 4.429 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/11.84, allocations: 177.6 kB / 4.43 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/11.84, allocations: 130.2 kB / 4.43 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/11.84, allocations: 73.98 kB / 4.43 GB, free: 109.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001431/11.84, allocations: 1.125 MB / 4.431 GB, free: 109.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01352/11.85, allocations: 3.32 MB / 4.434 GB, free: 109.6 MB / 0.5886 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.01321/11.87, allocations: 3.221 MB / 4.437 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008531/11.87, allocations: 5.241 MB / 4.442 GB, free: 109.1 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/11.87, allocations: 3.562 kB / 4.442 GB, free: 109.1 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002937/11.88, allocations: 2.643 MB / 4.445 GB, free: 109 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004485/11.88, allocations: 0.8194 MB / 4.446 GB, free: 109 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009467/11.89, allocations: 5.589 MB / 4.451 GB, free: 108 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/11.89, allocations: 2.337 MB / 4.453 GB, free: 107.3 MB / 0.5886 GB Notification: Performance of SimCode: time 6.21e-07/11.89, allocations: 0 / 4.453 GB, free: 107.3 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)