Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 182.9 kB / 18.09 MB, free: 3.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 223.3 MB / 242.1 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000743/0.000743, allocations: 91.97 kB / 293.3 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3153/0.3153, allocations: 44.15 MB / 388.5 MB, free: 38.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004472/0.0004474, allocations: 8 kB / 461.1 MB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3331, allocations: 61.87 MB / 0.5107 GB, free: 38.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9111/1.244, allocations: 0.5618 GB / 1.072 GB, free: 9.348 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/1.245, allocations: 87.64 kB / 1.073 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.67/2.915, allocations: 0.5044 GB / 1.577 GB, free: 60.51 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.894e-06/2.915, allocations: 2.75 kB / 1.577 GB, free: 60.51 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002508/2.915, allocations: 67.33 kB / 1.577 GB, free: 60.5 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.008553/2.924, allocations: 3.071 MB / 1.58 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/2.924, allocations: 7.625 kB / 1.58 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002929/2.927, allocations: 451.3 kB / 1.58 GB, free: 58.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00664/2.933, allocations: 3.217 MB / 1.584 GB, free: 58.32 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/2.933, allocations: 132.6 kB / 1.584 GB, free: 58.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006064/2.934, allocations: 168.5 kB / 1.584 GB, free: 58.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004393/2.938, allocations: 2.666 MB / 1.587 GB, free: 57.88 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.358e-05/2.938, allocations: 11.53 kB / 1.587 GB, free: 57.88 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002924/2.939, allocations: 72.05 kB / 1.587 GB, free: 57.88 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001617/2.939, allocations: 154.6 kB / 1.587 GB, free: 57.87 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003414/2.942, allocations: 2.269 MB / 1.589 GB, free: 57.86 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01281/2.955, allocations: 11 MB / 1.6 GB, free: 51.96 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00253/2.958, allocations: 1.824 MB / 1.601 GB, free: 51.63 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/2.959, allocations: 1.082 MB / 1.603 GB, free: 51.62 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006802/2.96, allocations: 0.5108 MB / 1.603 GB, free: 51.14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001635/2.961, allocations: 1.311 MB / 1.604 GB, free: 50.97 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 4.028e-06/2.961, allocations: 2.094 kB / 1.604 GB, free: 50.97 MB / 0.5417 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02347/2.985, allocations: 10.91 MB / 1.615 GB, free: 49.39 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.409e-05/2.985, allocations: 363.5 kB / 1.615 GB, free: 48.98 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002093/2.987, allocations: 1.598 MB / 1.617 GB, free: 48.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002366/2.987, allocations: 65.48 kB / 1.617 GB, free: 48.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006035/2.988, allocations: 0.8684 MB / 1.618 GB, free: 48.46 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004077/2.988, allocations: 0.6205 MB / 1.618 GB, free: 48.07 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/2.989, allocations: 43.72 kB / 1.618 GB, free: 48.07 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.479e-05/2.989, allocations: 386.5 kB / 1.619 GB, free: 47.76 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/2.99, allocations: 1.047 MB / 1.62 GB, free: 47.72 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/2.992, allocations: 1.492 MB / 1.621 GB, free: 46.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003271/2.995, allocations: 2.661 MB / 1.624 GB, free: 45.56 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/2.995, allocations: 3.062 kB / 1.624 GB, free: 45.56 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004783/3, allocations: 3.176 MB / 1.627 GB, free: 44.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002253/3, allocations: 441.3 kB / 1.627 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/3, allocations: 7.406 kB / 1.627 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003964/3.001, allocations: 185.1 kB / 1.628 GB, free: 43.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002039/3.003, allocations: 0.545 MB / 1.628 GB, free: 43.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/3.004, allocations: 2.328 MB / 1.63 GB, free: 41.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/3.006, allocations: 213.7 kB / 1.631 GB, free: 41.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003174/3.006, allocations: 184.1 kB / 1.631 GB, free: 41.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/3.006, allocations: 3.688 kB / 1.631 GB, free: 41.6 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004137/3.01, allocations: 2.908 MB / 1.634 GB, free: 40.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/3.011, allocations: 11.19 kB / 1.634 GB, free: 40.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003253/3.011, allocations: 183.8 kB / 1.634 GB, free: 40.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/3.013, allocations: 0.5334 MB / 1.634 GB, free: 40.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/3.014, allocations: 2.33 MB / 1.637 GB, free: 38.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002134/3.016, allocations: 212.2 kB / 1.637 GB, free: 38.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000322/3.016, allocations: 187.8 kB / 1.637 GB, free: 38.25 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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.001391/3.018, allocations: 0.6875 MB / 1.638 GB, free: 37.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004976/3.018, allocations: 217 kB / 1.638 GB, free: 37.68 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007351/3.026, allocations: 4.669 MB / 1.642 GB, free: 36.27 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/3.026, allocations: 27.5 kB / 1.642 GB, free: 36.26 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/3.026, allocations: 0 / 1.642 GB, free: 36.26 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003542/3.029, allocations: 2.798 MB / 1.645 GB, free: 34.94 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/3.04, allocations: 7.059 MB / 1.652 GB, free: 30.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/3.04, allocations: 10.22 kB / 1.652 GB, free: 30.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001628/3.042, allocations: 444.3 kB / 1.653 GB, free: 30.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003753/3.042, allocations: 183.4 kB / 1.653 GB, free: 30.06 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/3.042, allocations: 102.1 kB / 1.653 GB, free: 29.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/3.044, allocations: 3.071 MB / 1.656 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/3.044, allocations: 10.38 kB / 1.656 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005941/3.05, allocations: 4.342 MB / 1.66 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/3.051, allocations: 0.5523 MB / 1.661 GB, free: 22.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006218/3.052, allocations: 59.61 kB / 1.661 GB, free: 22.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/3.054, allocations: 133.8 kB / 1.661 GB, free: 22.18 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002855/3.054, allocations: 175.4 kB / 1.661 GB, free: 22.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002505/3.054, allocations: 161.2 kB / 1.661 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001589/3.056, allocations: 1.092 MB / 1.662 GB, free: 20.98 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/3.056, allocations: 4 kB / 1.662 GB, free: 20.98 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005474/3.061, allocations: 1.749 MB / 1.664 GB, free: 19.26 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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.004684/3.066, allocations: 2.069 MB / 1.666 GB, free: 17.86 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007634/3.074, allocations: 4.372 MB / 1.67 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/3.074, allocations: 7.375 kB / 1.67 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002423/3.076, allocations: 1.528 MB / 1.672 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006542/3.083, allocations: 0.993 MB / 1.673 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00869/3.091, allocations: 5.685 MB / 1.678 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00142/3.093, allocations: 1.676 MB / 1.68 GB, free: 5.379 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006863/3.1, allocations: 3.044 MB / 1.683 GB, free: 3.438 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/3.101, allocations: 339.5 kB / 1.683 GB, free: 3.152 MB / 0.5417 GB Notification: Performance of SimCode: time 8.21e-07/3.101, allocations: 3.938 kB / 1.683 GB, free: 3.148 MB / 0.5417 GB Notification: Performance of Templates: time 0.3668/3.468, allocations: 71.44 MB / 1.753 GB, free: 65.92 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)