Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.001591/0.001592, allocations: 171.4 kB / 8.514 MB, free: 1.852 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.33/1.33, allocations: 221.4 MB / 230.3 MB, free: 7.656 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.001032/0.001032, allocations: 89.91 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.1629/0.1629, allocations: 44.14 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1826/0.3455, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.4508, allocations: 61.92 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.966/1.417, allocations: 0.5607 GB / 1.055 GB, free: 44.15 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/1.417, allocations: 75.97 kB / 1.055 GB, free: 44.08 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 1.86/3.277, allocations: 0.5635 GB / 1.619 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/3.277, allocations: 10.53 kB / 1.619 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003727/3.281, allocations: 459.6 kB / 1.619 GB, free: 46.82 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005944/3.287, allocations: 2.019 MB / 1.621 GB, free: 46.32 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/3.287, allocations: 57.34 kB / 1.621 GB, free: 46.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007913/3.288, allocations: 106.6 kB / 1.621 GB, free: 46.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003788/3.292, allocations: 2.289 MB / 1.623 GB, free: 45.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004078/3.296, allocations: 2.538 MB / 1.626 GB, free: 44.58 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.868e-05/3.296, allocations: 10.41 kB / 1.626 GB, free: 44.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/3.296, allocations: 6.438 kB / 1.626 GB, free: 44.57 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001646/3.296, allocations: 163.2 kB / 1.626 GB, free: 44.55 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01501/3.311, allocations: 12.04 MB / 1.638 GB, free: 35.96 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/3.313, allocations: 1.138 MB / 1.639 GB, free: 35.54 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/3.314, allocations: 1.085 MB / 1.64 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000838/3.315, allocations: 0.5108 MB / 1.64 GB, free: 34.67 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00178/3.317, allocations: 1.277 MB / 1.642 GB, free: 34.16 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=167): time 3.516e-06/3.317, allocations: 3.375 kB / 1.642 GB, free: 34.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=192): time 0.04203/3.359, allocations: 9.849 MB / 1.651 GB, free: 31.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/3.359, allocations: 361.2 kB / 1.652 GB, free: 30.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/3.361, allocations: 1.111 MB / 1.653 GB, free: 29.58 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002165/3.361, allocations: 26.45 kB / 1.653 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005188/3.362, allocations: 0.684 MB / 1.653 GB, free: 28.95 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005306/3.362, allocations: 0.6225 MB / 1.654 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/3.362, allocations: 0 / 1.654 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001242/3.362, allocations: 396 kB / 1.654 GB, free: 28.01 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/3.364, allocations: 1.059 MB / 1.655 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001727/3.366, allocations: 1.529 MB / 1.657 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009777/3.375, allocations: 2.346 MB / 1.659 GB, free: 23.76 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/3.376, allocations: 0 / 1.659 GB, free: 23.76 MB / 0.5261 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01277/3.388, allocations: 4.153 MB / 1.663 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006411/3.389, allocations: 4.188 MB / 1.667 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/3.389, allocations: 11.38 kB / 1.667 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006906/3.39, allocations: 282.8 kB / 1.668 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002404/3.392, allocations: 0.5584 MB / 1.668 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/3.394, allocations: 3.059 MB / 1.671 GB, free: 12.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00256/3.396, allocations: 173.7 kB / 1.671 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000324/3.397, allocations: 201.8 kB / 1.672 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.835e-06/3.397, allocations: 4 kB / 1.672 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01146/3.408, allocations: 3.588 MB / 1.675 GB, free: 8.984 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/3.408, allocations: 10.75 kB / 1.675 GB, free: 8.977 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006124/3.409, allocations: 279.4 kB / 1.675 GB, free: 8.734 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/3.411, allocations: 0.5527 MB / 1.676 GB, free: 8.266 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/3.412, allocations: 3.065 MB / 1.679 GB, free: 5.176 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00245/3.415, allocations: 174.7 kB / 1.679 GB, free: 5.043 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003145/3.415, allocations: 205.6 kB / 1.679 GB, free: 4.859 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (258): * Single equations (assignments): 251 * 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,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006624/3.416, allocations: 228.4 kB / 1.679 GB, free: 4.621 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003633/3.416, allocations: 202.3 kB / 1.68 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01804/3.434, allocations: 6.31 MB / 1.686 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.019e-05/3.434, allocations: 20 kB / 1.686 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/3.434, allocations: 7.906 kB / 1.686 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01267/3.447, allocations: 3.817 MB / 1.69 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/3.468, allocations: 7.379 MB / 1.697 GB, free: 2.875 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/3.468, allocations: 4 kB / 1.697 GB, free: 2.871 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002142/3.47, allocations: 459.4 kB / 1.697 GB, free: 2.422 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008943/3.471, allocations: 291.7 kB / 1.697 GB, free: 2.125 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002462/3.471, allocations: 83.94 kB / 1.698 GB, free: 2.043 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002963/3.474, allocations: 3.742 MB / 1.701 GB, free: 14.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/3.474, allocations: 4 kB / 1.701 GB, free: 14.08 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01612/3.49, allocations: 5.773 MB / 1.707 GB, free: 8.047 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01844/3.509, allocations: 7.775 MB / 1.714 GB, free: 8 kB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2331/3.742, allocations: 0.5299 MB / 1.715 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000471/3.742, allocations: 26.59 kB / 1.715 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/3.744, allocations: 101 kB / 1.715 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/3.744, allocations: 165.2 kB / 1.715 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002667/3.745, allocations: 181.8 kB / 1.715 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0009654/3.746, allocations: 0.8147 MB / 1.716 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007025/3.753, allocations: 2.185 MB / 1.718 GB, free: 121.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (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,junctionVolume.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 (200): * Single equations (assignments): 193 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004181/3.757, allocations: 2.527 MB / 1.721 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005927/3.763, allocations: 4.259 MB / 1.725 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/3.763, allocations: 1.625 kB / 1.725 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001981/3.765, allocations: 1.525 MB / 1.726 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004078/3.769, allocations: 0.8934 MB / 1.727 GB, free: 121.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008539/3.777, allocations: 4.321 MB / 1.732 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003726/3.781, allocations: 2.365 MB / 1.734 GB, free: 119.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.844e-06/3.781, allocations: 0 / 1.734 GB, free: 119.4 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)