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.001101/0.001101, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.253/1.253, allocations: 205.1 MB / 223.1 MB, free: 8.453 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.001/0.001001, allocations: 104.3 kB / 270.5 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.373/0.373, allocations: 48.83 MB / 366.7 MB, free: 46.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 59.91 kB / 436.6 MB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1059, allocations: 59.14 MB / 495.7 MB, free: 148 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.2191/0.3251, allocations: 47.37 MB / 0.5304 GB, free: 32.9 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.009561/0.3347, allocations: 10.56 MB / 0.5407 GB, free: 25.62 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005384/0.3353, allocations: 7.531 kB / 0.5407 GB, free: 25.61 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007867/0.3361, allocations: 206.7 kB / 0.5409 GB, free: 25.5 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007151/0.3368, allocations: 285.3 kB / 0.5412 GB, free: 25.32 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01162/0.3485, allocations: 3.749 MB / 0.5448 GB, free: 23.65 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001319/0.3498, allocations: 1.088 MB / 0.5459 GB, free: 23.23 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005261/0.3504, allocations: 206.5 kB / 0.5461 GB, free: 23.15 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004862/0.3508, allocations: 259.5 kB / 0.5463 GB, free: 23.05 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.3513, allocations: 298.4 kB / 0.5466 GB, free: 22.93 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.3514, allocations: 18.84 kB / 0.5466 GB, free: 22.93 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01226/0.3637, allocations: 6.152 MB / 0.5527 GB, free: 20.96 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.3639, allocations: 68.28 kB / 0.5527 GB, free: 20.91 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004009/0.3643, allocations: 214.7 kB / 0.5529 GB, free: 20.79 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.3744, allocations: 3.745 MB / 0.5566 GB, free: 18.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.3744, allocations: 5.156 kB / 0.5566 GB, free: 18.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3744, allocations: 0 / 0.5566 GB, free: 18.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.964e-06/0.3745, allocations: 4 kB / 0.5566 GB, free: 18.39 MB / 394.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.003358/0.3778, allocations: 1.136 MB / 0.5577 GB, free: 17.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.3779, allocations: 8.812 kB / 0.5577 GB, free: 17.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000381/0.3783, allocations: 88.61 kB / 0.5578 GB, free: 17.51 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.3786, allocations: 327.5 kB / 0.5581 GB, free: 17.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.3786, allocations: 30.22 kB / 0.5581 GB, free: 17.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/0.3787, allocations: 31.97 kB / 0.5582 GB, free: 17.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007203/0.3794, allocations: 420.3 kB / 0.5586 GB, free: 16.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3794, allocations: 0 / 0.5586 GB, free: 16.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.3795, allocations: 19.44 kB / 0.5586 GB, free: 16.87 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.3795, allocations: 8.562 kB / 0.5586 GB, free: 16.87 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006257/0.3801, allocations: 288.1 kB / 0.5589 GB, free: 16.73 MB / 394.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.001576/0.3817, allocations: 2.203 MB / 0.561 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000631/0.3824, allocations: 264 kB / 0.5613 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.3826, allocations: 101.9 kB / 0.5614 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0633/0.4459, allocations: 31.98 MB / 0.5926 GB, free: 180 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.4459, allocations: 38.5 kB / 0.5926 GB, free: 132 kB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.104e-06/0.4459, allocations: 0 / 0.5926 GB, free: 132 kB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.004948/0.4509, allocations: 1.445 MB / 0.594 GB, free: 14.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.451, allocations: 55.41 kB / 0.5941 GB, free: 14.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003312/0.4513, allocations: 325.7 kB / 0.5944 GB, free: 14.24 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.4513, allocations: 29.7 kB / 0.5944 GB, free: 14.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.4515, allocations: 204.3 kB / 0.5946 GB, free: 14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.272e-05/0.4516, allocations: 122.3 kB / 0.5947 GB, free: 13.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.4517, allocations: 65.69 kB / 0.5948 GB, free: 13.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4518, allocations: 350.8 kB / 0.5951 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002359/0.4521, allocations: 116.8 kB / 0.5953 GB, free: 13.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.4523, allocations: 169.1 kB / 0.5954 GB, free: 13.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004946/0.4528, allocations: 304.7 kB / 0.5957 GB, free: 12.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4528, allocations: 0.5625 kB / 0.5957 GB, free: 12.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009914/0.4538, allocations: 443.8 kB / 0.5961 GB, free: 12.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4539, allocations: 8 kB / 0.5961 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4539, allocations: 0 / 0.5961 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005157/0.4544, allocations: 85.64 kB / 0.5962 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003529/0.4548, allocations: 83.89 kB / 0.5963 GB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000819/0.4556, allocations: 1.113 MB / 0.5974 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.456, allocations: 36 kB / 0.5974 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.456, allocations: 16 kB / 0.5974 GB, free: 11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003006/0.4563, allocations: 221 kB / 0.5976 GB, free: 10.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002297/0.4566, allocations: 169.5 kB / 0.5978 GB, free: 10.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004422/0.457, allocations: 296.8 kB / 0.5981 GB, free: 10.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.457, allocations: 0 / 0.5981 GB, free: 10.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.000865/0.4579, allocations: 418.4 kB / 0.5985 GB, free: 9.867 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.4579, allocations: 12.16 kB / 0.5985 GB, free: 9.855 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.4579, allocations: 1.75 kB / 0.5985 GB, free: 9.855 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004516/0.4584, allocations: 96.61 kB / 0.5986 GB, free: 9.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.4587, allocations: 75.91 kB / 0.5987 GB, free: 9.684 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007594/0.4595, allocations: 1.11 MB / 0.5998 GB, free: 8.523 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003202/0.4598, allocations: 40.09 kB / 0.5998 GB, free: 8.484 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.4598, allocations: 12 kB / 0.5998 GB, free: 8.473 MB / 426.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 0.0001425/0.46, allocations: 208.2 kB / 0.6 GB, free: 8.262 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.137e-05/0.4601, allocations: 39.47 kB / 0.6 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/0.4618, allocations: 1.174 MB / 0.6012 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.4618, allocations: 15.92 kB / 0.6012 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4618, allocations: 1.812 kB / 0.6012 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4618, allocations: 0 / 0.6012 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007899/0.4626, allocations: 0.6802 MB / 0.6019 GB, free: 6.297 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.4627, allocations: 0 / 0.6019 GB, free: 6.297 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003202/0.463, allocations: 63.89 kB / 0.6019 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006162/0.4636, allocations: 141.6 kB / 0.6021 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/0.4637, allocations: 8 kB / 0.6021 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008822/0.4645, allocations: 1.198 MB / 0.6032 GB, free: 4.832 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4646, allocations: 0 / 0.6032 GB, free: 4.832 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1672/0.6318, allocations: 58.78 MB / 0.6606 GB, free: 9.031 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.632, allocations: 156.3 kB / 0.6608 GB, free: 8.859 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.487e-05/0.6321, allocations: 15.94 kB / 0.6608 GB, free: 8.844 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.6324, allocations: 32 kB / 0.6608 GB, free: 8.812 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.326e-05/0.6324, allocations: 23.97 kB / 0.6609 GB, free: 8.789 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.6325, allocations: 8 kB / 0.6609 GB, free: 8.781 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002184/0.6327, allocations: 227.2 kB / 0.6611 GB, free: 8.555 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6327, allocations: 0 / 0.6611 GB, free: 8.555 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01005/0.6428, allocations: 3.296 MB / 0.6643 GB, free: 5.258 MB / 490.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.02034/0.6631, allocations: 2.13 MB / 0.6664 GB, free: 3.113 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.6649, allocations: 0.6822 MB / 0.6671 GB, free: 2.434 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6649, allocations: 0 / 0.6671 GB, free: 2.434 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007095/0.6656, allocations: 384.7 kB / 0.6674 GB, free: 2.059 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.667, allocations: 198.4 kB / 0.6676 GB, free: 1.867 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.6705, allocations: 2.391 MB / 0.6699 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.671, allocations: 0.8836 MB / 0.6708 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005341/0.6715, allocations: 224.9 kB / 0.671 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.6717, allocations: 55.42 kB / 0.6711 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of SimCode: time 6.51e-07/0.6717, allocations: 0 / 0.6711 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of Templates: time 0.3523/1.024, allocations: 141.6 MB / 0.8094 GB, free: 58.2 MB / 0.4948 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)