Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008843/0.0008843, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000869/0.000869, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8552/0.8552, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.08069/0.08069, allocations: 19.74 MB / 281.2 MB, free: 9.266 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 358 MB, free: 6.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.393e-05/1.535e-05, allocations: 2.312 kB / 358 MB, free: 6.605 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.01443/0.01444, allocations: 20.04 MB / 378 MB, free: 2.488 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006727/0.02117, allocations: 8.378 MB / 386.4 MB, free: 10.08 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.02135, allocations: 11.88 kB / 386.4 MB, free: 10.07 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.02173, allocations: 138.9 kB / 386.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004347/0.02216, allocations: 325.6 kB / 386.8 MB, free: 9.609 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007272/0.02943, allocations: 4.591 MB / 391.4 MB, free: 5.004 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006653/0.0301, allocations: 0.8521 MB / 392.3 MB, free: 4.148 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002961/0.03039, allocations: 225.9 kB / 392.5 MB, free: 3.926 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.03074, allocations: 419 kB / 392.9 MB, free: 3.516 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002516/0.03099, allocations: 263.2 kB / 393.2 MB, free: 3.258 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.631e-05/0.03102, allocations: 32 kB / 393.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006143/0.03717, allocations: 5.81 MB / 399 MB, free: 13.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.247e-05/0.03723, allocations: 87.61 kB / 399.1 MB, free: 13.32 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.03736, allocations: 167.7 kB / 399.3 MB, free: 13.16 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003652/0.04101, allocations: 4.486 MB / 403.8 MB, free: 8.664 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.04101, allocations: 0 / 403.8 MB, free: 8.664 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.04101, allocations: 0 / 403.8 MB, free: 8.664 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.04102, allocations: 0 / 403.8 MB, free: 8.664 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001544/0.04256, allocations: 1.202 MB / 405 MB, free: 7.422 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.0426, allocations: 11.97 kB / 405 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.04288, allocations: 152.5 kB / 405.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002933/0.04317, allocations: 300.3 kB / 405.4 MB, free: 6.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.804e-05/0.04324, allocations: 84.61 kB / 405.5 MB, free: 6.848 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.757e-05/0.04328, allocations: 36.38 kB / 405.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.0438, allocations: 414.2 kB / 405.9 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.04381, allocations: 7.938 kB / 405.9 MB, free: 6.359 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.04383, allocations: 16 kB / 406 MB, free: 6.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.04384, allocations: 8 kB / 406 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003767/0.04422, allocations: 243.6 kB / 406.2 MB, free: 6.098 MB / 330.7 MB 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.001147/0.04536, allocations: 1.606 MB / 407.8 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004117/0.04578, allocations: 223.2 kB / 408 MB, free: 4.191 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.451e-05/0.04587, allocations: 80.3 kB / 408.1 MB, free: 4.109 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1385/0.1844, allocations: 17.51 MB / 425.6 MB, free: 40.15 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.1844, allocations: 36.58 kB / 425.7 MB, free: 40.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=28): time 1.824e-06/0.1844, allocations: 0 / 425.7 MB, free: 40.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002281/0.1867, allocations: 1.22 MB / 426.9 MB, free: 39.87 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.883e-05/0.1867, allocations: 55 kB / 426.9 MB, free: 39.81 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.1869, allocations: 318.4 kB / 427.2 MB, free: 39.63 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.1869, allocations: 31.36 kB / 427.3 MB, free: 39.6 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.396e-05/0.187, allocations: 265.3 kB / 427.5 MB, free: 39.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.187, allocations: 142.8 kB / 427.7 MB, free: 39.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.088e-05/0.1871, allocations: 77.23 kB / 427.7 MB, free: 39.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.58e-05/0.1872, allocations: 0.512 MB / 428.3 MB, free: 38.85 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.1873, allocations: 81.55 kB / 428.3 MB, free: 38.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.1874, allocations: 140.6 kB / 428.5 MB, free: 38.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.1876, allocations: 229.8 kB / 428.7 MB, free: 38.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1876, allocations: 3.938 kB / 428.7 MB, free: 38.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00045/0.1881, allocations: 368.3 kB / 429.1 MB, free: 38.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1881, allocations: 2.125 kB / 429.1 MB, free: 38.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1881, allocations: 3.219 kB / 429.1 MB, free: 38.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/0.1883, allocations: 87.61 kB / 429.2 MB, free: 38.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.1885, allocations: 82.17 kB / 429.2 MB, free: 38.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003762/0.1889, allocations: 1.61 MB / 430.8 MB, free: 37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.189, allocations: 10.75 kB / 430.9 MB, free: 37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.189, allocations: 11.72 kB / 430.9 MB, free: 37 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001288/0.1892, allocations: 201 kB / 431.1 MB, free: 36.87 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.756e-05/0.1893, allocations: 138.3 kB / 431.2 MB, free: 36.8 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001877/0.1895, allocations: 215.7 kB / 431.4 MB, free: 36.74 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.122e-06/0.1895, allocations: 3.562 kB / 431.4 MB, free: 36.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.0003736/0.1898, allocations: 357.7 kB / 431.8 MB, free: 36.65 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-06/0.1898, allocations: 8.156 kB / 431.8 MB, free: 36.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-06/0.1898, allocations: 7.656 kB / 431.8 MB, free: 36.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001949/0.19, allocations: 75.23 kB / 431.8 MB, free: 36.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.1902, allocations: 78.5 kB / 431.9 MB, free: 36.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003773/0.1906, allocations: 1.617 MB / 433.5 MB, free: 35.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.334e-05/0.1907, allocations: 11.22 kB / 433.6 MB, free: 35.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.1907, allocations: 15.33 kB / 433.6 MB, free: 35.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 9.222e-05/0.1908, allocations: 282.3 kB / 433.8 MB, free: 34.76 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.079e-05/0.1908, allocations: 54.14 kB / 433.9 MB, free: 34.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006316/0.1915, allocations: 0.6613 MB / 434.6 MB, free: 34.62 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.1915, allocations: 10.86 kB / 434.6 MB, free: 34.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1915, allocations: 0 / 434.6 MB, free: 34.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1915, allocations: 3.938 kB / 434.6 MB, free: 34.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002868/0.1918, allocations: 422.7 kB / 435 MB, free: 34.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1918, allocations: 4 kB / 435 MB, free: 34.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1919, allocations: 72.25 kB / 435.1 MB, free: 34.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002429/0.1922, allocations: 97.28 kB / 435.2 MB, free: 34.45 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.1922, allocations: 15.44 kB / 435.2 MB, free: 34.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002886/0.1925, allocations: 1.607 MB / 436.8 MB, free: 32.85 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1925, allocations: 0 / 436.8 MB, free: 32.85 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006284/0.1931, allocations: 0.7822 MB / 437.6 MB, free: 32.19 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.738e-05/0.1932, allocations: 81.52 kB / 437.6 MB, free: 32.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.1932, allocations: 7.578 kB / 437.6 MB, free: 32.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.149e-05/0.1933, allocations: 12.84 kB / 437.7 MB, free: 32.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.839e-05/0.1934, allocations: 28.88 kB / 437.7 MB, free: 32.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1934, allocations: 11.75 kB / 437.7 MB, free: 32.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.474e-05/0.1935, allocations: 221.1 kB / 437.9 MB, free: 31.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1935, allocations: 0 / 437.9 MB, free: 31.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001397/0.1949, allocations: 0.9527 MB / 438.9 MB, free: 31.14 MB / 330.7 MB 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: 5 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,Valve.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001985/0.1968, allocations: 1.081 MB / 439.9 MB, free: 30.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006332/0.1975, allocations: 0.4937 MB / 440.4 MB, free: 29.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1975, allocations: 0 / 440.4 MB, free: 29.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.1977, allocations: 227.1 kB / 440.7 MB, free: 29.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.1982, allocations: 188.5 kB / 440.8 MB, free: 29.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.1995, allocations: 1.065 MB / 441.9 MB, free: 28.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.825e-05/0.1995, allocations: 119.1 kB / 442 MB, free: 28.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002612/0.1998, allocations: 342.9 kB / 442.4 MB, free: 28.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.461e-05/0.1999, allocations: 43.61 kB / 442.4 MB, free: 28.32 MB / 330.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1999, allocations: 0 / 442.4 MB, free: 28.32 MB / 330.7 MB Notification: Performance of Templates: time 0.03094/0.2308, allocations: 41.51 MB / 483.9 MB, free: 3.105 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile [Timeout 660] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & ./ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2 -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.888646665029228]