Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") [: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 3.2.1+maint.om/package.mo): time 0.003771/0.003771, allocations: 182.8 kB / 7.455 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.665/1.665, allocations: 170.6 MB / 178.4 MB, free: 15.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00184/0.00184, allocations: 107.9 kB / 217.7 MB, free: 8.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2155/0.2155, allocations: 37.97 MB / 294.8 MB, free: 9.598 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.236e-06/8.396e-06, allocations: 1.219 kB / 349.5 MB, free: 37.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1264, allocations: 48.71 MB / 398.2 MB, free: 5.66 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.999/8.126, allocations: 2.544 GB / 2.933 GB, free: 115.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/8.126, allocations: 71.28 kB / 2.933 GB, free: 115.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.2/11.33, allocations: 0.7784 GB / 3.712 GB, free: 17.12 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004475/11.33, allocations: 74.06 kB / 3.712 GB, free: 17.05 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.02142/11.35, allocations: 3.938 MB / 3.716 GB, free: 13.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.109e-05/11.35, allocations: 8.031 kB / 3.716 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008291/11.36, allocations: 0.8475 MB / 3.717 GB, free: 12.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007932/11.36, allocations: 2.159 MB / 3.719 GB, free: 10.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002546/11.37, allocations: 91.97 kB / 3.719 GB, free: 9.926 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/11.37, allocations: 116 kB / 3.719 GB, free: 9.812 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009988/11.38, allocations: 2.92 MB / 3.722 GB, free: 6.887 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/11.39, allocations: 2.93 MB / 3.725 GB, free: 3.754 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001155/11.39, allocations: 15.83 kB / 3.725 GB, free: 3.738 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009387/11.39, allocations: 4 kB / 3.725 GB, free: 3.734 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002426/11.39, allocations: 171.6 kB / 3.725 GB, free: 3.566 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5471/11.94, allocations: 109.9 MB / 3.832 GB, free: 34.24 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/11.94, allocations: 1.15 MB / 3.833 GB, free: 34.21 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/11.94, allocations: 1.003 MB / 3.834 GB, free: 34.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03843/11.98, allocations: 17.53 MB / 3.851 GB, free: 38.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00305/11.98, allocations: 1.237 MB / 3.853 GB, free: 38.38 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 7.394e-06/11.98, allocations: 0 / 3.853 GB, free: 38.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.02794/12.01, allocations: 8.194 MB / 3.861 GB, free: 36.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000427/12.01, allocations: 0.5112 MB / 3.861 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/12.01, allocations: 1.202 MB / 3.862 GB, free: 36.14 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004103/12.01, allocations: 25.7 kB / 3.862 GB, free: 36.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008661/12.01, allocations: 0.7852 MB / 3.863 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006439/12.01, allocations: 0.5235 MB / 3.864 GB, free: 35.49 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/12.01, allocations: 0 / 3.864 GB, free: 35.49 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002213/12.01, allocations: 392.1 kB / 3.864 GB, free: 35.18 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/12.02, allocations: 1.152 MB / 3.865 GB, free: 35.18 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/12.02, allocations: 1.596 MB / 3.867 GB, free: 34.67 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/12.03, allocations: 3.108 MB / 3.87 GB, free: 34.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.784e-05/12.03, allocations: 6.625 kB / 3.87 GB, free: 34.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.0199/12.05, allocations: 5.652 MB / 3.875 GB, free: 34.36 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002679/12.05, allocations: 4.451 MB / 3.88 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.442e-05/12.05, allocations: 18.36 kB / 3.88 GB, free: 29.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00386/12.06, allocations: 0.8607 MB / 3.88 GB, free: 29.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002154/12.06, allocations: 489.5 kB / 3.881 GB, free: 29.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004315/12.06, allocations: 3.521 MB / 3.884 GB, free: 27.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003066/12.07, allocations: 230.4 kB / 3.885 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/12.07, allocations: 107.5 kB / 3.885 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/12.07, allocations: 3.375 kB / 3.885 GB, free: 27.6 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01557/12.08, allocations: 4.539 MB / 3.889 GB, free: 27.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.347e-05/12.08, allocations: 14.91 kB / 3.889 GB, free: 27.47 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/12.08, allocations: 360.5 kB / 3.889 GB, free: 27.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/12.09, allocations: 499 kB / 3.89 GB, free: 27.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004708/12.09, allocations: 3.979 MB / 3.894 GB, free: 24.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00304/12.09, allocations: 213.3 kB / 3.894 GB, free: 24.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005852/12.09, allocations: 106.5 kB / 3.894 GB, free: 24.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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 (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001118/12.09, allocations: 228.8 kB / 3.894 GB, free: 24.45 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002392/12.1, allocations: 0.6205 MB / 3.895 GB, free: 24.36 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/12.11, allocations: 6.746 MB / 3.901 GB, free: 23.85 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.386e-05/12.11, allocations: 59.91 kB / 3.902 GB, free: 23.84 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/12.11, allocations: 0 / 3.902 GB, free: 23.84 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008216/12.12, allocations: 5.68 MB / 3.907 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01676/12.14, allocations: 9.232 MB / 3.916 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/12.14, allocations: 3.562 kB / 3.916 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/12.14, allocations: 267.8 kB / 3.916 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004403/12.14, allocations: 2.048 MB / 3.918 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002618/12.14, allocations: 47.97 kB / 3.918 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005145/12.15, allocations: 4.287 MB / 3.923 GB, free: 19.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/12.15, allocations: 0 / 3.923 GB, free: 19.82 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01231/12.16, allocations: 7.152 MB / 3.93 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002166/12.16, allocations: 0.6868 MB / 3.93 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009713/12.16, allocations: 19.89 kB / 3.93 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/12.17, allocations: 152.7 kB / 3.93 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/12.17, allocations: 117.2 kB / 3.931 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/12.17, allocations: 70.86 kB / 3.931 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003342/12.17, allocations: 1.096 MB / 3.932 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01954/12.19, allocations: 2.706 MB / 3.934 GB, free: 12.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 37 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01634/12.21, allocations: 3.058 MB / 3.937 GB, free: 10.08 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01111/12.22, allocations: 5.576 MB / 3.943 GB, free: 6.762 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/12.22, allocations: 0 / 3.943 GB, free: 6.762 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003807/12.22, allocations: 2.669 MB / 3.945 GB, free: 5.438 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005142/12.23, allocations: 0.7357 MB / 3.946 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3741/12.6, allocations: 20 MB / 3.966 GB, free: 91.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002181/12.6, allocations: 2.316 MB / 3.968 GB, free: 90.6 MB / 0.4948 GB Notification: Performance of SimCode: time 2.244e-06/12.6, allocations: 0 / 3.968 GB, free: 90.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.1508/12.75, allocations: 91.67 MB / 4.057 GB, free: 85.78 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)