Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.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.TestAccumulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator") translateModel(ThermoPower.Test.WaterComponents.TestAccumulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 97.73 kB / 16.5 MB, free: 6.695 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.001418/0.001418, allocations: 190.4 kB / 17.42 MB, free: 6.094 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.491/1.491, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2985/0.2985, allocations: 48.84 MB / 319.5 MB, free: 11.32 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.00141/0.00141, allocations: 64.31 kB / 389.4 MB, free: 49.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09889, allocations: 59.16 MB / 448.5 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestAccumulator): time 0.03485/0.1338, allocations: 33.4 MB / 481.9 MB, free: 8.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.1449, allocations: 8.853 MB / 490.8 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003491/0.1453, allocations: 7.938 kB / 490.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005261/0.1459, allocations: 111.3 kB / 490.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004044/0.1463, allocations: 190.8 kB / 491.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01025/0.1566, allocations: 3.501 MB / 494.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.1576, allocations: 0.7627 MB / 495.3 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003632/0.158, allocations: 194.8 kB / 495.5 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.1583, allocations: 191.2 kB / 495.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.1586, allocations: 226.9 kB / 495.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.1587, allocations: 16 kB / 495.9 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01044/0.1691, allocations: 5.939 MB / 0.4901 GB, free: 4.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.1693, allocations: 67.67 kB / 0.4902 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000276/0.1696, allocations: 179 kB / 0.4904 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008009/0.1776, allocations: 3.516 MB / 0.4938 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1776, allocations: 0 / 0.4938 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1777, allocations: 0 / 0.4938 GB, free: 0.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1777, allocations: 0 / 0.4938 GB, free: 0.957 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002753/0.1804, allocations: 1.041 MB / 0.4948 GB, free: 15.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1805, allocations: 12.03 kB / 0.4948 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000182/0.1807, allocations: 48.45 kB / 0.4949 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.1811, allocations: 311.2 kB / 0.4952 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.1812, allocations: 16.94 kB / 0.4952 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-05/0.1812, allocations: 28.38 kB / 0.4952 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007113/0.182, allocations: 321.2 kB / 0.4955 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.182, allocations: 7.938 kB / 0.4955 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.182, allocations: 8 kB / 0.4955 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.182, allocations: 8 kB / 0.4955 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006154/0.1827, allocations: 238.1 kB / 0.4958 GB, free: 14.83 MB / 398.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.001684/0.1844, allocations: 1.333 MB / 0.4971 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005762/0.1849, allocations: 227.1 kB / 0.4973 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.1852, allocations: 121.6 kB / 0.4974 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2753/0.4606, allocations: 31.97 MB / 0.5286 GB, free: 81.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.4606, allocations: 35.44 kB / 0.5286 GB, free: 81.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 3.096e-06/0.4607, allocations: 0 / 0.5286 GB, free: 81.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.003012/0.4637, allocations: 1.039 MB / 0.5297 GB, free: 81.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.4637, allocations: 54.69 kB / 0.5297 GB, free: 81.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004266/0.4642, allocations: 312.8 kB / 0.53 GB, free: 81.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.4642, allocations: 34.7 kB / 0.53 GB, free: 81.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.4643, allocations: 183.5 kB / 0.5302 GB, free: 81.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.483e-05/0.4644, allocations: 96.48 kB / 0.5303 GB, free: 81.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.4645, allocations: 52.91 kB / 0.5304 GB, free: 81.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.022e-05/0.4646, allocations: 344.6 kB / 0.5307 GB, free: 80.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.4649, allocations: 112.1 kB / 0.5308 GB, free: 80.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.4652, allocations: 134.7 kB / 0.5309 GB, free: 80.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005786/0.4658, allocations: 245 kB / 0.5312 GB, free: 80.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4658, allocations: 0 / 0.5312 GB, free: 80.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001356/0.4672, allocations: 0.4894 MB / 0.5316 GB, free: 80.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.4672, allocations: 5.328 kB / 0.5316 GB, free: 80.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.4672, allocations: 0.9375 kB / 0.5316 GB, free: 80.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.4685, allocations: 256 kB / 0.5319 GB, free: 80.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.4687, allocations: 35.17 kB / 0.5319 GB, free: 80.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.4697, allocations: 0.7995 MB / 0.5327 GB, free: 80.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.47, allocations: 29.31 kB / 0.5327 GB, free: 80.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.891e-05/0.4701, allocations: 11.72 kB / 0.5327 GB, free: 80.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003281/0.4704, allocations: 209 kB / 0.5329 GB, free: 80.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002425/0.4707, allocations: 131.1 kB / 0.5331 GB, free: 80.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004627/0.4712, allocations: 244 kB / 0.5333 GB, free: 80.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.214e-06/0.4712, allocations: 1.031 kB / 0.5333 GB, free: 80.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization_lambda0): time 0.001229/0.4724, allocations: 475 kB / 0.5338 GB, free: 80.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.4724, allocations: 6.016 kB / 0.5338 GB, free: 80.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-06/0.4724, allocations: 0 / 0.5338 GB, free: 80.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001134/0.4736, allocations: 249.6 kB / 0.534 GB, free: 80 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.4737, allocations: 35.53 kB / 0.534 GB, free: 79.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008167/0.4746, allocations: 0.7954 MB / 0.5348 GB, free: 79.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.4748, allocations: 30.61 kB / 0.5348 GB, free: 79.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.4749, allocations: 5.562 kB / 0.5348 GB, free: 79.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (Accumulator1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(6,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.475, allocations: 195.3 kB / 0.535 GB, free: 79.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.456e-05/0.4751, allocations: 32.91 kB / 0.5351 GB, free: 79.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.4762, allocations: 0.5542 MB / 0.5356 GB, free: 78.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.4762, allocations: 4.641 kB / 0.5356 GB, free: 78.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.4762, allocations: 2.25 kB / 0.5356 GB, free: 78.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.4762, allocations: 2.516 kB / 0.5356 GB, free: 78.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.4779, allocations: 1.039 MB / 0.5366 GB, free: 78.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.4779, allocations: 2.656 kB / 0.5366 GB, free: 78.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.4783, allocations: 67.78 kB / 0.5367 GB, free: 78.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002815/0.4786, allocations: 61.19 kB / 0.5368 GB, free: 78.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.4786, allocations: 7.766 kB / 0.5368 GB, free: 78.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009574/0.4796, allocations: 1.336 MB / 0.5381 GB, free: 76.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4796, allocations: 1.906 kB / 0.5381 GB, free: 76.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.4808, allocations: 0.6846 MB / 0.5387 GB, free: 76.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.4809, allocations: 135.1 kB / 0.5389 GB, free: 76.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.481, allocations: 6.188 kB / 0.5389 GB, free: 76.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.4813, allocations: 25.41 kB / 0.5389 GB, free: 76.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.114e-05/0.4814, allocations: 24.72 kB / 0.5389 GB, free: 76.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.4814, allocations: 6.516 kB / 0.5389 GB, free: 76.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002401/0.4816, allocations: 222.5 kB / 0.5391 GB, free: 76.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.4817, allocations: 0 / 0.5391 GB, free: 76.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002541/0.4842, allocations: 0.8797 MB / 0.54 GB, free: 76.28 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Accumulator1.zl,Accumulator1.hl,Accumulator1.Mg,Accumulator1.Tg) * Number of discrete variables: 2 ($cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00451/0.4887, allocations: 0.9412 MB / 0.5409 GB, free: 76.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00193/0.4907, allocations: 0.5815 MB / 0.5415 GB, free: 75.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4907, allocations: 1.188 kB / 0.5415 GB, free: 75.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005491/0.4913, allocations: 319.6 kB / 0.5418 GB, free: 75.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009894/0.4923, allocations: 150.7 kB / 0.5419 GB, free: 75.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.494, allocations: 1.117 MB / 0.543 GB, free: 75.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.4942, allocations: 0.8008 MB / 0.5438 GB, free: 74.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000212/0.4945, allocations: 35.03 kB / 0.5438 GB, free: 74.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-05/0.4946, allocations: 26.8 kB / 0.5439 GB, free: 74.33 MB / 414.1 MB Notification: Performance of SimCode: time 1.803e-06/0.4946, allocations: 0 / 0.5439 GB, free: 74.33 MB / 414.1 MB Notification: Performance of Templates: time 0.04464/0.5392, allocations: 33.79 MB / 0.5769 GB, free: 47.28 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe 2>&1)