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.001186/0.001186, allocations: 177.1 kB / 17.06 MB, free: 5.098 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.253/1.253, allocations: 223.2 MB / 241 MB, free: 10.13 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.0008158/0.0008159, allocations: 92.77 kB / 292.2 MB, free: 10.7 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.3091/0.3091, allocations: 44.22 MB / 387.5 MB, free: 38.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003056/0.0003055, allocations: 16 kB / 459.9 MB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3231, allocations: 61.9 MB / 0.5096 GB, free: 37.77 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.051/1.375, allocations: 0.5614 GB / 1.071 GB, free: 9.598 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/1.375, allocations: 91.52 kB / 1.071 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.922/3.297, allocations: 0.5073 GB / 1.578 GB, free: 44.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.804e-06/3.297, allocations: 0 / 1.578 GB, free: 44.1 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002847/3.297, allocations: 53.95 kB / 1.578 GB, free: 44.09 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.01255/3.309, allocations: 3.106 MB / 1.581 GB, free: 42.55 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/3.31, allocations: 10.69 kB / 1.581 GB, free: 42.55 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004952/3.315, allocations: 444.2 kB / 1.582 GB, free: 42.42 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007389/3.322, allocations: 1.955 MB / 1.584 GB, free: 41.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/3.322, allocations: 134.3 kB / 1.584 GB, free: 41.97 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009426/3.323, allocations: 166.6 kB / 1.584 GB, free: 41.97 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005971/3.329, allocations: 2.644 MB / 1.587 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.591e-05/3.329, allocations: 3.812 kB / 1.587 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004994/3.33, allocations: 79.61 kB / 1.587 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001982/3.33, allocations: 150.4 kB / 1.587 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004078/3.334, allocations: 2.27 MB / 1.589 GB, free: 41.52 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.01519/3.349, allocations: 11.02 MB / 1.6 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002803/3.352, allocations: 1.818 MB / 1.602 GB, free: 35.29 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000828/3.353, allocations: 0.5107 MB / 1.602 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001999/3.355, allocations: 1.307 MB / 1.603 GB, free: 34.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 3.878e-06/3.355, allocations: 0 / 1.603 GB, free: 34.65 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.02565/3.381, allocations: 11.23 MB / 1.614 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/3.381, allocations: 363 kB / 1.615 GB, free: 32.27 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002926/3.384, allocations: 1.416 MB / 1.616 GB, free: 32.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003443/3.384, allocations: 63.14 kB / 1.616 GB, free: 32.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009013/3.385, allocations: 0.8739 MB / 1.617 GB, free: 31.76 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005894/3.386, allocations: 0.6174 MB / 1.618 GB, free: 31.37 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/3.386, allocations: 40.19 kB / 1.618 GB, free: 31.37 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001337/3.386, allocations: 391.8 kB / 1.618 GB, free: 31.06 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/3.388, allocations: 1.042 MB / 1.619 GB, free: 31.06 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002297/3.39, allocations: 1.49 MB / 1.62 GB, free: 30.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/3.392, allocations: 1.31 MB / 1.622 GB, free: 30.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/3.392, allocations: 0 / 1.622 GB, free: 30.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.005576/3.398, allocations: 3.175 MB / 1.625 GB, free: 29.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007815/3.399, allocations: 3.772 MB / 1.629 GB, free: 25.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/3.399, allocations: 13.83 kB / 1.629 GB, free: 25.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004263/3.399, allocations: 194.6 kB / 1.629 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/3.401, allocations: 0.539 MB / 1.629 GB, free: 25.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/3.403, allocations: 2.327 MB / 1.632 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002733/3.405, allocations: 216.5 kB / 1.632 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000445/3.406, allocations: 189.5 kB / 1.632 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/3.406, allocations: 3.406 kB / 1.632 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004929/3.411, allocations: 2.896 MB / 1.635 GB, free: 21.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.531e-05/3.411, allocations: 9.281 kB / 1.635 GB, free: 21.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003538/3.411, allocations: 192.9 kB / 1.635 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/3.413, allocations: 0.5371 MB / 1.635 GB, free: 21.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/3.414, allocations: 2.325 MB / 1.638 GB, free: 19.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/3.417, allocations: 212.2 kB / 1.638 GB, free: 19.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004095/3.417, allocations: 187 kB / 1.638 GB, free: 19.52 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.001698/3.419, allocations: 0.6806 MB / 1.639 GB, free: 19.07 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006602/3.42, allocations: 219.2 kB / 1.639 GB, free: 18.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008049/3.428, allocations: 4.685 MB / 1.644 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/3.428, allocations: 18.31 kB / 1.644 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/3.428, allocations: 0 / 1.644 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003642/3.431, allocations: 2.793 MB / 1.646 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/3.444, allocations: 7.052 MB / 1.653 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.827e-05/3.444, allocations: 11.7 kB / 1.653 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001801/3.446, allocations: 436.6 kB / 1.654 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004096/3.446, allocations: 181.4 kB / 1.654 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002351/3.446, allocations: 102.9 kB / 1.654 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/3.448, allocations: 3.081 MB / 1.657 GB, free: 24.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/3.448, allocations: 11.94 kB / 1.657 GB, free: 24.77 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006466/3.455, allocations: 4.812 MB / 1.662 GB, free: 20.09 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001749/3.457, allocations: 0.5404 MB / 1.662 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008381/3.458, allocations: 64.64 kB / 1.662 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002129/3.46, allocations: 128.6 kB / 1.662 GB, free: 19.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/3.46, allocations: 176.7 kB / 1.663 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003098/3.46, allocations: 163 kB / 1.663 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002179/3.463, allocations: 1.107 MB / 1.664 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/3.463, allocations: 0 / 1.664 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006878/3.469, allocations: 1.794 MB / 1.665 GB, free: 16.49 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.005729/3.475, allocations: 2.133 MB / 1.668 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008184/3.483, allocations: 4.369 MB / 1.672 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/3.483, allocations: 0 / 1.672 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002737/3.486, allocations: 1.543 MB / 1.673 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005242/3.491, allocations: 0.9684 MB / 1.674 GB, free: 9.086 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/3.502, allocations: 5.678 MB / 1.68 GB, free: 3.965 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001935/3.504, allocations: 1.723 MB / 1.682 GB, free: 2.57 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008216/3.512, allocations: 3.031 MB / 1.684 GB, free: 0.6367 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/3.514, allocations: 357 kB / 1.685 GB, free: 352 kB / 0.5417 GB Notification: Performance of SimCode: time 1.222e-06/3.514, allocations: 0 / 1.685 GB, free: 352 kB / 0.5417 GB Notification: Performance of Templates: time 0.4169/3.931, allocations: 70.79 MB / 1.754 GB, free: 67.47 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)