Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.BranchingPipes15,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.BranchingPipes15") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,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.BranchingPipes15") [: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.001159/0.001159, allocations: 200.4 kB / 8.539 MB, free: 1.746 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001242/0.001243, allocations: 89.44 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2546/0.2546, allocations: 45.14 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.506e-06/8.536e-06, allocations: 0 / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1749, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.834/2.009, allocations: 0.5617 GB / 1.065 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004553/2.01, allocations: 79.95 kB / 1.066 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.069/4.079, allocations: 0.5053 GB / 1.571 GB, free: 4.055 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002357/4.079, allocations: 67.86 kB / 1.571 GB, free: 3.988 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.01248/4.091, allocations: 2.823 MB / 1.574 GB, free: 1.098 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/4.092, allocations: 12.03 kB / 1.574 GB, free: 1.086 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00437/4.096, allocations: 444.7 kB / 1.574 GB, free: 0.6484 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4271/4.523, allocations: 1.945 MB / 1.576 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/4.523, allocations: 56 kB / 1.576 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001705/4.525, allocations: 97.22 kB / 1.576 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006761/4.532, allocations: 2.202 MB / 1.578 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006107/4.538, allocations: 2.434 MB / 1.581 GB, free: 94.11 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.524e-05/4.538, allocations: 3.25 kB / 1.581 GB, free: 94.11 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/4.538, allocations: 6.281 kB / 1.581 GB, free: 94.11 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002003/4.539, allocations: 169.2 kB / 1.581 GB, free: 94.11 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/4.556, allocations: 11.86 MB / 1.592 GB, free: 87.28 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/4.558, allocations: 1.047 MB / 1.593 GB, free: 87.25 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001693/4.56, allocations: 1.012 MB / 1.594 GB, free: 87.23 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001065/4.561, allocations: 0.4998 MB / 1.595 GB, free: 86.77 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001973/4.563, allocations: 1.191 MB / 1.596 GB, free: 86.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=153): time 5.25e-06/4.563, allocations: 0 / 1.596 GB, free: 86.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=173): time 0.04171/4.605, allocations: 9.085 MB / 1.605 GB, free: 85.79 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/4.605, allocations: 358.7 kB / 1.605 GB, free: 85.39 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/4.607, allocations: 1.087 MB / 1.606 GB, free: 85.23 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002928/4.607, allocations: 32.17 kB / 1.606 GB, free: 85.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006801/4.608, allocations: 0.663 MB / 1.607 GB, free: 84.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006654/4.609, allocations: 0.5564 MB / 1.608 GB, free: 84.61 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/4.609, allocations: 3.969 kB / 1.608 GB, free: 84.61 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001684/4.609, allocations: 383.8 kB / 1.608 GB, free: 84.3 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/4.61, allocations: 1.009 MB / 1.609 GB, free: 84.3 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/4.612, allocations: 1.437 MB / 1.61 GB, free: 83.88 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009969/4.622, allocations: 2.303 MB / 1.613 GB, free: 83.86 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.516e-05/4.622, allocations: 3.031 kB / 1.613 GB, free: 83.86 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01523/4.638, allocations: 3.947 MB / 1.616 GB, free: 83.65 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001451/4.639, allocations: 3.634 MB / 1.62 GB, free: 79.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-05/4.639, allocations: 12.09 kB / 1.62 GB, free: 79.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005443/4.64, allocations: 169.3 kB / 1.62 GB, free: 79.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00268/4.642, allocations: 0.5367 MB / 1.621 GB, free: 79.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/4.644, allocations: 2.36 MB / 1.623 GB, free: 77.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003182/4.647, allocations: 182.2 kB / 1.623 GB, free: 77.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000593/4.648, allocations: 186.4 kB / 1.623 GB, free: 77.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/4.648, allocations: 6 kB / 1.623 GB, free: 77.82 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01305/4.661, allocations: 3.402 MB / 1.627 GB, free: 77.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.513e-05/4.661, allocations: 8.625 kB / 1.627 GB, free: 77.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004042/4.661, allocations: 175.9 kB / 1.627 GB, free: 77.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002616/4.664, allocations: 0.5255 MB / 1.627 GB, free: 77.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/4.666, allocations: 2.363 MB / 1.63 GB, free: 75.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/4.669, allocations: 170.9 kB / 1.63 GB, free: 75.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006136/4.67, allocations: 185.8 kB / 1.63 GB, free: 75.64 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.001182/4.671, allocations: 216.2 kB / 1.63 GB, free: 75.47 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008966/4.672, allocations: 190.3 kB / 1.63 GB, free: 75.38 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01918/4.691, allocations: 5.13 MB / 1.635 GB, free: 75.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.858e-05/4.691, allocations: 18.59 kB / 1.635 GB, free: 75.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/4.691, allocations: 2.75 kB / 1.635 GB, free: 75.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0145/4.706, allocations: 3.534 MB / 1.639 GB, free: 74.68 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02466/4.73, allocations: 6.837 MB / 1.646 GB, free: 73.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.338e-05/4.73, allocations: 4.781 kB / 1.646 GB, free: 73.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002341/4.733, allocations: 415.5 kB / 1.646 GB, free: 73.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005088/4.733, allocations: 169.2 kB / 1.646 GB, free: 73.7 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004537/4.734, allocations: 67.36 kB / 1.646 GB, free: 73.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002076/4.736, allocations: 3.036 MB / 1.649 GB, free: 70.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/4.736, allocations: 9.031 kB / 1.649 GB, free: 70.96 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01897/4.755, allocations: 5.327 MB / 1.654 GB, free: 69.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002621/4.758, allocations: 0.5042 MB / 1.655 GB, free: 69.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00148/4.759, allocations: 30.86 kB / 1.655 GB, free: 69.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003279/4.762, allocations: 93.03 kB / 1.655 GB, free: 69.71 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006389/4.763, allocations: 152.1 kB / 1.655 GB, free: 69.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006439/4.764, allocations: 154.2 kB / 1.655 GB, free: 69.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002764/4.767, allocations: 0.8001 MB / 1.656 GB, free: 69.59 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01196/4.779, allocations: 1.647 MB / 1.658 GB, free: 69.59 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.009109/4.788, allocations: 2.379 MB / 1.66 GB, free: 69.34 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01074/4.799, allocations: 3.996 MB / 1.664 GB, free: 69.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.413e-05/4.799, allocations: 3.312 kB / 1.664 GB, free: 69.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003118/4.802, allocations: 1.386 MB / 1.665 GB, free: 68.99 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006186/4.808, allocations: 0.7481 MB / 1.666 GB, free: 68.98 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/4.823, allocations: 4.059 MB / 1.67 GB, free: 68.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005731/4.828, allocations: 2.231 MB / 1.672 GB, free: 67.35 MB / 0.5417 GB Notification: Performance of SimCode: time 2.144e-06/4.829, allocations: 0 / 1.672 GB, free: 67.35 MB / 0.5417 GB Notification: Performance of Templates: time 0.1498/4.978, allocations: 71.17 MB / 1.742 GB, free: 57.62 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)