Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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.001025/0.001025, allocations: 179.3 kB / 8.518 MB, free: 1.824 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.212/1.212, allocations: 221.4 MB / 230.3 MB, free: 7.832 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.0008847/0.0008848, allocations: 87.48 kB / 281.2 MB, free: 5.578 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.1676/0.1676, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.221/0.3887, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.5093, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.382/5.892, allocations: 2.846 GB / 3.34 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/5.892, allocations: 75.97 kB / 3.34 GB, free: 134.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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 2.688/8.58, allocations: 0.8119 GB / 4.152 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/8.58, allocations: 17.62 kB / 4.152 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006307/8.587, allocations: 0.8102 MB / 4.153 GB, free: 35.05 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006471/8.593, allocations: 2.002 MB / 4.155 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/8.593, allocations: 82.91 kB / 4.155 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007723/8.594, allocations: 114 kB / 4.155 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00511/8.599, allocations: 2.604 MB / 4.158 GB, free: 34.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005067/8.604, allocations: 2.599 MB / 4.16 GB, free: 34.12 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.443e-05/8.604, allocations: 6.719 kB / 4.16 GB, free: 34.12 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003651/8.605, allocations: 7.844 kB / 4.16 GB, free: 34.12 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/8.605, allocations: 150.5 kB / 4.161 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2422/8.847, allocations: 125.3 MB / 4.283 GB, free: 18.79 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002039/8.849, allocations: 1.044 MB / 4.284 GB, free: 18.77 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/8.851, allocations: 1.005 MB / 4.285 GB, free: 18.75 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2283/9.079, allocations: 17.08 MB / 4.302 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001925/9.081, allocations: 1.19 MB / 4.303 GB, free: 134.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=145): time 3.617e-06/9.081, allocations: 0 / 4.303 GB, free: 134.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=157): time 0.03435/9.116, allocations: 9.182 MB / 4.312 GB, free: 133.1 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/9.116, allocations: 362 kB / 4.312 GB, free: 132.7 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/9.117, allocations: 1.048 MB / 4.313 GB, free: 132.6 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.000315/9.117, allocations: 32.8 kB / 4.313 GB, free: 132.5 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005371/9.118, allocations: 0.6797 MB / 4.314 GB, free: 132.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005113/9.118, allocations: 0.502 MB / 4.314 GB, free: 132 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/9.119, allocations: 6.375 kB / 4.314 GB, free: 132 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001252/9.119, allocations: 374.9 kB / 4.315 GB, free: 131.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/9.12, allocations: 1.03 MB / 4.316 GB, free: 131.7 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/9.122, allocations: 1.419 MB / 4.317 GB, free: 131.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008516/9.13, allocations: 1.984 MB / 4.319 GB, free: 131.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.509e-05/9.13, allocations: 3.469 kB / 4.319 GB, free: 131.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01447/9.145, allocations: 4.314 MB / 4.323 GB, free: 131.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007257/9.146, allocations: 3.719 MB / 4.327 GB, free: 127.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/9.146, allocations: 9.688 kB / 4.327 GB, free: 127.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00226/9.148, allocations: 0.5209 MB / 4.327 GB, free: 127.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/9.15, allocations: 454.4 kB / 4.328 GB, free: 127.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002006/9.152, allocations: 2.915 MB / 4.331 GB, free: 125.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002581/9.154, allocations: 267.3 kB / 4.331 GB, free: 125.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/9.155, allocations: 98.17 kB / 4.331 GB, free: 125.1 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.295e-06/9.155, allocations: 3.531 kB / 4.331 GB, free: 125.1 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01025/9.165, allocations: 3.19 MB / 4.334 GB, free: 125.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/9.165, allocations: 9.688 kB / 4.334 GB, free: 125.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004279/9.165, allocations: 188.6 kB / 4.334 GB, free: 125 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/9.167, allocations: 466.9 kB / 4.335 GB, free: 125 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009948/9.168, allocations: 1.917 MB / 4.337 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002396/9.171, allocations: 252.6 kB / 4.337 GB, free: 123.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002115/9.171, allocations: 91.58 kB / 4.337 GB, free: 123.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005827/9.172, allocations: 234.3 kB / 4.337 GB, free: 123.3 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/9.173, allocations: 0.604 MB / 4.338 GB, free: 123.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/9.186, allocations: 6.742 MB / 4.344 GB, free: 122.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.381e-05/9.186, allocations: 55.77 kB / 4.344 GB, free: 122.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/9.186, allocations: 0 / 4.344 GB, free: 122.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01107/9.197, allocations: 5.836 MB / 4.35 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01833/9.216, allocations: 10.21 MB / 4.36 GB, free: 120.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/9.216, allocations: 7.281 kB / 4.36 GB, free: 120.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/9.217, allocations: 293.3 kB / 4.36 GB, free: 120.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001962/9.219, allocations: 1.167 MB / 4.361 GB, free: 120.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/9.219, allocations: 49.86 kB / 4.361 GB, free: 120.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002226/9.221, allocations: 3.401 MB / 4.365 GB, free: 118.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/9.222, allocations: 12.88 kB / 4.365 GB, free: 118.6 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01413/9.236, allocations: 7.651 MB / 4.372 GB, free: 117.5 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01573/9.251, allocations: 10.01 MB / 4.382 GB, free: 116.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/9.253, allocations: 0.6654 MB / 4.383 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004193/9.253, allocations: 27.12 kB / 4.383 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001454/9.255, allocations: 144.4 kB / 4.383 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/9.255, allocations: 134.2 kB / 4.383 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/9.255, allocations: 78.22 kB / 4.383 GB, free: 115.8 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001296/9.256, allocations: 1.033 MB / 4.384 GB, free: 115.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01146/9.268, allocations: 2.977 MB / 4.387 GB, free: 115.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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) * 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 (155): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0117/9.28, allocations: 2.927 MB / 4.39 GB, free: 115.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006827/9.287, allocations: 4.933 MB / 4.395 GB, free: 115.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/9.287, allocations: 0 / 4.395 GB, free: 115.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003451/9.29, allocations: 2.993 MB / 4.398 GB, free: 115.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00401/9.294, allocations: 0.6718 MB / 4.398 GB, free: 115.1 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009164/9.303, allocations: 5.411 MB / 4.404 GB, free: 114 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001945/9.305, allocations: 2.229 MB / 4.406 GB, free: 113.3 MB / 0.6042 GB Notification: Performance of SimCode: time 1.774e-06/9.305, allocations: 0 / 4.406 GB, free: 113.3 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1)