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.002163/0.002164, allocations: 181 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.929/1.929, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001027/0.001027, allocations: 106.2 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6326/0.6326, allocations: 48.76 MB / 367.9 MB, free: 47.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.000435, allocations: 12 kB / 438.6 MB, free: 10.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1883, allocations: 60.25 MB / 498.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.904/9.092, allocations: 2.906 GB / 3.393 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003424/9.093, allocations: 83.27 kB / 3.393 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.039/10.13, allocations: 298.3 MB / 3.685 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.925e-06/10.13, allocations: 0 / 3.685 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.571e-05/10.13, allocations: 16 kB / 3.685 GB, free: 25.17 MB / 0.5105 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.005781/10.14, allocations: 1.118 MB / 3.686 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/10.14, allocations: 8.031 kB / 3.686 GB, free: 24 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003962/10.14, allocations: 87.39 kB / 3.686 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006015/10.14, allocations: 358 kB / 3.686 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/10.14, allocations: 28.64 kB / 3.686 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.239e-05/10.14, allocations: 36.69 kB / 3.686 GB, free: 23.46 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007703/10.14, allocations: 459.2 kB / 3.687 GB, free: 22.97 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/10.14, allocations: 3.953 kB / 3.687 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.625e-05/10.14, allocations: 19.98 kB / 3.687 GB, free: 22.95 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.527e-06/10.14, allocations: 8 kB / 3.687 GB, free: 22.94 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005465/10.14, allocations: 290.3 kB / 3.687 GB, free: 22.65 MB / 0.5105 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.001742/10.14, allocations: 2.16 MB / 3.689 GB, free: 20.28 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/10.14, allocations: 254.8 kB / 3.69 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4882/10.63, allocations: 31.85 MB / 3.721 GB, free: 59.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/10.63, allocations: 35.38 kB / 3.721 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.936e-06/10.63, allocations: 0 / 3.721 GB, free: 59.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.005272/10.64, allocations: 1.485 MB / 3.722 GB, free: 59.36 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/10.64, allocations: 55.22 kB / 3.722 GB, free: 59.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/10.64, allocations: 280.4 kB / 3.722 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/10.64, allocations: 30.45 kB / 3.722 GB, free: 59.16 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/10.64, allocations: 207 kB / 3.723 GB, free: 59.06 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.93e-05/10.64, allocations: 121.8 kB / 3.723 GB, free: 59 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.206e-05/10.64, allocations: 7.406 kB / 3.723 GB, free: 59 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001133/10.64, allocations: 350.1 kB / 3.723 GB, free: 58.69 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/10.64, allocations: 114.2 kB / 3.723 GB, free: 58.69 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/10.64, allocations: 162.4 kB / 3.723 GB, free: 58.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/10.64, allocations: 138.5 kB / 3.724 GB, free: 58.63 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/10.64, allocations: 5.844 kB / 3.724 GB, free: 58.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001025/10.64, allocations: 441 kB / 3.724 GB, free: 58.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001832/10.64, allocations: 0.5376 MB / 3.724 GB, free: 58.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/10.64, allocations: 0 / 3.724 GB, free: 58.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000493/10.64, allocations: 93.22 kB / 3.725 GB, free: 58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/10.64, allocations: 77.56 kB / 3.725 GB, free: 58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008076/10.64, allocations: 1.112 MB / 3.726 GB, free: 56.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/10.64, allocations: 44.09 kB / 3.726 GB, free: 56.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.213e-05/10.64, allocations: 12.83 kB / 3.726 GB, free: 56.96 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/10.64, allocations: 3.938 kB / 3.726 GB, free: 56.96 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007438/10.64, allocations: 366.7 kB / 3.726 GB, free: 56.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/10.64, allocations: 1.125 kB / 3.726 GB, free: 56.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004435/10.64, allocations: 98.83 kB / 3.726 GB, free: 56.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/10.64, allocations: 79.62 kB / 3.726 GB, free: 56.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000715/10.64, allocations: 1.11 MB / 3.727 GB, free: 55.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/10.64, allocations: 43.25 kB / 3.727 GB, free: 55.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/10.64, allocations: 13.97 kB / 3.727 GB, free: 55.88 MB / 0.5105 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 () * Number of clocked 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.0003292/10.64, allocations: 228.9 kB / 3.728 GB, free: 55.69 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.214e-05/10.64, allocations: 47.52 kB / 3.728 GB, free: 55.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001734/10.65, allocations: 1.174 MB / 3.729 GB, free: 55.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-05/10.65, allocations: 16.47 kB / 3.729 GB, free: 55.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/10.65, allocations: 0 / 3.729 GB, free: 55.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/10.65, allocations: 2.062 kB / 3.729 GB, free: 55.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008681/10.65, allocations: 0.6758 MB / 3.73 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/10.65, allocations: 0.6562 kB / 3.73 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/10.65, allocations: 67.69 kB / 3.73 GB, free: 55.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005786/10.65, allocations: 147.6 kB / 3.73 GB, free: 55.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/10.65, allocations: 11.08 kB / 3.73 GB, free: 55.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008409/10.65, allocations: 1.19 MB / 3.731 GB, free: 54.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/10.65, allocations: 0 / 3.731 GB, free: 54.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/10.65, allocations: 1.22 MB / 3.732 GB, free: 54.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/10.65, allocations: 159.8 kB / 3.732 GB, free: 53.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.753e-05/10.65, allocations: 6.594 kB / 3.732 GB, free: 53.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002651/10.65, allocations: 25.41 kB / 3.732 GB, free: 53.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.203e-05/10.65, allocations: 23.3 kB / 3.732 GB, free: 53.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/10.65, allocations: 10.12 kB / 3.732 GB, free: 53.96 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002588/10.65, allocations: 223.2 kB / 3.733 GB, free: 53.87 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.41e-07/10.65, allocations: 0.8438 kB / 3.733 GB, free: 53.87 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006305/10.66, allocations: 0.9663 MB / 3.733 GB, free: 53.87 MB / 0.5105 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 () * Number of clocked 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.009235/10.67, allocations: 1.316 MB / 3.735 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001797/10.67, allocations: 0.6814 MB / 3.735 GB, free: 53.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/10.67, allocations: 3.938 kB / 3.735 GB, free: 53.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000651/10.67, allocations: 381.4 kB / 3.736 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/10.67, allocations: 200.1 kB / 3.736 GB, free: 53.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/10.67, allocations: 1.545 MB / 3.737 GB, free: 53.15 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/10.67, allocations: 0.8659 MB / 3.738 GB, free: 52.45 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004985/10.67, allocations: 204.6 kB / 3.739 GB, free: 52.45 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/10.67, allocations: 39.28 kB / 3.739 GB, free: 52.44 MB / 0.5105 GB Notification: Performance of SimCode: time 1.143e-06/10.67, allocations: 0 / 3.739 GB, free: 52.44 MB / 0.5105 GB Notification: Performance of Templates: time 0.05697/10.73, allocations: 30.95 MB / 3.769 GB, free: 51.16 MB / 0.5105 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)