Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") [: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.007197/0.007198, allocations: 175.2 kB / 7.446 MB, free: 2.328 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.413/1.413, allocations: 170.6 MB / 178.4 MB, free: 15.85 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.001847/0.001847, allocations: 115.8 kB / 217.7 MB, free: 8.633 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.1909/0.1909, allocations: 37.97 MB / 294.8 MB, free: 9.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.674e-06/7.704e-06, allocations: 0 / 349.5 MB, free: 37.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1243, allocations: 48.72 MB / 398.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.738/7.863, allocations: 2.545 GB / 2.933 GB, free: 115.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003618/7.863, allocations: 70.16 kB / 2.933 GB, free: 115.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.333/11.2, allocations: 0.7719 GB / 3.705 GB, free: 15.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002557/11.2, allocations: 67.77 kB / 3.705 GB, free: 15.03 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.01871/11.21, allocations: 3.942 MB / 3.709 GB, free: 11.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/11.21, allocations: 12.03 kB / 3.709 GB, free: 11.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007527/11.22, allocations: 0.8398 MB / 3.71 GB, free: 10.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007427/11.23, allocations: 2.088 MB / 3.712 GB, free: 8.066 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/11.23, allocations: 83.98 kB / 3.712 GB, free: 7.984 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008472/11.23, allocations: 123.9 kB / 3.712 GB, free: 7.863 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005409/11.24, allocations: 2.92 MB / 3.715 GB, free: 4.938 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004518/11.24, allocations: 2.933 MB / 3.718 GB, free: 1.801 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.516e-05/11.24, allocations: 7.938 kB / 3.718 GB, free: 1.793 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002353/11.24, allocations: 4 kB / 3.718 GB, free: 1.789 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001677/11.24, allocations: 171.6 kB / 3.718 GB, free: 1.621 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5974/11.84, allocations: 109.9 MB / 3.826 GB, free: 32.54 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002039/11.84, allocations: 1.16 MB / 3.827 GB, free: 32.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/11.84, allocations: 1.001 MB / 3.828 GB, free: 32.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03905/11.88, allocations: 17.54 MB / 3.845 GB, free: 36.85 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003962/11.89, allocations: 1.233 MB / 3.846 GB, free: 36.69 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 1.585e-05/11.89, allocations: 1.125 kB / 3.846 GB, free: 36.69 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.03165/11.92, allocations: 8.197 MB / 3.854 GB, free: 35.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003358/11.92, allocations: 0.5098 MB / 3.854 GB, free: 34.61 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003038/11.92, allocations: 1.203 MB / 3.856 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006151/11.92, allocations: 33.2 kB / 3.856 GB, free: 34.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001049/11.92, allocations: 0.7806 MB / 3.856 GB, free: 34.06 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001088/11.92, allocations: 0.52 MB / 3.857 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004077/11.92, allocations: 0 / 3.857 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000288/11.92, allocations: 391.7 kB / 3.857 GB, free: 33.48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00222/11.93, allocations: 1.148 MB / 3.858 GB, free: 33.48 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002951/11.93, allocations: 1.609 MB / 3.86 GB, free: 32.97 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01519/11.94, allocations: 3.091 MB / 3.863 GB, free: 32.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.413e-05/11.94, allocations: 6.125 kB / 3.863 GB, free: 32.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02316/11.97, allocations: 5.663 MB / 3.869 GB, free: 32.65 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002375/11.97, allocations: 4.444 MB / 3.873 GB, free: 28.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.672e-05/11.97, allocations: 19.77 kB / 3.873 GB, free: 28.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004161/11.97, allocations: 0.8652 MB / 3.874 GB, free: 28.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/11.98, allocations: 488.4 kB / 3.874 GB, free: 28.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004661/11.98, allocations: 3.527 MB / 3.878 GB, free: 25.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003582/11.99, allocations: 228.2 kB / 3.878 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007738/11.99, allocations: 103.5 kB / 3.878 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/11.99, allocations: 3.781 kB / 3.878 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01881/12.01, allocations: 4.531 MB / 3.882 GB, free: 25.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/12.01, allocations: 18.36 kB / 3.882 GB, free: 25.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/12.01, allocations: 351.5 kB / 3.883 GB, free: 25.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002686/12.01, allocations: 0.4964 MB / 3.883 GB, free: 25.72 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005409/12.02, allocations: 3.98 MB / 3.887 GB, free: 22.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/12.02, allocations: 212.3 kB / 3.887 GB, free: 22.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008141/12.02, allocations: 106.1 kB / 3.887 GB, free: 22.91 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.001514/12.02, allocations: 226.2 kB / 3.888 GB, free: 22.75 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00282/12.02, allocations: 0.6239 MB / 3.888 GB, free: 22.65 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.015/12.04, allocations: 6.749 MB / 3.895 GB, free: 22.13 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.384e-05/12.04, allocations: 53.97 kB / 3.895 GB, free: 22.13 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/12.04, allocations: 0 / 3.895 GB, free: 22.13 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008563/12.05, allocations: 5.681 MB / 3.9 GB, free: 21.43 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01617/12.06, allocations: 9.228 MB / 3.909 GB, free: 20.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/12.06, allocations: 4.031 kB / 3.909 GB, free: 20.56 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/12.07, allocations: 273.7 kB / 3.91 GB, free: 20.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004205/12.07, allocations: 2.047 MB / 3.912 GB, free: 20.45 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002706/12.07, allocations: 46.77 kB / 3.912 GB, free: 20.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3086/12.38, allocations: 4.284 MB / 3.916 GB, free: 95.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.236e-05/12.38, allocations: 6.219 kB / 3.916 GB, free: 95.62 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01181/12.39, allocations: 7.163 MB / 3.923 GB, free: 95.18 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001975/12.39, allocations: 0.683 MB / 3.924 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005663/12.39, allocations: 20.06 kB / 3.924 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/12.39, allocations: 151.9 kB / 3.924 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/12.39, allocations: 119.2 kB / 3.924 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001605/12.39, allocations: 74.97 kB / 3.924 GB, free: 95.09 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0017/12.4, allocations: 1.096 MB / 3.925 GB, free: 94.94 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01286/12.41, allocations: 2.698 MB / 3.928 GB, free: 94.94 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.01499/12.42, allocations: 3.052 MB / 3.931 GB, free: 94.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009656/12.43, allocations: 5.57 MB / 3.936 GB, free: 94.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/12.43, allocations: 2.5 kB / 3.936 GB, free: 94.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003421/12.44, allocations: 2.671 MB / 3.939 GB, free: 94.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005209/12.44, allocations: 0.7309 MB / 3.939 GB, free: 94.29 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04953/12.49, allocations: 19.58 MB / 3.959 GB, free: 93.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002691/12.5, allocations: 2.317 MB / 3.961 GB, free: 92.51 MB / 0.4948 GB Notification: Performance of SimCode: time 2.424e-06/12.5, allocations: 0.875 kB / 3.961 GB, free: 92.51 MB / 0.4948 GB Notification: Performance of Templates: time 0.149/12.64, allocations: 91.61 MB / 4.05 GB, free: 86.85 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1)