Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.001075/0.001075, allocations: 178.3 kB / 8.519 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.216/1.216, allocations: 221.4 MB / 230.3 MB, free: 7.734 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.0009003/0.0009, allocations: 87.25 kB / 281.2 MB, free: 5.531 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.1651/0.1651, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1899/0.355, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.4554, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.868/5.323, allocations: 2.851 GB / 3.345 GB, free: 126 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/5.323, allocations: 79.95 kB / 3.345 GB, free: 126 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 3.324/8.647, allocations: 1.025 GB / 4.37 GB, free: 32.49 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/8.647, allocations: 14.44 kB / 4.37 GB, free: 32.48 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007333/8.655, allocations: 0.9816 MB / 4.371 GB, free: 32.33 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005679/8.66, allocations: 2.215 MB / 4.373 GB, free: 31.87 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/8.66, allocations: 99.67 kB / 4.373 GB, free: 31.87 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000424/8.661, allocations: 138.6 kB / 4.373 GB, free: 31.87 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004446/8.665, allocations: 2.887 MB / 4.376 GB, free: 31.85 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004462/8.67, allocations: 3.092 MB / 4.379 GB, free: 31.25 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.259e-05/8.67, allocations: 9.125 kB / 4.379 GB, free: 31.25 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002762/8.67, allocations: 6.406 kB / 4.379 GB, free: 31.25 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/8.67, allocations: 188.5 kB / 4.379 GB, free: 31.24 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1087/8.779, allocations: 64.6 MB / 4.442 GB, free: 22.83 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/8.781, allocations: 1.294 MB / 4.444 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/8.782, allocations: 1.224 MB / 4.445 GB, free: 22.79 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0327/8.815, allocations: 16.84 MB / 4.461 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002778/8.818, allocations: 1.412 MB / 4.463 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=186): time 4.679e-06/8.818, allocations: 0 / 4.463 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of matching and sorting (n=206): time 0.0433/8.861, allocations: 10.78 MB / 4.473 GB, free: 9.672 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001788/8.861, allocations: 366 kB / 4.474 GB, free: 9.266 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002256/8.864, allocations: 1.174 MB / 4.475 GB, free: 9.078 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0006686/8.864, allocations: 29.14 kB / 4.475 GB, free: 9.047 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008106/8.865, allocations: 0.8062 MB / 4.476 GB, free: 8.578 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009073/8.866, allocations: 0.6649 MB / 4.476 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/8.866, allocations: 1.469 kB / 4.476 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001954/8.867, allocations: 398.6 kB / 4.477 GB, free: 7.832 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/8.868, allocations: 1.235 MB / 4.478 GB, free: 7.824 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/8.871, allocations: 1.733 MB / 4.48 GB, free: 7.305 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/8.881, allocations: 2.263 MB / 4.482 GB, free: 7.25 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.191e-05/8.881, allocations: 7.875 kB / 4.482 GB, free: 7.246 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01654/8.897, allocations: 4.875 MB / 4.486 GB, free: 4.938 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001396/8.899, allocations: 4.99 MB / 4.491 GB, free: 15.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/8.899, allocations: 12 kB / 4.491 GB, free: 15.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008841/8.9, allocations: 323.7 kB / 4.492 GB, free: 15.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/8.903, allocations: 0.6099 MB / 4.492 GB, free: 15.12 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/8.905, allocations: 3.19 MB / 4.495 GB, free: 12.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003624/8.908, allocations: 340.6 kB / 4.496 GB, free: 11.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000393/8.909, allocations: 127.4 kB / 4.496 GB, free: 11.81 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.745e-06/8.909, allocations: 4 kB / 4.496 GB, free: 11.8 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01302/8.922, allocations: 3.765 MB / 4.5 GB, free: 9.652 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/8.922, allocations: 12.16 kB / 4.5 GB, free: 9.641 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009084/8.923, allocations: 330 kB / 4.5 GB, free: 9.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/8.926, allocations: 0.6032 MB / 4.5 GB, free: 8.941 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/8.928, allocations: 3.191 MB / 4.504 GB, free: 5.961 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003232/8.931, allocations: 309.4 kB / 4.504 GB, free: 5.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003263/8.931, allocations: 119.5 kB / 4.504 GB, free: 5.645 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007396/8.932, allocations: 248.6 kB / 4.504 GB, free: 5.398 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002213/8.934, allocations: 0.7174 MB / 4.505 GB, free: 4.957 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2551/9.189, allocations: 7.784 MB / 4.513 GB, free: 116.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.673e-05/9.189, allocations: 61.5 kB / 4.513 GB, free: 116.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/9.19, allocations: 0 / 4.513 GB, free: 116.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01522/9.205, allocations: 6.694 MB / 4.519 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02438/9.229, allocations: 12.62 MB / 4.531 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/9.229, allocations: 6.188 kB / 4.531 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/9.231, allocations: 424.7 kB / 4.532 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/9.232, allocations: 441.7 kB / 4.532 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002397/9.232, allocations: 60.97 kB / 4.532 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001757/9.234, allocations: 3.431 MB / 4.536 GB, free: 111.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/9.234, allocations: 8.766 kB / 4.536 GB, free: 111.4 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01803/9.252, allocations: 9.137 MB / 4.545 GB, free: 110.2 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02128/9.274, allocations: 11.94 MB / 4.556 GB, free: 108.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/9.275, allocations: 0.7519 MB / 4.557 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006507/9.276, allocations: 31.58 kB / 4.557 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/9.278, allocations: 199.1 kB / 4.557 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003319/9.279, allocations: 179.3 kB / 4.557 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002064/9.279, allocations: 99.42 kB / 4.557 GB, free: 108.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001463/9.28, allocations: 1.128 MB / 4.559 GB, free: 108.1 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01258/9.293, allocations: 3.404 MB / 4.562 GB, free: 108.1 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 43 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.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,junctionVolume.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 (220): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01097/9.304, allocations: 3.314 MB / 4.565 GB, free: 107.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.008484/9.312, allocations: 5.995 MB / 4.571 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/9.312, allocations: 2.312 kB / 4.571 GB, free: 107.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004145/9.317, allocations: 3.637 MB / 4.575 GB, free: 107.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005442/9.322, allocations: 0.9672 MB / 4.575 GB, free: 107.7 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/9.333, allocations: 6.433 MB / 4.582 GB, free: 106.4 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002836/9.336, allocations: 2.499 MB / 4.584 GB, free: 105.7 MB / 0.6042 GB Notification: Performance of SimCode: time 1.533e-06/9.336, allocations: 0 / 4.584 GB, free: 105.7 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)