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/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.001253/0.001253, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001446/0.001446, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7992/0.7992, allocations: 158.6 MB / 186.8 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.178/0.178, allocations: 36.34 MB / 275.4 MB, free: 10.72 MB / 266.7 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/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 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_ThermoPower.Test.WaterComponents.ValveZeroFlow2") translateModel(ThermoPower.Test.WaterComponents.ValveZeroFlow2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 353.8 MB, free: 3.762 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.568e-05/1.72e-05, allocations: 2.312 kB / 353.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.04922/0.04924, allocations: 47.62 MB / 401.4 MB, free: 3.961 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.06157, allocations: 9.624 MB / 411 MB, free: 10.3 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003315/0.06191, allocations: 11.88 kB / 411 MB, free: 10.29 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007762/0.06268, allocations: 230.4 kB / 411.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00068/0.06336, allocations: 317.7 kB / 411.6 MB, free: 9.754 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01181/0.07517, allocations: 4.716 MB / 416.3 MB, free: 5.02 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.07647, allocations: 0.8054 MB / 417.1 MB, free: 4.211 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004941/0.07697, allocations: 202.2 kB / 417.3 MB, free: 4.012 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006138/0.07758, allocations: 406.9 kB / 417.7 MB, free: 3.613 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003918/0.07797, allocations: 263.2 kB / 418 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.299e-05/0.07803, allocations: 28 kB / 418 MB, free: 3.328 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01126/0.08928, allocations: 5.949 MB / 423.9 MB, free: 13.38 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003572/0.08964, allocations: 83.61 kB / 424 MB, free: 13.29 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002695/0.08991, allocations: 163.6 kB / 424.2 MB, free: 13.13 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008168/0.09808, allocations: 4.599 MB / 428.8 MB, free: 8.523 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.09808, allocations: 4 kB / 428.8 MB, free: 8.52 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09808, allocations: 0 / 428.8 MB, free: 8.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.09809, allocations: 0 / 428.8 MB, free: 8.52 MB / 362.7 MB 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.002737/0.1008, allocations: 1.194 MB / 430 MB, free: 7.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.1009, allocations: 8.031 kB / 430 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005042/0.1014, allocations: 140.5 kB / 430.1 MB, free: 7.141 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.1018, allocations: 276.4 kB / 430.4 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.1018, allocations: 29.03 kB / 430.4 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.1019, allocations: 32.38 kB / 430.4 MB, free: 6.781 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008023/0.1027, allocations: 394 kB / 430.8 MB, free: 6.352 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1027, allocations: 192 / 430.8 MB, free: 6.352 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.417e-05/0.1028, allocations: 15.94 kB / 430.8 MB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.1028, allocations: 8 kB / 430.9 MB, free: 6.328 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005682/0.1033, allocations: 195.6 kB / 431 MB, free: 6.137 MB / 362.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.001972/0.1053, allocations: 1.699 MB / 432.7 MB, free: 4.367 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006178/0.1059, allocations: 203.2 kB / 432.9 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.1061, allocations: 67.66 kB / 433 MB, free: 4.086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1498/0.2559, allocations: 16.79 MB / 449.8 MB, free: 86.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.2559, allocations: 37.14 kB / 449.8 MB, free: 86.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 1.864e-06/0.2559, allocations: 0 / 449.8 MB, free: 86.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002105/0.258, allocations: 1.109 MB / 450.9 MB, free: 85.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.79e-05/0.2581, allocations: 57.84 kB / 451 MB, free: 85.42 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.2582, allocations: 311.4 kB / 451.3 MB, free: 85.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.2582, allocations: 33.7 kB / 451.3 MB, free: 85.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.842e-05/0.2583, allocations: 264.3 kB / 451.6 MB, free: 84.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.2583, allocations: 130 kB / 451.7 MB, free: 84.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.406e-05/0.2584, allocations: 79.34 kB / 451.8 MB, free: 84.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.671e-05/0.2584, allocations: 0.5079 MB / 452.3 MB, free: 84.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.901e-05/0.2585, allocations: 75.42 kB / 452.4 MB, free: 84.01 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.2587, allocations: 142.5 kB / 452.5 MB, free: 83.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.2589, allocations: 223.8 kB / 452.7 MB, free: 83.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2589, allocations: 4 kB / 452.7 MB, free: 83.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004151/0.2593, allocations: 352.2 kB / 453.1 MB, free: 83.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2593, allocations: 4.156 kB / 453.1 MB, free: 83.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2593, allocations: 7.797 kB / 453.1 MB, free: 83.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002353/0.2595, allocations: 79.3 kB / 453.2 MB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2597, allocations: 75.89 kB / 453.3 MB, free: 83.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003488/0.2601, allocations: 1.612 MB / 454.9 MB, free: 81.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.364e-05/0.2602, allocations: 15.5 kB / 454.9 MB, free: 81.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.2602, allocations: 15.98 kB / 454.9 MB, free: 81.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001262/0.2603, allocations: 190.8 kB / 455.1 MB, free: 81.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.756e-05/0.2604, allocations: 129.8 kB / 455.2 MB, free: 81.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001816/0.2606, allocations: 221.9 kB / 455.4 MB, free: 80.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.01e-07/0.2606, allocations: 0 / 455.4 MB, free: 80.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0003672/0.261, allocations: 340 kB / 455.8 MB, free: 80.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.2e-06/0.261, allocations: 5.578 kB / 455.8 MB, free: 80.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-06/0.261, allocations: 4 kB / 455.8 MB, free: 80.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001867/0.2611, allocations: 83.28 kB / 455.8 MB, free: 80.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.2613, allocations: 75.84 kB / 455.9 MB, free: 80.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002869/0.2616, allocations: 1.612 MB / 457.5 MB, free: 78.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.162e-05/0.2617, allocations: 15.94 kB / 457.5 MB, free: 78.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.2617, allocations: 11.98 kB / 457.6 MB, free: 78.56 MB / 362.7 MB 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 (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 7.172e-05/0.2617, allocations: 292 kB / 457.8 MB, free: 78.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.2618, allocations: 43.88 kB / 457.9 MB, free: 78.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006309/0.2624, allocations: 0.7631 MB / 458.7 MB, free: 77.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.2624, allocations: 19.97 kB / 458.7 MB, free: 77.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2624, allocations: 0 / 458.7 MB, free: 77.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2624, allocations: 0 / 458.7 MB, free: 77.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002797/0.2627, allocations: 454.4 kB / 459.1 MB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.2627, allocations: 3.984 kB / 459.1 MB, free: 76.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.2629, allocations: 63.97 kB / 459.2 MB, free: 76.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002544/0.2631, allocations: 99.19 kB / 459.3 MB, free: 76.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.2631, allocations: 8 kB / 459.3 MB, free: 76.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000274/0.2634, allocations: 1.612 MB / 460.9 MB, free: 75.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2634, allocations: 2.938 kB / 460.9 MB, free: 75.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006198/0.264, allocations: 0.8295 MB / 461.7 MB, free: 74.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.2641, allocations: 75.55 kB / 461.8 MB, free: 74.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.2641, allocations: 8 kB / 461.8 MB, free: 74.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.285e-05/0.2642, allocations: 4 kB / 461.8 MB, free: 74.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.2643, allocations: 27.95 kB / 461.8 MB, free: 74.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.2643, allocations: 8 kB / 461.8 MB, free: 74.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.705e-05/0.2644, allocations: 211 kB / 462.1 MB, free: 73.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2644, allocations: 0 / 462.1 MB, free: 73.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001524/0.2659, allocations: 0.9399 MB / 463 MB, free: 72.97 MB / 362.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: 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 (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.001964/0.2679, allocations: 1.093 MB / 464.1 MB, free: 71.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.2685, allocations: 485.8 kB / 464.6 MB, free: 71.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.2685, allocations: 0 / 464.6 MB, free: 71.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.2687, allocations: 248.6 kB / 464.8 MB, free: 71.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.2692, allocations: 166.5 kB / 465 MB, free: 71.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.2704, allocations: 1.086 MB / 466.1 MB, free: 69.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.294e-05/0.2705, allocations: 126.9 kB / 466.2 MB, free: 69.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001901/0.2706, allocations: 194.2 kB / 466.4 MB, free: 69.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.6e-05/0.2707, allocations: 40.5 kB / 466.4 MB, free: 69.62 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2707, allocations: 0 / 466.4 MB, free: 69.62 MB / 362.7 MB Notification: Performance of Templates: time 0.02601/0.2967, allocations: 35.83 MB / 0.4905 GB, free: 33.78 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.makefile [Timeout 660] (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=240 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.308008566033095]