Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|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.BranchingPipes16") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|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.BranchingPipes16") [: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.001352/0.001352, allocations: 205.1 kB / 8.543 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.478/1.478, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001592/0.001592, allocations: 95.05 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2676/0.2676, allocations: 45.15 MB / 383.4 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.314e-05/1.318e-05, allocations: 7.938 kB / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1687, allocations: 63.23 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.861/2.03, allocations: 0.5617 GB / 1.065 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004036/2.03, allocations: 79.95 kB / 1.065 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.052/4.083, allocations: 0.5053 GB / 1.571 GB, free: 3.75 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000245/4.083, allocations: 68.08 kB / 1.571 GB, free: 3.684 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.0139/4.097, allocations: 2.823 MB / 1.574 GB, free: 0.793 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/4.097, allocations: 8.031 kB / 1.574 GB, free: 0.7852 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004505/4.101, allocations: 448.7 kB / 1.574 GB, free: 352 kB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4162/4.518, allocations: 1.941 MB / 1.576 GB, free: 94.97 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/4.518, allocations: 53.81 kB / 1.576 GB, free: 94.97 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008725/4.519, allocations: 106.4 kB / 1.576 GB, free: 94.97 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004453/4.523, allocations: 2.196 MB / 1.578 GB, free: 94.96 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00413/4.527, allocations: 2.43 MB / 1.581 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.13e-05/4.527, allocations: 12.62 kB / 1.581 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002238/4.528, allocations: 7.812 kB / 1.581 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001919/4.528, allocations: 161.8 kB / 1.581 GB, free: 94.53 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01817/4.546, allocations: 11.87 MB / 1.592 GB, free: 87.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/4.548, allocations: 1.043 MB / 1.593 GB, free: 87.68 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/4.549, allocations: 1.009 MB / 1.594 GB, free: 87.66 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008978/4.55, allocations: 0.5116 MB / 1.595 GB, free: 87.19 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001783/4.552, allocations: 1.181 MB / 1.596 GB, free: 87.03 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=153): time 3.757e-06/4.552, allocations: 3.062 kB / 1.596 GB, free: 87.03 MB / 0.5417 GB Notification: Performance of matching and sorting (n=173): time 0.0431/4.595, allocations: 9.085 MB / 1.605 GB, free: 86.22 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/4.595, allocations: 362.4 kB / 1.605 GB, free: 85.81 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002362/4.598, allocations: 1.075 MB / 1.606 GB, free: 85.65 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006798/4.598, allocations: 29.08 kB / 1.606 GB, free: 85.62 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008061/4.599, allocations: 0.67 MB / 1.607 GB, free: 85.32 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008523/4.6, allocations: 0.5626 MB / 1.608 GB, free: 85.03 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/4.6, allocations: 0 / 1.608 GB, free: 85.03 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001909/4.6, allocations: 381.4 kB / 1.608 GB, free: 84.73 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001737/4.602, allocations: 1.013 MB / 1.609 GB, free: 84.72 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001929/4.604, allocations: 1.433 MB / 1.61 GB, free: 84.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/4.615, allocations: 2.306 MB / 1.613 GB, free: 84.28 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.06e-05/4.615, allocations: 3.125 kB / 1.613 GB, free: 84.28 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01572/4.631, allocations: 3.945 MB / 1.616 GB, free: 84.08 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001216/4.632, allocations: 3.649 MB / 1.62 GB, free: 80.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.713e-05/4.632, allocations: 9.531 kB / 1.62 GB, free: 80.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004939/4.633, allocations: 174.7 kB / 1.62 GB, free: 80.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/4.635, allocations: 0.5322 MB / 1.621 GB, free: 80.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/4.637, allocations: 2.361 MB / 1.623 GB, free: 78.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/4.64, allocations: 176.2 kB / 1.623 GB, free: 78.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004212/4.641, allocations: 188.1 kB / 1.623 GB, free: 78.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/4.641, allocations: 6.156 kB / 1.623 GB, free: 78.25 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01314/4.654, allocations: 3.4 MB / 1.627 GB, free: 78.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/4.654, allocations: 10.44 kB / 1.627 GB, free: 78.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003669/4.654, allocations: 167.2 kB / 1.627 GB, free: 78.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/4.657, allocations: 0.5234 MB / 1.627 GB, free: 78.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/4.658, allocations: 2.371 MB / 1.63 GB, free: 76.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003068/4.661, allocations: 169.3 kB / 1.63 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003565/4.661, allocations: 181.5 kB / 1.63 GB, free: 76.06 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (243): * Single equations (assignments): 237 * 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.001027/4.663, allocations: 224 kB / 1.63 GB, free: 75.89 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005683/4.663, allocations: 192.5 kB / 1.63 GB, free: 75.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.017/4.68, allocations: 5.121 MB / 1.635 GB, free: 75.62 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/4.68, allocations: 23.44 kB / 1.635 GB, free: 75.62 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.698e-05/4.68, allocations: 7.219 kB / 1.635 GB, free: 75.61 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01217/4.692, allocations: 3.521 MB / 1.639 GB, free: 75.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02059/4.713, allocations: 6.846 MB / 1.646 GB, free: 74.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/4.713, allocations: 3.812 kB / 1.646 GB, free: 74.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/4.715, allocations: 406.1 kB / 1.646 GB, free: 74.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003996/4.715, allocations: 175.9 kB / 1.646 GB, free: 74.12 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001933/4.716, allocations: 74.19 kB / 1.646 GB, free: 74.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001704/4.717, allocations: 3.028 MB / 1.649 GB, free: 71.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/4.717, allocations: 12.56 kB / 1.649 GB, free: 71.38 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01484/4.732, allocations: 5.323 MB / 1.654 GB, free: 70.33 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/4.734, allocations: 0.5034 MB / 1.655 GB, free: 70.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004535/4.734, allocations: 32.3 kB / 1.655 GB, free: 70.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/4.736, allocations: 97.3 kB / 1.655 GB, free: 70.13 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/4.736, allocations: 142.1 kB / 1.655 GB, free: 70.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003012/4.737, allocations: 148.5 kB / 1.655 GB, free: 70.12 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001434/4.738, allocations: 0.8041 MB / 1.656 GB, free: 70.01 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00747/4.745, allocations: 1.649 MB / 1.658 GB, free: 70.01 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (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) * 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 (183): * Single equations (assignments): 177 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005788/4.751, allocations: 2.388 MB / 1.66 GB, free: 69.76 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006865/4.758, allocations: 3.991 MB / 1.664 GB, free: 69.58 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/4.758, allocations: 3.406 kB / 1.664 GB, free: 69.58 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001981/4.76, allocations: 1.378 MB / 1.665 GB, free: 69.41 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004629/4.765, allocations: 0.7566 MB / 1.666 GB, free: 69.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009681/4.775, allocations: 4.05 MB / 1.67 GB, free: 68.52 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00329/4.778, allocations: 2.231 MB / 1.672 GB, free: 67.77 MB / 0.5417 GB Notification: Performance of SimCode: time 2.044e-06/4.778, allocations: 1.406 kB / 1.672 GB, free: 67.77 MB / 0.5417 GB Notification: Performance of Templates: time 0.1287/4.907, allocations: 71.18 MB / 1.742 GB, free: 57.84 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)