Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001427/0.001427, allocations: 181.4 kB / 8.346 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.228/2.228, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 84.44 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.662/0.662, allocations: 48.77 MB / 358.8 MB, free: 53.15 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.78e-05/1.782e-05, allocations: 0 / 425.3 MB, free: 8.234 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1945, allocations: 60.26 MB / 485.6 MB, free: 11.83 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.928/10.12, allocations: 2.905 GB / 3.38 GB, free: 94.73 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/10.12, allocations: 78.81 kB / 3.38 GB, free: 94.7 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 1/11.12, allocations: 294.5 MB / 3.667 GB, free: 16.29 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.924e-06/11.12, allocations: 4 kB / 3.667 GB, free: 16.29 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 3.889e-05/11.12, allocations: 17.11 kB / 3.667 GB, free: 16.27 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004846/11.13, allocations: 1.072 MB / 3.668 GB, free: 15.16 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/11.13, allocations: 11.97 kB / 3.668 GB, free: 15.14 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004702/11.13, allocations: 91.39 kB / 3.669 GB, free: 15.05 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/11.13, allocations: 351.1 kB / 3.669 GB, free: 14.68 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/11.13, allocations: 11.98 kB / 3.669 GB, free: 14.67 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.05e-05/11.13, allocations: 20.69 kB / 3.669 GB, free: 14.65 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004285/11.13, allocations: 229.5 kB / 3.669 GB, free: 14.43 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004904/11.13, allocations: 363.6 kB / 3.669 GB, free: 14.02 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/11.13, allocations: 4 kB / 3.669 GB, free: 14.02 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/11.13, allocations: 0 / 3.669 GB, free: 14.02 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/11.13, allocations: 8 kB / 3.669 GB, free: 14.01 MB / 0.5108 GB Warning: The model contains alias variables with conflicting start and/or 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.00178/11.13, allocations: 2.073 MB / 3.671 GB, free: 11.73 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003585/11.13, allocations: 207.4 kB / 3.672 GB, free: 11.52 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/11.13, allocations: 88.86 kB / 3.672 GB, free: 11.43 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4772/11.61, allocations: 31.96 MB / 3.703 GB, free: 53 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/11.61, allocations: 36.09 kB / 3.703 GB, free: 52.96 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=25): time 2.785e-06/11.61, allocations: 0 / 3.703 GB, free: 52.96 MB / 0.5108 GB Notification: Performance of matching and sorting (n=33): time 0.003438/11.61, allocations: 1.144 MB / 3.704 GB, free: 52.65 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.234e-05/11.61, allocations: 55.31 kB / 3.704 GB, free: 52.59 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/11.61, allocations: 218.4 kB / 3.704 GB, free: 52.49 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/11.61, allocations: 25.7 kB / 3.704 GB, free: 52.46 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 8.95e-05/11.61, allocations: 207.8 kB / 3.705 GB, free: 52.35 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 7.136e-05/11.61, allocations: 114.4 kB / 3.705 GB, free: 52.29 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.606e-05/11.61, allocations: 0 / 3.705 GB, free: 52.29 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 7.134e-05/11.61, allocations: 350.2 kB / 3.705 GB, free: 51.98 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/11.61, allocations: 96.72 kB / 3.705 GB, free: 51.98 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/11.61, allocations: 149.5 kB / 3.705 GB, free: 51.93 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/11.61, allocations: 137 kB / 3.705 GB, free: 51.92 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/11.61, allocations: 1.375 kB / 3.705 GB, free: 51.92 MB / 0.5108 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008187/11.62, allocations: 392.8 kB / 3.706 GB, free: 51.86 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/11.62, allocations: 0.5356 MB / 3.706 GB, free: 51.31 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/11.62, allocations: 4.969 kB / 3.706 GB, free: 51.31 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003895/11.62, allocations: 91.86 kB / 3.706 GB, free: 51.29 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003305/11.62, allocations: 77.69 kB / 3.706 GB, free: 51.29 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006919/11.62, allocations: 1.125 MB / 3.708 GB, free: 50.26 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/11.62, allocations: 30.52 kB / 3.708 GB, free: 50.25 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/11.62, allocations: 14.88 kB / 3.708 GB, free: 50.25 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/11.62, allocations: 6.375 kB / 3.708 GB, free: 50.25 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007163/11.62, allocations: 313.9 kB / 3.708 GB, free: 50.23 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/11.62, allocations: 1.812 kB / 3.708 GB, free: 50.23 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003457/11.62, allocations: 88.44 kB / 3.708 GB, free: 50.21 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/11.62, allocations: 81.59 kB / 3.708 GB, free: 50.21 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000644/11.62, allocations: 1.126 MB / 3.709 GB, free: 49.18 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/11.62, allocations: 27.86 kB / 3.709 GB, free: 49.18 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/11.62, allocations: 15.56 kB / 3.709 GB, free: 49.18 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001377/11.62, allocations: 117 kB / 3.709 GB, free: 49.07 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.925e-05/11.62, allocations: 35.78 kB / 3.709 GB, free: 49.05 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/11.62, allocations: 1.131 MB / 3.71 GB, free: 48.94 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/11.62, allocations: 13.61 kB / 3.71 GB, free: 48.94 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/11.62, allocations: 0 / 3.71 GB, free: 48.94 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/11.62, allocations: 3.234 kB / 3.71 GB, free: 48.94 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007619/11.62, allocations: 0.5939 MB / 3.711 GB, free: 48.77 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/11.62, allocations: 0 / 3.711 GB, free: 48.77 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/11.62, allocations: 65.95 kB / 3.711 GB, free: 48.77 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004688/11.62, allocations: 141.3 kB / 3.711 GB, free: 48.75 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/11.62, allocations: 2.875 kB / 3.711 GB, free: 48.75 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006981/11.62, allocations: 1.249 MB / 3.712 GB, free: 47.71 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/11.62, allocations: 7.234 kB / 3.713 GB, free: 47.71 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/11.63, allocations: 1.147 MB / 3.714 GB, free: 47.51 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/11.63, allocations: 155.4 kB / 3.714 GB, free: 47.39 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/11.63, allocations: 8.812 kB / 3.714 GB, free: 47.39 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/11.63, allocations: 22.81 kB / 3.714 GB, free: 47.39 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.11e-05/11.63, allocations: 19.09 kB / 3.714 GB, free: 47.39 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/11.63, allocations: 12.97 kB / 3.714 GB, free: 47.39 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0001535/11.63, allocations: 168.8 kB / 3.714 GB, free: 47.31 MB / 0.5108 GB Notification: Performance of sort global known variables: time 1.5e-07/11.63, allocations: 0 / 3.714 GB, free: 47.31 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.004688/11.63, allocations: 0.914 MB / 3.715 GB, free: 47.31 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005994/11.64, allocations: 1.436 MB / 3.716 GB, free: 47.2 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.001393/11.64, allocations: 0.6355 MB / 3.717 GB, free: 47.19 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/11.64, allocations: 0 / 3.717 GB, free: 47.19 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.0005358/11.64, allocations: 360.6 kB / 3.717 GB, free: 47.19 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009701/11.64, allocations: 141.1 kB / 3.717 GB, free: 47.19 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/11.64, allocations: 0.9753 MB / 3.718 GB, free: 46.97 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/11.64, allocations: 0.8613 MB / 3.719 GB, free: 46.27 MB / 0.5108 GB Notification: Performance of simCode: alias equations: time 0.0004372/11.64, allocations: 214.7 kB / 3.719 GB, free: 46.26 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.278e-05/11.64, allocations: 33.41 kB / 3.719 GB, free: 46.25 MB / 0.5108 GB Notification: Performance of SimCode: time 4.01e-07/11.64, allocations: 0.9375 kB / 3.719 GB, free: 46.25 MB / 0.5108 GB Notification: Performance of Templates: time 0.04247/11.68, allocations: 26.29 MB / 3.745 GB, free: 45.46 MB / 0.5108 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)