Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 177.9 kB / 17.06 MB, free: 5.094 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.273/1.273, allocations: 223.2 MB / 241 MB, free: 11.88 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.0008506/0.0008506, allocations: 94.02 kB / 292.1 MB, free: 10.92 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.3304/0.3304, allocations: 44.22 MB / 387.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003071, allocations: 12 kB / 459.9 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3409, allocations: 61.9 MB / 0.5096 GB, free: 38.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9981/1.339, allocations: 0.5615 GB / 1.071 GB, free: 9.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/1.339, allocations: 88.56 kB / 1.071 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.957/3.296, allocations: 0.5648 GB / 1.636 GB, free: 38.19 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.384e-06/3.296, allocations: 4 kB / 1.636 GB, free: 38.18 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002137/3.297, allocations: 66.48 kB / 1.636 GB, free: 38.16 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01058/3.307, allocations: 3.252 MB / 1.639 GB, free: 36.25 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/3.307, allocations: 10.44 kB / 1.639 GB, free: 36.25 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00362/3.311, allocations: 466.1 kB / 1.64 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006204/3.317, allocations: 2.017 MB / 1.642 GB, free: 35.16 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/3.317, allocations: 140.1 kB / 1.642 GB, free: 35.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004383/3.318, allocations: 176.2 kB / 1.642 GB, free: 35.04 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004465/3.322, allocations: 2.779 MB / 1.645 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/3.322, allocations: 0 / 1.645 GB, free: 33.71 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/3.323, allocations: 75.59 kB / 1.645 GB, free: 33.66 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/3.323, allocations: 164.1 kB / 1.645 GB, free: 33.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/3.326, allocations: 2.355 MB / 1.647 GB, free: 31.4 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.01416/3.34, allocations: 11.61 MB / 1.658 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00265/3.343, allocations: 1.882 MB / 1.66 GB, free: 17.04 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008285/3.344, allocations: 0.5182 MB / 1.661 GB, free: 16.43 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001782/3.346, allocations: 1.366 MB / 1.662 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 3.316e-06/3.346, allocations: 0 / 1.662 GB, free: 15.02 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 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.02791/3.374, allocations: 12.46 MB / 1.674 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/3.374, allocations: 368.1 kB / 1.675 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/3.376, allocations: 1.482 MB / 1.676 GB, free: 336 kB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002837/3.376, allocations: 69.7 kB / 1.676 GB, free: 260 kB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000784/3.377, allocations: 0.902 MB / 1.677 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000651/3.377, allocations: 0.6739 MB / 1.678 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/3.378, allocations: 48 kB / 1.678 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000185/3.378, allocations: 394.3 kB / 1.678 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/3.38, allocations: 1.101 MB / 1.679 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002294/3.382, allocations: 1.587 MB / 1.681 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/3.384, allocations: 1.372 MB / 1.682 GB, free: 9.961 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/3.384, allocations: 0 / 1.682 GB, free: 9.961 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.006203/3.39, allocations: 3.415 MB / 1.685 GB, free: 6.508 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001806/3.392, allocations: 4.336 MB / 1.69 GB, free: 1.828 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.425e-05/3.392, allocations: 12 kB / 1.69 GB, free: 1.816 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008186/3.393, allocations: 315.5 kB / 1.69 GB, free: 1.496 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/3.396, allocations: 0.5656 MB / 1.691 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/3.398, allocations: 3.008 MB / 1.694 GB, free: 13.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/3.401, allocations: 223.7 kB / 1.694 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004359/3.401, allocations: 204 kB / 1.694 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/3.402, allocations: 8 kB / 1.694 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005843/3.407, allocations: 3.135 MB / 1.697 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/3.407, allocations: 15.95 kB / 1.697 GB, free: 10.19 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000751/3.408, allocations: 304.2 kB / 1.697 GB, free: 9.875 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002406/3.411, allocations: 0.5539 MB / 1.698 GB, free: 9.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/3.413, allocations: 3.012 MB / 1.701 GB, free: 6.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002928/3.416, allocations: 219.6 kB / 1.701 GB, free: 5.965 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005302/3.416, allocations: 203.9 kB / 1.701 GB, free: 5.766 MB / 0.5573 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 254 * 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.001836/3.418, allocations: 0.7071 MB / 1.702 GB, free: 5.035 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005997/3.419, allocations: 225.3 kB / 1.702 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3531/3.772, allocations: 4.853 MB / 1.707 GB, free: 68.21 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.775e-05/3.772, allocations: 20.59 kB / 1.707 GB, free: 68.21 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/3.772, allocations: 3.922 kB / 1.707 GB, free: 68.21 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00533/3.777, allocations: 3.053 MB / 1.71 GB, free: 67.66 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/3.791, allocations: 7.299 MB / 1.717 GB, free: 66.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/3.791, allocations: 6.562 kB / 1.717 GB, free: 66.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/3.793, allocations: 462.8 kB / 1.717 GB, free: 66.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00081/3.794, allocations: 326.8 kB / 1.718 GB, free: 66.27 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002521/3.794, allocations: 115.1 kB / 1.718 GB, free: 66.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002044/3.796, allocations: 3.756 MB / 1.721 GB, free: 62.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/3.796, allocations: 9.812 kB / 1.721 GB, free: 62.96 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007231/3.803, allocations: 5.133 MB / 1.727 GB, free: 61.77 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002092/3.805, allocations: 0.5661 MB / 1.727 GB, free: 61.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006027/3.806, allocations: 63.11 kB / 1.727 GB, free: 61.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/3.808, allocations: 142.8 kB / 1.727 GB, free: 61.67 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003378/3.808, allocations: 193.2 kB / 1.727 GB, free: 61.66 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/3.808, allocations: 187.3 kB / 1.728 GB, free: 61.66 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001843/3.81, allocations: 1.131 MB / 1.729 GB, free: 61.52 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/3.81, allocations: 0 / 1.729 GB, free: 61.52 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007297/3.818, allocations: 1.914 MB / 1.731 GB, free: 61.52 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 199 * 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.005593/3.823, allocations: 2.273 MB / 1.733 GB, free: 61.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008609/3.832, allocations: 4.659 MB / 1.737 GB, free: 60.94 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/3.832, allocations: 2.969 kB / 1.737 GB, free: 60.94 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002687/3.835, allocations: 1.666 MB / 1.739 GB, free: 60.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00606/3.841, allocations: 1.121 MB / 1.74 GB, free: 60.68 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/3.851, allocations: 6.01 MB / 1.746 GB, free: 58.48 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001485/3.853, allocations: 1.762 MB / 1.748 GB, free: 57.74 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008392/3.861, allocations: 3.122 MB / 1.751 GB, free: 57.68 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/3.863, allocations: 379.1 kB / 1.751 GB, free: 57.67 MB / 0.5573 GB Notification: Performance of SimCode: time 2.584e-06/3.863, allocations: 0 / 1.751 GB, free: 57.67 MB / 0.5573 GB Notification: Performance of Templates: time 0.1064/3.969, allocations: 77.58 MB / 1.827 GB, free: 53.29 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)