Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") [: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.003094/0.003094, allocations: 173.1 kB / 7.446 MB, free: 2.512 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.549/1.549, allocations: 170.6 MB / 178.4 MB, free: 15.81 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.001743/0.001743, allocations: 99.94 kB / 217.7 MB, free: 8.586 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.2051/0.2051, allocations: 37.98 MB / 294.8 MB, free: 9.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.035e-06/8.065e-06, allocations: 1.094 kB / 349.5 MB, free: 37.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1187, allocations: 48.71 MB / 398.2 MB, free: 5.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.843/7.962, allocations: 2.549 GB / 2.938 GB, free: 115.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/7.963, allocations: 81.59 kB / 2.938 GB, free: 115.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.653/11.62, allocations: 0.8722 GB / 3.81 GB, free: 32.11 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001978/11.62, allocations: 66.09 kB / 3.81 GB, free: 32.09 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01519/11.63, allocations: 3.91 MB / 3.814 GB, free: 30.31 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/11.63, allocations: 10.41 kB / 3.814 GB, free: 30.31 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007458/11.64, allocations: 0.8759 MB / 3.815 GB, free: 30.17 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006289/11.64, allocations: 2.08 MB / 3.817 GB, free: 29.72 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001864/11.65, allocations: 91.94 kB / 3.817 GB, free: 29.72 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006658/11.65, allocations: 123.4 kB / 3.817 GB, free: 29.71 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005088/11.65, allocations: 2.731 MB / 3.82 GB, free: 29.7 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/11.66, allocations: 2.931 MB / 3.822 GB, free: 29.19 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.431e-05/11.66, allocations: 5.5 kB / 3.822 GB, free: 29.19 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/11.66, allocations: 9.531 kB / 3.822 GB, free: 29.19 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/11.66, allocations: 177.9 kB / 3.823 GB, free: 29.18 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5653/12.22, allocations: 111 MB / 3.931 GB, free: 87.03 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00178/12.22, allocations: 1.101 MB / 3.932 GB, free: 87.01 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/12.22, allocations: 0.9722 MB / 3.933 GB, free: 87 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03344/12.26, allocations: 17.54 MB / 3.95 GB, free: 76.01 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002219/12.26, allocations: 1.191 MB / 3.951 GB, free: 75.85 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=149): time 3.356e-06/12.26, allocations: 0 / 3.951 GB, free: 75.85 MB / 0.4949 GB Notification: Performance of matching and sorting (n=165): time 0.02241/12.28, allocations: 8.011 MB / 3.959 GB, free: 74.39 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/12.28, allocations: 370.1 kB / 3.959 GB, free: 73.98 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001743/12.28, allocations: 1.148 MB / 3.961 GB, free: 73.81 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0001626/12.28, allocations: 31.19 kB / 3.961 GB, free: 73.78 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007278/12.29, allocations: 0.7993 MB / 3.961 GB, free: 73.43 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005441/12.29, allocations: 0.5364 MB / 3.962 GB, free: 73.15 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/12.29, allocations: 0 / 3.962 GB, free: 73.15 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0001325/12.29, allocations: 391.8 kB / 3.962 GB, free: 72.84 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/12.29, allocations: 1.092 MB / 3.963 GB, free: 72.84 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/12.29, allocations: 1.54 MB / 3.965 GB, free: 72.35 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01203/12.3, allocations: 3.021 MB / 3.968 GB, free: 72.33 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.002e-05/12.3, allocations: 6.531 kB / 3.968 GB, free: 72.33 MB / 0.4949 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02011/12.32, allocations: 5.378 MB / 3.973 GB, free: 72.13 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.001629/12.32, allocations: 4.873 MB / 3.978 GB, free: 67.15 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.137e-05/12.32, allocations: 11.78 kB / 3.978 GB, free: 67.15 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006802/12.32, allocations: 232.5 kB / 3.978 GB, free: 67.12 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002325/12.33, allocations: 0.5247 MB / 3.979 GB, free: 67.12 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/12.33, allocations: 2.488 MB / 3.981 GB, free: 65.04 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/12.33, allocations: 266.1 kB / 3.981 GB, free: 65.03 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/12.33, allocations: 107.2 kB / 3.981 GB, free: 65.03 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/12.33, allocations: 9.844 kB / 3.981 GB, free: 65.03 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01616/12.35, allocations: 4.305 MB / 3.986 GB, free: 64.96 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/12.35, allocations: 11 kB / 3.986 GB, free: 64.96 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007992/12.35, allocations: 232.3 kB / 3.986 GB, free: 64.93 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/12.35, allocations: 0.519 MB / 3.986 GB, free: 64.93 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/12.35, allocations: 2.486 MB / 3.989 GB, free: 62.85 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003311/12.36, allocations: 245.4 kB / 3.989 GB, free: 62.84 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005244/12.36, allocations: 101.9 kB / 3.989 GB, free: 62.84 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,splitter.medium.phase,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 (247): * Single equations (assignments): 241 * 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.001046/12.36, allocations: 230.3 kB / 3.989 GB, free: 62.67 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002654/12.36, allocations: 0.655 MB / 3.99 GB, free: 62.58 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/12.37, allocations: 6.024 MB / 3.996 GB, free: 62.12 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.885e-05/12.37, allocations: 50.72 kB / 3.996 GB, free: 62.12 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/12.37, allocations: 0 / 3.996 GB, free: 62.12 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007395/12.38, allocations: 4.987 MB / 4.001 GB, free: 61.43 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/12.39, allocations: 8.878 MB / 4.009 GB, free: 60.29 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/12.39, allocations: 1.125 kB / 4.009 GB, free: 60.29 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/12.4, allocations: 336.5 kB / 4.01 GB, free: 60.29 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000955/12.4, allocations: 321.4 kB / 4.01 GB, free: 60.25 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/12.4, allocations: 49.62 kB / 4.01 GB, free: 60.25 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001533/12.4, allocations: 2.661 MB / 4.013 GB, free: 58.16 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/12.4, allocations: 0 / 4.013 GB, free: 58.16 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01144/12.41, allocations: 6.685 MB / 4.019 GB, free: 57.61 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002269/12.41, allocations: 0.6685 MB / 4.02 GB, free: 57.38 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00092/12.41, allocations: 27.94 kB / 4.02 GB, free: 57.38 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/12.42, allocations: 180.3 kB / 4.02 GB, free: 57.37 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/12.42, allocations: 125.5 kB / 4.02 GB, free: 57.37 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002165/12.42, allocations: 69 kB / 4.02 GB, free: 57.37 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.002397/12.42, allocations: 1.057 MB / 4.021 GB, free: 57.26 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01819/12.44, allocations: 2.719 MB / 4.024 GB, free: 57.17 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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,splitter.medium.phase) * 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 (173): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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 Backend phase and start with SimCode phase: time 0.01796/12.46, allocations: 3.198 MB / 4.027 GB, free: 56.87 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01074/12.47, allocations: 5.16 MB / 4.032 GB, free: 56.68 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/12.47, allocations: 7.844 kB / 4.032 GB, free: 56.68 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.004233/12.47, allocations: 2.605 MB / 4.035 GB, free: 56.61 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006176/12.48, allocations: 0.8032 MB / 4.035 GB, free: 56.6 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0525/12.53, allocations: 19.48 MB / 4.054 GB, free: 55.41 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004435/12.53, allocations: 2.299 MB / 4.057 GB, free: 54.62 MB / 0.4949 GB Notification: Performance of SimCode: time 1.603e-06/12.53, allocations: 5.031 kB / 4.057 GB, free: 54.61 MB / 0.4949 GB Notification: Performance of Templates: time 0.4784/13.01, allocations: 90.01 MB / 4.145 GB, free: 89.75 MB / 0.4949 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)