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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 105.5 kB / 17.59 MB, free: 5.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002174/0.002174, allocations: 187.3 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3186/0.3186, allocations: 48.85 MB / 320.6 MB, free: 11.09 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 71.39 kB / 390.7 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1041, allocations: 59.17 MB / 449.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.05298/0.1571, allocations: 46.46 MB / 496.4 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.1724, allocations: 9.799 MB / 0.4943 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006443/0.173, allocations: 7.938 kB / 0.4943 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.1742, allocations: 246.4 kB / 0.4946 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001058/0.1753, allocations: 298 kB / 0.4948 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01528/0.1906, allocations: 4.679 MB / 0.4994 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.1919, allocations: 0.7668 MB / 0.5002 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005434/0.1924, allocations: 245.9 kB / 0.5004 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006998/0.1931, allocations: 286.9 kB / 0.5007 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005137/0.1937, allocations: 282.8 kB / 0.5009 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.249e-05/0.1938, allocations: 32 kB / 0.501 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01226/0.206, allocations: 6.076 MB / 0.5069 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.2062, allocations: 79.67 kB / 0.507 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004617/0.2067, allocations: 230.9 kB / 0.5072 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008466/0.2152, allocations: 3.735 MB / 0.5108 GB, free: 340 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2152, allocations: 0 / 0.5108 GB, free: 340 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.2152, allocations: 0 / 0.5108 GB, free: 340 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.2153, allocations: 4 kB / 0.5108 GB, free: 336 kB / 398.1 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.00325/0.2185, allocations: 1.138 MB / 0.512 GB, free: 15.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.2186, allocations: 15.89 kB / 0.512 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004336/0.219, allocations: 84.42 kB / 0.5121 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004783/0.2195, allocations: 327.2 kB / 0.5124 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.2195, allocations: 29.03 kB / 0.5124 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.994e-05/0.2196, allocations: 32.38 kB / 0.5124 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008679/0.2205, allocations: 418 kB / 0.5128 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.2205, allocations: 0 / 0.5128 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.54e-05/0.2206, allocations: 20 kB / 0.5128 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.2206, allocations: 8 kB / 0.5128 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000935/0.2215, allocations: 290.3 kB / 0.5131 GB, free: 13.88 MB / 414.1 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.00229/0.2238, allocations: 2.224 MB / 0.5153 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.2245, allocations: 258.7 kB / 0.5155 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.2247, allocations: 104.8 kB / 0.5156 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2584/0.4832, allocations: 31.96 MB / 0.5469 GB, free: 70.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.4832, allocations: 36.16 kB / 0.5469 GB, free: 70.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.4832, allocations: 0 / 0.5469 GB, free: 70.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004524/0.4878, allocations: 1.453 MB / 0.5483 GB, free: 70.28 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/0.4878, allocations: 55.47 kB / 0.5484 GB, free: 70.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.4881, allocations: 320.7 kB / 0.5487 GB, free: 70.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.4881, allocations: 32.23 kB / 0.5487 GB, free: 70.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.4882, allocations: 206.7 kB / 0.5489 GB, free: 69.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.092e-05/0.4883, allocations: 117.8 kB / 0.549 GB, free: 69.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.4884, allocations: 71.47 kB / 0.5491 GB, free: 69.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.011e-05/0.4885, allocations: 347.9 kB / 0.5494 GB, free: 69.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.4887, allocations: 126.7 kB / 0.5495 GB, free: 69.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002378/0.489, allocations: 168.4 kB / 0.5497 GB, free: 69.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.4895, allocations: 305.4 kB / 0.55 GB, free: 69.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4895, allocations: 1.531 kB / 0.55 GB, free: 69.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000873/0.4904, allocations: 446.6 kB / 0.5504 GB, free: 69.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.4904, allocations: 5.219 kB / 0.5504 GB, free: 69.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.4904, allocations: 2.281 kB / 0.5504 GB, free: 69.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004914/0.4909, allocations: 91.17 kB / 0.5505 GB, free: 69.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003405/0.4913, allocations: 78.27 kB / 0.5506 GB, free: 69.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006062/0.4919, allocations: 1.113 MB / 0.5517 GB, free: 68.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.4921, allocations: 16.36 kB / 0.5517 GB, free: 68.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.4921, allocations: 10.25 kB / 0.5517 GB, free: 68.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002588/0.4924, allocations: 219 kB / 0.5519 GB, free: 67.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001969/0.4926, allocations: 165.6 kB / 0.5521 GB, free: 67.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003841/0.493, allocations: 283.6 kB / 0.5523 GB, free: 67.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.373e-06/0.493, allocations: 0 / 0.5523 GB, free: 67.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0008041/0.4938, allocations: 427.5 kB / 0.5527 GB, free: 67.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.708e-06/0.4938, allocations: 5 kB / 0.5527 GB, free: 67.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.4939, allocations: 2.438 kB / 0.5527 GB, free: 67.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004244/0.4943, allocations: 92.47 kB / 0.5528 GB, free: 67.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.4946, allocations: 76.16 kB / 0.5529 GB, free: 67.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005719/0.4952, allocations: 1.117 MB / 0.554 GB, free: 66.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.4954, allocations: 8.938 kB / 0.554 GB, free: 66.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.4954, allocations: 14.19 kB / 0.554 GB, free: 66.2 MB / 414.1 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.0001187/0.4955, allocations: 203.1 kB / 0.5542 GB, free: 66.01 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-05/0.4956, allocations: 42.12 kB / 0.5543 GB, free: 65.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.4971, allocations: 1.179 MB / 0.5554 GB, free: 65.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4972, allocations: 9.953 kB / 0.5554 GB, free: 65.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.4972, allocations: 6.125 kB / 0.5554 GB, free: 65.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4972, allocations: 5.141 kB / 0.5554 GB, free: 65.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006563/0.4978, allocations: 0.67 MB / 0.5561 GB, free: 64.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.4979, allocations: 0 / 0.5561 GB, free: 64.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.4982, allocations: 70.14 kB / 0.5561 GB, free: 64.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005827/0.4988, allocations: 140.5 kB / 0.5563 GB, free: 64.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.4988, allocations: 11.34 kB / 0.5563 GB, free: 64.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006857/0.4995, allocations: 1.197 MB / 0.5575 GB, free: 63.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4995, allocations: 0 / 0.5575 GB, free: 63.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.501, allocations: 1.208 MB / 0.5586 GB, free: 62.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.5011, allocations: 158.9 kB / 0.5588 GB, free: 62.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.746e-05/0.5012, allocations: 10.23 kB / 0.5588 GB, free: 62.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.5014, allocations: 10.56 kB / 0.5588 GB, free: 62.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.799e-05/0.5015, allocations: 22.78 kB / 0.5588 GB, free: 62.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.5015, allocations: 15.8 kB / 0.5588 GB, free: 62.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.5017, allocations: 226 kB / 0.5591 GB, free: 62.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5017, allocations: 4 kB / 0.5591 GB, free: 62.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0026/0.5043, allocations: 0.9315 MB / 0.56 GB, free: 62.39 MB / 414.1 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.003092/0.5074, allocations: 0.9697 MB / 0.5609 GB, free: 62.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.5089, allocations: 0.7027 MB / 0.5616 GB, free: 61.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5089, allocations: 4.938 kB / 0.5616 GB, free: 61.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005312/0.5095, allocations: 384.7 kB / 0.562 GB, free: 61.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.5106, allocations: 213 kB / 0.5622 GB, free: 61.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.5121, allocations: 1.317 MB / 0.5635 GB, free: 60.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.5124, allocations: 0.8481 MB / 0.5643 GB, free: 59.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.411e-05/0.5125, allocations: 41.41 kB / 0.5643 GB, free: 59.95 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5125, allocations: 0 / 0.5643 GB, free: 59.95 MB / 414.1 MB Notification: Performance of Templates: time 0.02479/0.5373, allocations: 23.95 MB / 0.5877 GB, free: 36.59 MB / 414.1 MB 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)