Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") [: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.004626/0.004626, allocations: 185.7 kB / 7.458 MB, free: 2.512 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.653/1.653, allocations: 194.2 MB / 202.1 MB, free: 8.762 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.001798/0.001798, allocations: 117.6 kB / 247.1 MB, free: 6.293 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.2348/0.2348, allocations: 39.94 MB / 331.9 MB, free: 4.938 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.039e-05/1.093e-05, allocations: 0 / 392.8 MB, free: 75.92 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1519, allocations: 54.86 MB / 447.6 MB, free: 21.03 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.88/2.032, allocations: 0.6543 GB / 1.091 GB, free: 101.9 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/2.032, allocations: 75.14 kB / 1.092 GB, free: 101.9 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.325/4.357, allocations: 0.6 GB / 1.692 GB, free: 32.87 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003251/4.358, allocations: 62.17 kB / 1.692 GB, free: 32.86 MB / 490.7 MB 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 0.01327/4.371, allocations: 3.19 MB / 1.695 GB, free: 31.04 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/4.371, allocations: 8.719 kB / 1.695 GB, free: 31.04 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00423/4.375, allocations: 466.2 kB / 1.695 GB, free: 30.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005784/4.381, allocations: 2.009 MB / 1.697 GB, free: 29.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.282e-05/4.381, allocations: 61.3 kB / 1.697 GB, free: 29.51 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003363/4.382, allocations: 108.7 kB / 1.697 GB, free: 29.41 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003815/4.385, allocations: 2.261 MB / 1.7 GB, free: 27.38 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003645/4.389, allocations: 2.511 MB / 1.702 GB, free: 25.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.343e-05/4.389, allocations: 11.94 kB / 1.702 GB, free: 25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002133/4.389, allocations: 4 kB / 1.702 GB, free: 25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/4.39, allocations: 167.1 kB / 1.702 GB, free: 24.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/4.404, allocations: 11.92 MB / 1.714 GB, free: 12.29 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/4.406, allocations: 1.109 MB / 1.715 GB, free: 11.16 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/4.407, allocations: 1.063 MB / 1.716 GB, free: 10.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009029/4.408, allocations: 464.3 kB / 1.716 GB, free: 9.594 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001449/4.409, allocations: 1.146 MB / 1.717 GB, free: 8.422 MB / 490.7 MB Notification: Performance of pre-optimization done (n=167): time 3.427e-06/4.409, allocations: 0 / 1.717 GB, free: 8.422 MB / 490.7 MB Notification: Performance of matching and sorting (n=192): time 0.04097/4.45, allocations: 10.38 MB / 1.728 GB, free: 14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/4.45, allocations: 261.3 kB / 1.728 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/4.452, allocations: 1.106 MB / 1.729 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002313/4.452, allocations: 29.7 kB / 1.729 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006533/4.453, allocations: 0.6959 MB / 1.73 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006665/4.454, allocations: 0.6236 MB / 1.73 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/4.454, allocations: 0 / 1.73 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002064/4.454, allocations: 394.3 kB / 1.731 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/4.456, allocations: 1.047 MB / 1.732 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002019/4.458, allocations: 1.52 MB / 1.733 GB, free: 8.062 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/4.468, allocations: 2.479 MB / 1.736 GB, free: 5.582 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/4.468, allocations: 4 kB / 1.736 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.01446/4.483, allocations: 4.276 MB / 1.74 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.2624/4.745, allocations: 4.709 MB / 1.744 GB, free: 78.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/4.745, allocations: 11.16 kB / 1.744 GB, free: 78.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007965/4.746, allocations: 281.7 kB / 1.745 GB, free: 78.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002914/4.749, allocations: 0.5599 MB / 1.745 GB, free: 78.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/4.75, allocations: 3.071 MB / 1.748 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002815/4.753, allocations: 171.8 kB / 1.748 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003345/4.754, allocations: 203.3 kB / 1.749 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/4.754, allocations: 4.938 kB / 1.749 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01184/4.765, allocations: 3.737 MB / 1.752 GB, free: 76.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/4.765, allocations: 12.75 kB / 1.752 GB, free: 76.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006213/4.766, allocations: 286.2 kB / 1.752 GB, free: 76.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/4.768, allocations: 0.5469 MB / 1.753 GB, free: 76.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/4.77, allocations: 3.064 MB / 1.756 GB, free: 73.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/4.772, allocations: 169.6 kB / 1.756 GB, free: 73.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003038/4.773, allocations: 201.4 kB / 1.756 GB, free: 73.51 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (262): * Single equations (assignments): 255 * 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.0007/4.773, allocations: 234.3 kB / 1.757 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00035/4.774, allocations: 203 kB / 1.757 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01673/4.791, allocations: 4.792 MB / 1.761 GB, free: 73.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/4.791, allocations: 18.78 kB / 1.761 GB, free: 73.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/4.791, allocations: 5.719 kB / 1.761 GB, free: 73.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01297/4.804, allocations: 3.833 MB / 1.765 GB, free: 72.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02007/4.824, allocations: 7.339 MB / 1.772 GB, free: 71.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/4.824, allocations: 5.062 kB / 1.772 GB, free: 71.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/4.826, allocations: 449.1 kB / 1.773 GB, free: 71.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000776/4.827, allocations: 292.9 kB / 1.773 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002361/4.827, allocations: 84.91 kB / 1.773 GB, free: 71.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002127/4.829, allocations: 3.732 MB / 1.777 GB, free: 68.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/4.829, allocations: 11.16 kB / 1.777 GB, free: 68.47 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01479/4.844, allocations: 5.742 MB / 1.782 GB, free: 67.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/4.845, allocations: 0.5264 MB / 1.783 GB, free: 67.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004705/4.846, allocations: 26.47 kB / 1.783 GB, free: 67.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/4.847, allocations: 100.3 kB / 1.783 GB, free: 67.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/4.848, allocations: 170.1 kB / 1.783 GB, free: 67.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002722/4.848, allocations: 176.7 kB / 1.783 GB, free: 67.31 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001158/4.849, allocations: 0.8025 MB / 1.784 GB, free: 67.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007843/4.857, allocations: 1.885 MB / 1.786 GB, free: 67.2 MB / 0.4948 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 (198): * Single equations (assignments): 191 * 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.006094/4.863, allocations: 2.856 MB / 1.789 GB, free: 66.89 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006207/4.869, allocations: 4.231 MB / 1.793 GB, free: 66.71 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/4.869, allocations: 5.906 kB / 1.793 GB, free: 66.71 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002054/4.871, allocations: 1.507 MB / 1.794 GB, free: 66.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004557/4.876, allocations: 0.9004 MB / 1.795 GB, free: 66.53 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/4.892, allocations: 5.866 MB / 1.801 GB, free: 65.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003622/4.895, allocations: 2.223 MB / 1.803 GB, free: 64.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.102e-06/4.895, allocations: 0 / 1.803 GB, free: 64.86 MB / 0.4948 GB Notification: Performance of Templates: time 0.1166/5.012, allocations: 77.98 MB / 1.879 GB, free: 58.32 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)