Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001202/0.001202, allocations: 205.6 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00114/0.00114, allocations: 94.14 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2761/0.2761, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.151e-05/1.155e-05, allocations: 4 kB / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1613, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.852/2.014, allocations: 0.5618 GB / 1.066 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/2.014, allocations: 71.97 kB / 1.066 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.64/4.654, allocations: 0.5627 GB / 1.628 GB, free: 47.28 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000243/4.654, allocations: 63.45 kB / 1.628 GB, free: 47.27 MB / 0.5417 GB 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.01245/4.667, allocations: 2.96 MB / 1.631 GB, free: 46.1 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/4.667, allocations: 8.969 kB / 1.631 GB, free: 46.1 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004048/4.671, allocations: 460 kB / 1.632 GB, free: 45.97 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006303/4.677, allocations: 2.017 MB / 1.634 GB, free: 45.56 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.258e-05/4.677, allocations: 63.84 kB / 1.634 GB, free: 45.56 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004351/4.678, allocations: 100.4 kB / 1.634 GB, free: 45.56 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004081/4.682, allocations: 2.281 MB / 1.636 GB, free: 45.55 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004059/4.686, allocations: 2.543 MB / 1.638 GB, free: 45.1 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.275e-05/4.686, allocations: 10.16 kB / 1.638 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/4.686, allocations: 9.25 kB / 1.639 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00017/4.686, allocations: 162.2 kB / 1.639 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01695/4.703, allocations: 12.11 MB / 1.65 GB, free: 38.18 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/4.705, allocations: 1.133 MB / 1.652 GB, free: 38.15 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/4.707, allocations: 1.091 MB / 1.653 GB, free: 38.14 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008742/4.707, allocations: 0.5094 MB / 1.653 GB, free: 37.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00178/4.709, allocations: 1.28 MB / 1.654 GB, free: 37.5 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=167): time 4.458e-06/4.709, allocations: 0 / 1.654 GB, free: 37.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.04317/4.752, allocations: 9.903 MB / 1.664 GB, free: 36.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/4.753, allocations: 361.3 kB / 1.664 GB, free: 36.14 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/4.755, allocations: 1.115 MB / 1.666 GB, free: 35.97 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005813/4.755, allocations: 25.7 kB / 1.666 GB, free: 35.94 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006535/4.756, allocations: 0.6854 MB / 1.666 GB, free: 35.54 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007412/4.757, allocations: 0.6244 MB / 1.667 GB, free: 35.13 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/4.757, allocations: 0 / 1.667 GB, free: 35.13 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001561/4.757, allocations: 398.9 kB / 1.667 GB, free: 34.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/4.759, allocations: 1.059 MB / 1.668 GB, free: 34.82 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/4.76, allocations: 1.531 MB / 1.67 GB, free: 34.36 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/4.771, allocations: 2.349 MB / 1.672 GB, free: 34.33 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.723e-05/4.771, allocations: 12.66 kB / 1.672 GB, free: 34.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01539/4.786, allocations: 4.157 MB / 1.676 GB, free: 34.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001267/4.788, allocations: 4.186 MB / 1.68 GB, free: 29.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/4.788, allocations: 11.39 kB / 1.68 GB, free: 29.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000822/4.788, allocations: 280.8 kB / 1.68 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/4.791, allocations: 0.5617 MB / 1.681 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/4.793, allocations: 3.064 MB / 1.684 GB, free: 27.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/4.797, allocations: 177 kB / 1.684 GB, free: 27.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005925/4.798, allocations: 202.1 kB / 1.684 GB, free: 27.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/4.798, allocations: 5.562 kB / 1.684 GB, free: 27.21 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01352/4.811, allocations: 3.605 MB / 1.688 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.384e-05/4.811, allocations: 17.12 kB / 1.688 GB, free: 27.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006679/4.812, allocations: 280.3 kB / 1.688 GB, free: 27.08 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002491/4.814, allocations: 0.5543 MB / 1.689 GB, free: 27.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/4.816, allocations: 3.061 MB / 1.692 GB, free: 24.49 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003139/4.819, allocations: 171 kB / 1.692 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003862/4.82, allocations: 203.7 kB / 1.692 GB, free: 24.48 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (258): * Single equations (assignments): 251 * 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.001074/4.821, allocations: 238.5 kB / 1.692 GB, free: 24.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005021/4.821, allocations: 199.9 kB / 1.692 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01981/4.841, allocations: 6.335 MB / 1.699 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/4.841, allocations: 21.69 kB / 1.699 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/4.841, allocations: 3.906 kB / 1.699 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01394/4.855, allocations: 3.837 MB / 1.702 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02393/4.879, allocations: 7.397 MB / 1.71 GB, free: 22.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/4.879, allocations: 6.844 kB / 1.71 GB, free: 22.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002268/4.882, allocations: 454.6 kB / 1.71 GB, free: 22.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008026/4.883, allocations: 297.6 kB / 1.71 GB, free: 22.44 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002912/4.883, allocations: 87.36 kB / 1.71 GB, free: 22.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002582/4.885, allocations: 3.74 MB / 1.714 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.474e-05/4.885, allocations: 9.562 kB / 1.714 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01882/4.904, allocations: 5.786 MB / 1.72 GB, free: 18.09 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002214/4.907, allocations: 0.5254 MB / 1.72 GB, free: 17.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006722/4.907, allocations: 25.84 kB / 1.72 GB, free: 17.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001901/4.909, allocations: 109.8 kB / 1.72 GB, free: 17.89 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004096/4.91, allocations: 166.9 kB / 1.721 GB, free: 17.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004771/4.91, allocations: 181.4 kB / 1.721 GB, free: 17.88 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001997/4.912, allocations: 0.8067 MB / 1.722 GB, free: 17.77 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01187/4.924, allocations: 1.748 MB / 1.723 GB, free: 17.56 MB / 0.5417 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 (200): * Single equations (assignments): 193 * 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.007548/4.932, allocations: 2.544 MB / 1.726 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008403/4.94, allocations: 4.263 MB / 1.73 GB, free: 32.83 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.131e-05/4.94, allocations: 3.031 kB / 1.73 GB, free: 32.83 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002966/4.943, allocations: 1.519 MB / 1.731 GB, free: 32.36 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007317/4.95, allocations: 0.8954 MB / 1.732 GB, free: 32.21 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/4.962, allocations: 4.319 MB / 1.736 GB, free: 29.79 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003564/4.966, allocations: 2.343 MB / 1.739 GB, free: 27.89 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/4.966, allocations: 0 / 1.739 GB, free: 27.89 MB / 0.5573 GB Notification: Performance of Templates: time 0.5344/5.5, allocations: 77.44 MB / 1.814 GB, free: 114.2 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)