Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009673/0.000967, allocations: 178.4 kB / 8.518 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 221.4 MB / 230.3 MB, free: 7.738 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000974/0.000974, allocations: 83.42 kB / 281.2 MB, free: 5.492 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2159/0.2159, allocations: 44.14 MB / 376.1 MB, free: 3.27 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2602/0.4761, allocations: 68.04 MB / 444.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.6027, allocations: 61.9 MB / 0.4942 GB, free: 1.582 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.288/5.891, allocations: 2.834 GB / 3.328 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/5.891, allocations: 70.78 kB / 3.328 GB, free: 147.3 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 2.813/8.704, allocations: 0.914 GB / 4.242 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/8.704, allocations: 12.72 kB / 4.242 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007214/8.712, allocations: 0.9118 MB / 4.243 GB, free: 29.38 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006413/8.718, allocations: 2.097 MB / 4.245 GB, free: 28.43 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/8.718, allocations: 94.17 kB / 4.245 GB, free: 28.43 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007188/8.719, allocations: 120 kB / 4.245 GB, free: 28.42 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004943/8.724, allocations: 2.759 MB / 4.248 GB, free: 27.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004473/8.728, allocations: 2.953 MB / 4.251 GB, free: 26.18 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.427e-05/8.729, allocations: 7.719 kB / 4.251 GB, free: 26.17 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/8.729, allocations: 11.09 kB / 4.251 GB, free: 26.17 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001344/8.729, allocations: 177.8 kB / 4.251 GB, free: 26.15 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4355/9.165, allocations: 127.3 MB / 4.375 GB, free: 56.82 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/9.166, allocations: 1.139 MB / 4.376 GB, free: 56.79 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/9.168, allocations: 1.014 MB / 4.377 GB, free: 56.78 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03025/9.198, allocations: 17.02 MB / 4.394 GB, free: 45.59 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00234/9.201, allocations: 1.222 MB / 4.395 GB, free: 45.43 MB / 0.573 GB Notification: Performance of pre-optimization done (n=153): time 5.451e-06/9.201, allocations: 0 / 4.395 GB, free: 45.43 MB / 0.573 GB Notification: Performance of matching and sorting (n=169): time 0.02312/9.224, allocations: 8.151 MB / 4.403 GB, free: 43.95 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.094e-05/9.224, allocations: 366.2 kB / 4.403 GB, free: 43.54 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/9.225, allocations: 1.172 MB / 4.404 GB, free: 43.37 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002101/9.226, allocations: 29.11 kB / 4.404 GB, free: 43.34 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005067/9.226, allocations: 0.7892 MB / 4.405 GB, free: 42.99 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000435/9.227, allocations: 0.5473 MB / 4.406 GB, free: 42.71 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/9.227, allocations: 0 / 4.406 GB, free: 42.71 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.739e-05/9.227, allocations: 388.9 kB / 4.406 GB, free: 42.4 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/9.228, allocations: 1.122 MB / 4.407 GB, free: 42.39 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/9.23, allocations: 1.536 MB / 4.409 GB, free: 41.93 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005248/9.235, allocations: 1.966 MB / 4.411 GB, free: 41.89 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/9.235, allocations: 3.844 kB / 4.411 GB, free: 41.89 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.009878/9.245, allocations: 4.339 MB / 4.415 GB, free: 41.68 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007017/9.246, allocations: 4.348 MB / 4.419 GB, free: 37.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/9.246, allocations: 10.81 kB / 4.419 GB, free: 37.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006141/9.247, allocations: 225.7 kB / 4.419 GB, free: 37.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002136/9.249, allocations: 0.5206 MB / 4.42 GB, free: 37.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/9.25, allocations: 2.485 MB / 4.422 GB, free: 35.08 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002456/9.252, allocations: 276.3 kB / 4.423 GB, free: 35.04 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002201/9.253, allocations: 108.1 kB / 4.423 GB, free: 35.04 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.188e-06/9.253, allocations: 4.094 kB / 4.423 GB, free: 35.04 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00675/9.259, allocations: 3.268 MB / 4.426 GB, free: 34.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/9.259, allocations: 12.88 kB / 4.426 GB, free: 34.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005233/9.26, allocations: 220.1 kB / 4.426 GB, free: 34.92 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/9.262, allocations: 0.5177 MB / 4.427 GB, free: 34.91 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/9.263, allocations: 2.49 MB / 4.429 GB, free: 32.83 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/9.265, allocations: 247.3 kB / 4.429 GB, free: 32.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002043/9.266, allocations: 105.8 kB / 4.429 GB, free: 32.8 MB / 0.573 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.0004784/9.266, allocations: 237.6 kB / 4.43 GB, free: 32.62 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001896/9.268, allocations: 0.6533 MB / 4.43 GB, free: 32.53 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008332/9.276, allocations: 6.071 MB / 4.436 GB, free: 32.06 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.484e-05/9.276, allocations: 51.98 kB / 4.436 GB, free: 32.06 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/9.276, allocations: 6.844 kB / 4.436 GB, free: 32.06 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005803/9.282, allocations: 5.053 MB / 4.441 GB, free: 31.36 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/9.294, allocations: 9.022 MB / 4.45 GB, free: 30.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/9.294, allocations: 1.75 kB / 4.45 GB, free: 30.21 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001453/9.296, allocations: 335.4 kB / 4.45 GB, free: 30.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008711/9.296, allocations: 318.8 kB / 4.451 GB, free: 30.16 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/9.297, allocations: 54.2 kB / 4.451 GB, free: 30.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/9.298, allocations: 2.655 MB / 4.453 GB, free: 44.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/9.298, allocations: 3.781 kB / 4.453 GB, free: 44.07 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009318/9.307, allocations: 6.776 MB / 4.46 GB, free: 43.5 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01148/9.319, allocations: 9.267 MB / 4.469 GB, free: 42.55 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/9.32, allocations: 0.6965 MB / 4.47 GB, free: 42.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004356/9.321, allocations: 14.97 kB / 4.47 GB, free: 42.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/9.322, allocations: 190.2 kB / 4.47 GB, free: 42.29 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/9.322, allocations: 128.5 kB / 4.47 GB, free: 42.29 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/9.323, allocations: 74.27 kB / 4.47 GB, free: 42.29 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001381/9.324, allocations: 1.128 MB / 4.471 GB, free: 42.18 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01029/9.334, allocations: 3.321 MB / 4.474 GB, free: 42.11 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.008892/9.343, allocations: 3.213 MB / 4.477 GB, free: 41.65 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006991/9.35, allocations: 5.252 MB / 4.483 GB, free: 41.46 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/9.35, allocations: 0.6562 kB / 4.483 GB, free: 41.46 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002855/9.353, allocations: 2.649 MB / 4.485 GB, free: 41.38 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004142/9.357, allocations: 0.818 MB / 4.486 GB, free: 41.34 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008794/9.366, allocations: 5.583 MB / 4.491 GB, free: 40.11 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002138/9.368, allocations: 2.343 MB / 4.494 GB, free: 39.32 MB / 0.5886 GB Notification: Performance of SimCode: time 7.61e-07/9.368, allocations: 2.344 kB / 4.494 GB, free: 39.32 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)