Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 187 kB / 18.09 MB, free: 3.727 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.309/1.309, allocations: 223.3 MB / 242.1 MB, free: 11.7 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.0008917/0.0008918, allocations: 105.2 kB / 293.3 MB, free: 10.79 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.2931/0.2931, allocations: 44.15 MB / 388.5 MB, free: 38.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003479/0.0003479, allocations: 12 kB / 461.1 MB, free: 1.332 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3044, allocations: 61.87 MB / 0.5107 GB, free: 38.19 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9869/1.291, allocations: 0.5618 GB / 1.072 GB, free: 9.328 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/1.292, allocations: 88.62 kB / 1.073 GB, free: 9.285 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.723/3.015, allocations: 0.5044 GB / 1.577 GB, free: 44.64 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.745e-06/3.015, allocations: 0 / 1.577 GB, free: 44.64 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001767/3.015, allocations: 71.91 kB / 1.577 GB, free: 44.63 MB / 0.5261 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.007711/3.023, allocations: 3.076 MB / 1.58 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/3.023, allocations: 7.188 kB / 1.58 GB, free: 43.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002609/3.026, allocations: 449.7 kB / 1.58 GB, free: 42.97 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006642/3.032, allocations: 3.218 MB / 1.584 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/3.033, allocations: 131.8 kB / 1.584 GB, free: 42.45 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000342/3.033, allocations: 174.7 kB / 1.584 GB, free: 42.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003685/3.037, allocations: 2.658 MB / 1.586 GB, free: 42.01 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.694e-05/3.037, allocations: 12.06 kB / 1.586 GB, free: 42.01 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002143/3.037, allocations: 76.45 kB / 1.587 GB, free: 42.01 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000158/3.037, allocations: 153.5 kB / 1.587 GB, free: 42 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003299/3.04, allocations: 2.266 MB / 1.589 GB, free: 41.99 MB / 0.5261 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.01223/3.053, allocations: 11 MB / 1.6 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/3.055, allocations: 1.826 MB / 1.601 GB, free: 35.76 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00136/3.056, allocations: 1.08 MB / 1.602 GB, free: 35.75 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007303/3.057, allocations: 0.5044 MB / 1.603 GB, free: 35.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001647/3.059, allocations: 1.313 MB / 1.604 GB, free: 35.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 3.607e-06/3.059, allocations: 2.844 kB / 1.604 GB, free: 35.1 MB / 0.5261 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.02181/3.081, allocations: 10.91 MB / 1.615 GB, free: 33.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.02e-05/3.081, allocations: 365.9 kB / 1.615 GB, free: 33.11 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/3.083, allocations: 1.598 MB / 1.617 GB, free: 32.93 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001947/3.083, allocations: 64.8 kB / 1.617 GB, free: 32.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005567/3.083, allocations: 0.8635 MB / 1.618 GB, free: 32.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003945/3.084, allocations: 0.6195 MB / 1.618 GB, free: 32.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/3.084, allocations: 41.66 kB / 1.618 GB, free: 32.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001027/3.084, allocations: 391.6 kB / 1.619 GB, free: 31.89 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/3.086, allocations: 1.046 MB / 1.62 GB, free: 31.82 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/3.087, allocations: 1.492 MB / 1.621 GB, free: 31.01 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00316/3.09, allocations: 2.665 MB / 1.624 GB, free: 29.66 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/3.09, allocations: 3.625 kB / 1.624 GB, free: 29.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004565/3.095, allocations: 3.174 MB / 1.627 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001688/3.095, allocations: 432.7 kB / 1.627 GB, free: 28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/3.095, allocations: 10.59 kB / 1.627 GB, free: 28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003673/3.096, allocations: 188.8 kB / 1.628 GB, free: 27.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/3.098, allocations: 0.5401 MB / 1.628 GB, free: 27.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009535/3.099, allocations: 2.329 MB / 1.63 GB, free: 25.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002015/3.101, allocations: 219.9 kB / 1.631 GB, free: 25.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002699/3.101, allocations: 191.8 kB / 1.631 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.214e-06/3.101, allocations: 2.812 kB / 1.631 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004061/3.105, allocations: 2.895 MB / 1.634 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/3.105, allocations: 9.594 kB / 1.634 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003384/3.105, allocations: 191.6 kB / 1.634 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/3.107, allocations: 0.5388 MB / 1.634 GB, free: 24.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009543/3.108, allocations: 2.327 MB / 1.637 GB, free: 22.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/3.11, allocations: 214.8 kB / 1.637 GB, free: 22.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002725/3.111, allocations: 187 kB / 1.637 GB, free: 22.36 MB / 0.5261 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.001228/3.112, allocations: 0.6908 MB / 1.638 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004083/3.112, allocations: 215.8 kB / 1.638 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007428/3.12, allocations: 4.664 MB / 1.642 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/3.12, allocations: 24.84 kB / 1.642 GB, free: 20.37 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/3.12, allocations: 0 / 1.642 GB, free: 20.37 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003869/3.124, allocations: 2.794 MB / 1.645 GB, free: 19.05 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/3.134, allocations: 7.063 MB / 1.652 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/3.134, allocations: 4 kB / 1.652 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/3.136, allocations: 439.8 kB / 1.652 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000389/3.137, allocations: 187.7 kB / 1.653 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/3.137, allocations: 102.1 kB / 1.653 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/3.138, allocations: 3.078 MB / 1.656 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/3.138, allocations: 11.94 kB / 1.656 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005812/3.144, allocations: 4.342 MB / 1.66 GB, free: 6.797 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/3.145, allocations: 0.5521 MB / 1.661 GB, free: 6.297 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005957/3.146, allocations: 57.38 kB / 1.661 GB, free: 6.246 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/3.148, allocations: 132.3 kB / 1.661 GB, free: 6.148 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002796/3.148, allocations: 169 kB / 1.661 GB, free: 6.035 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/3.148, allocations: 168.8 kB / 1.661 GB, free: 5.887 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001624/3.15, allocations: 1.097 MB / 1.662 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.51e-07/3.15, allocations: 0 / 1.662 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005542/3.155, allocations: 1.748 MB / 1.664 GB, free: 3.234 MB / 0.5261 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.004637/3.16, allocations: 2.071 MB / 1.666 GB, free: 1.836 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00775/3.168, allocations: 4.4 MB / 1.67 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/3.168, allocations: 8.125 kB / 1.67 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002434/3.17, allocations: 1.536 MB / 1.672 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006606/3.177, allocations: 0.9896 MB / 1.673 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009129/3.186, allocations: 5.685 MB / 1.678 GB, free: 6.812 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/3.188, allocations: 1.676 MB / 1.68 GB, free: 5.422 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007998/3.196, allocations: 3.05 MB / 1.683 GB, free: 3.473 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/3.197, allocations: 340.7 kB / 1.683 GB, free: 3.188 MB / 0.5417 GB Notification: Performance of SimCode: time 8.11e-07/3.197, allocations: 0 / 1.683 GB, free: 3.188 MB / 0.5417 GB Notification: Performance of Templates: time 0.3664/3.564, allocations: 71.44 MB / 1.753 GB, free: 66.04 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)