Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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.001441/0.00144, allocations: 171.6 kB / 8.515 MB, free: 1.855 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.404/1.404, allocations: 221.4 MB / 230.3 MB, free: 7.703 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.0008644/0.0008644, allocations: 80.73 kB / 281.2 MB, free: 5.453 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.1673/0.1673, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2008/0.3681, allocations: 68.02 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.4646, allocations: 61.9 MB / 0.4942 GB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9315/1.396, allocations: 0.5606 GB / 1.055 GB, free: 43.64 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/1.396, allocations: 75.97 kB / 1.055 GB, free: 43.57 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 1.657/3.054, allocations: 0.5064 GB / 1.561 GB, free: 49.11 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/3.054, allocations: 15.34 kB / 1.561 GB, free: 49.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003541/3.057, allocations: 441 kB / 1.562 GB, free: 48.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0055/3.063, allocations: 1.948 MB / 1.564 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/3.063, allocations: 60.11 kB / 1.564 GB, free: 48.55 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000649/3.064, allocations: 100.2 kB / 1.564 GB, free: 48.54 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003854/3.068, allocations: 2.199 MB / 1.566 GB, free: 48.54 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004146/3.072, allocations: 2.431 MB / 1.568 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.259e-05/3.072, allocations: 7.031 kB / 1.568 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002922/3.072, allocations: 6.969 kB / 1.568 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/3.072, allocations: 161.7 kB / 1.568 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/3.086, allocations: 11.78 MB / 1.58 GB, free: 41.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/3.088, allocations: 1.038 MB / 1.581 GB, free: 41.27 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/3.089, allocations: 1.008 MB / 1.582 GB, free: 41.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007816/3.09, allocations: 0.5078 MB / 1.582 GB, free: 40.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001481/3.091, allocations: 1.188 MB / 1.584 GB, free: 40.62 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=153): time 4.418e-06/3.091, allocations: 4.969 kB / 1.584 GB, free: 40.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=173): time 0.03808/3.129, allocations: 9.026 MB / 1.592 GB, free: 39.73 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/3.129, allocations: 366.8 kB / 1.593 GB, free: 39.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/3.131, allocations: 1.082 MB / 1.594 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002528/3.132, allocations: 33.14 kB / 1.594 GB, free: 39.11 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004906/3.132, allocations: 0.6612 MB / 1.595 GB, free: 38.73 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000444/3.133, allocations: 0.5592 MB / 1.595 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/3.133, allocations: 0 / 1.595 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001016/3.133, allocations: 383.9 kB / 1.595 GB, free: 38.06 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/3.134, allocations: 1.015 MB / 1.596 GB, free: 38.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/3.136, allocations: 1.434 MB / 1.598 GB, free: 37.63 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009552/3.146, allocations: 2.29 MB / 1.6 GB, free: 37.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/3.146, allocations: 3 kB / 1.6 GB, free: 37.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01236/3.158, allocations: 3.931 MB / 1.604 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007482/3.159, allocations: 3.639 MB / 1.607 GB, free: 33.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/3.159, allocations: 6.188 kB / 1.607 GB, free: 33.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003984/3.159, allocations: 176.7 kB / 1.608 GB, free: 33.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002351/3.161, allocations: 0.5347 MB / 1.608 GB, free: 33.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/3.163, allocations: 2.364 MB / 1.61 GB, free: 31.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/3.165, allocations: 173.3 kB / 1.611 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/3.165, allocations: 193.5 kB / 1.611 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.526e-06/3.165, allocations: 3.844 kB / 1.611 GB, free: 31.57 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01097/3.176, allocations: 3.388 MB / 1.614 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/3.176, allocations: 7.594 kB / 1.614 GB, free: 31.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003278/3.177, allocations: 168.4 kB / 1.614 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002294/3.179, allocations: 0.5263 MB / 1.615 GB, free: 31.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/3.18, allocations: 2.363 MB / 1.617 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/3.183, allocations: 169 kB / 1.617 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003431/3.183, allocations: 180.7 kB / 1.617 GB, free: 29.38 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * 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.0007004/3.184, allocations: 233.5 kB / 1.618 GB, free: 29.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005245/3.184, allocations: 187.3 kB / 1.618 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01581/3.2, allocations: 5.105 MB / 1.623 GB, free: 28.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.692e-05/3.2, allocations: 18.44 kB / 1.623 GB, free: 28.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/3.2, allocations: 1.938 kB / 1.623 GB, free: 28.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0121/3.212, allocations: 3.502 MB / 1.626 GB, free: 28.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02184/3.234, allocations: 6.824 MB / 1.633 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/3.234, allocations: 8.844 kB / 1.633 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002247/3.237, allocations: 412.9 kB / 1.633 GB, free: 27.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005478/3.237, allocations: 168.2 kB / 1.633 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003621/3.238, allocations: 74.27 kB / 1.634 GB, free: 27.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/3.24, allocations: 3.037 MB / 1.637 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.539e-05/3.24, allocations: 8.594 kB / 1.637 GB, free: 24.66 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0165/3.256, allocations: 5.308 MB / 1.642 GB, free: 23.02 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01727/3.274, allocations: 7.197 MB / 1.649 GB, free: 19.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/3.275, allocations: 0.506 MB / 1.649 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007964/3.276, allocations: 29.42 kB / 1.649 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001974/3.278, allocations: 91.39 kB / 1.649 GB, free: 19.49 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/3.279, allocations: 144.1 kB / 1.649 GB, free: 19.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003637/3.279, allocations: 148.9 kB / 1.65 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001611/3.281, allocations: 0.8059 MB / 1.65 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009154/3.29, allocations: 2.058 MB / 1.652 GB, free: 17.12 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (183): * Single equations (assignments): 177 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005828/3.296, allocations: 2.367 MB / 1.655 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00726/3.303, allocations: 3.996 MB / 1.659 GB, free: 11.81 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/3.303, allocations: 0 / 1.659 GB, free: 11.81 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002274/3.305, allocations: 1.38 MB / 1.66 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004562/3.31, allocations: 0.751 MB / 1.661 GB, free: 10 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009323/3.319, allocations: 4.062 MB / 1.665 GB, free: 6.625 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003592/3.323, allocations: 2.257 MB / 1.667 GB, free: 4.793 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/3.323, allocations: 0 / 1.667 GB, free: 4.793 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)