Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") [: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.2+maint.om/package.mo): time 0.003412/0.003412, allocations: 182.5 kB / 7.458 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.505/1.505, allocations: 194.2 MB / 202.1 MB, free: 8.648 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002003/0.002003, allocations: 122.3 kB / 247.1 MB, free: 6.402 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2054/0.2054, allocations: 39.95 MB / 331.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.486e-06, allocations: 0 / 392.8 MB, free: 75.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1328, allocations: 54.87 MB / 447.7 MB, free: 20.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.739/5.872, allocations: 2.656 GB / 3.093 GB, free: 115.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/5.872, allocations: 75.95 kB / 3.093 GB, free: 115.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.577/8.449, allocations: 0.8587 GB / 3.952 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002888/8.45, allocations: 63.84 kB / 3.952 GB, free: 14.56 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.0159/8.466, allocations: 3.83 MB / 3.955 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/8.466, allocations: 8.031 kB / 3.955 GB, free: 10.67 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006938/8.473, allocations: 0.8166 MB / 3.956 GB, free: 9.852 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007235/8.48, allocations: 1.974 MB / 3.958 GB, free: 7.855 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002573/8.48, allocations: 87.97 kB / 3.958 GB, free: 7.77 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009818/8.481, allocations: 104 kB / 3.958 GB, free: 7.668 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005761/8.487, allocations: 2.401 MB / 3.961 GB, free: 5.266 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006532/8.493, allocations: 2.626 MB / 3.963 GB, free: 2.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.483e-05/8.494, allocations: 7.938 kB / 3.963 GB, free: 2.473 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004151/8.494, allocations: 4 kB / 3.963 GB, free: 2.469 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002162/8.494, allocations: 159.2 kB / 3.963 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5329/9.027, allocations: 109.6 MB / 4.07 GB, free: 29.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002003/9.029, allocations: 1.026 MB / 4.071 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001486/9.031, allocations: 0.9069 MB / 4.072 GB, free: 29.67 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03728/9.068, allocations: 17.53 MB / 4.089 GB, free: 34.01 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002305/9.07, allocations: 1.119 MB / 4.09 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=136): time 5.871e-06/9.07, allocations: 3.156 kB / 4.09 GB, free: 33.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=148): time 0.02172/9.092, allocations: 7.485 MB / 4.098 GB, free: 32.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002098/9.092, allocations: 365.1 kB / 4.098 GB, free: 31.89 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/9.094, allocations: 1.078 MB / 4.099 GB, free: 31.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001995/9.094, allocations: 25.7 kB / 4.099 GB, free: 31.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006079/9.095, allocations: 0.728 MB / 4.1 GB, free: 31.37 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005251/9.095, allocations: 488.7 kB / 4.1 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/9.096, allocations: 0 / 4.1 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000209/9.096, allocations: 383.7 kB / 4.101 GB, free: 30.81 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/9.097, allocations: 1.005 MB / 4.102 GB, free: 30.81 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/9.099, allocations: 1.402 MB / 4.103 GB, free: 30.37 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/9.11, allocations: 2.91 MB / 4.106 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.969e-05/9.11, allocations: 7.125 kB / 4.106 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01825/9.129, allocations: 5.26 MB / 4.111 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001806/9.13, allocations: 4.25 MB / 4.115 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.475e-05/9.131, allocations: 11.31 kB / 4.115 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002426/9.133, allocations: 0.568 MB / 4.116 GB, free: 25.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00196/9.135, allocations: 447.9 kB / 4.116 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003191/9.138, allocations: 3.091 MB / 4.119 GB, free: 23.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002589/9.141, allocations: 229.4 kB / 4.119 GB, free: 23.51 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004251/9.141, allocations: 108.3 kB / 4.12 GB, free: 23.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/9.141, allocations: 5.594 kB / 4.12 GB, free: 23.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01458/9.156, allocations: 4.112 MB / 4.124 GB, free: 23.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-05/9.156, allocations: 12.84 kB / 4.124 GB, free: 23.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004668/9.156, allocations: 190.1 kB / 4.124 GB, free: 23.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/9.158, allocations: 469.1 kB / 4.124 GB, free: 23.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/9.16, allocations: 1.919 MB / 4.126 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/9.162, allocations: 213.4 kB / 4.126 GB, free: 37.77 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003561/9.162, allocations: 97.14 kB / 4.126 GB, free: 37.77 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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_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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007179/9.163, allocations: 225.1 kB / 4.127 GB, free: 37.6 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002158/9.165, allocations: 0.6115 MB / 4.127 GB, free: 37.52 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/9.176, allocations: 6.311 MB / 4.133 GB, free: 37 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/9.176, allocations: 51.17 kB / 4.133 GB, free: 37 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/9.176, allocations: 3.516 kB / 4.133 GB, free: 37 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006747/9.182, allocations: 5.294 MB / 4.139 GB, free: 36.29 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/9.195, allocations: 8.666 MB / 4.147 GB, free: 35.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/9.195, allocations: 7.469 kB / 4.147 GB, free: 35.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/9.197, allocations: 261.3 kB / 4.147 GB, free: 35.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/9.199, allocations: 1.323 MB / 4.149 GB, free: 35.36 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/9.199, allocations: 44.34 kB / 4.149 GB, free: 35.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003159/9.202, allocations: 3.622 MB / 4.152 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/9.202, allocations: 3.969 kB / 4.152 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009517/9.212, allocations: 6.644 MB / 4.159 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001535/9.214, allocations: 0.6387 MB / 4.159 GB, free: 32.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000764/9.214, allocations: 24.14 kB / 4.159 GB, free: 32.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/9.216, allocations: 148.5 kB / 4.159 GB, free: 32.43 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/9.216, allocations: 109.2 kB / 4.16 GB, free: 32.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001754/9.217, allocations: 65.03 kB / 4.16 GB, free: 32.43 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001808/9.218, allocations: 1.013 MB / 4.161 GB, free: 32.32 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01067/9.229, allocations: 2.608 MB / 4.163 GB, free: 30.86 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.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,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 (139): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01397/9.243, allocations: 3.13 MB / 4.166 GB, free: 28.75 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008943/9.252, allocations: 4.883 MB / 4.171 GB, free: 25.96 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/9.252, allocations: 2.719 kB / 4.171 GB, free: 25.96 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003451/9.256, allocations: 2.609 MB / 4.174 GB, free: 24.68 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004953/9.261, allocations: 0.7548 MB / 4.174 GB, free: 24.26 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0489/9.31, allocations: 19.65 MB / 4.193 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002929/9.313, allocations: 2.212 MB / 4.196 GB, free: 10.98 MB / 0.5573 GB Notification: Performance of SimCode: time 1.303e-06/9.313, allocations: 0 / 4.196 GB, free: 10.98 MB / 0.5573 GB Notification: Performance of Templates: time 0.377/9.69, allocations: 86.81 MB / 4.28 GB, free: 106.7 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)