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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestAccumulator,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001694/0.001694, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.245/1.245, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2461/0.2461, allocations: 48.84 MB / 319.9 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.001394/0.001394, allocations: 69.47 kB / 390.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07648/0.07789, allocations: 59.15 MB / 449.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestAccumulator): time 0.02867/0.1066, allocations: 32.48 MB / 481.8 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00879/0.1154, allocations: 8.113 MB / 489.9 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.1157, allocations: 4 kB / 489.9 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004342/0.1161, allocations: 142.9 kB / 490.1 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.1165, allocations: 210.5 kB / 490.3 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009807/0.1263, allocations: 4.399 MB / 494.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006598/0.127, allocations: 0.5795 MB / 495.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003235/0.1273, allocations: 235.2 kB / 495.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.1276, allocations: 211.2 kB / 495.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002769/0.1279, allocations: 234.9 kB / 495.9 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.335e-05/0.1279, allocations: 28 kB / 495.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009336/0.1373, allocations: 5.865 MB / 0.4901 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-05/0.1374, allocations: 63.7 kB / 0.4901 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002013/0.1376, allocations: 195 kB / 0.4903 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005083/0.1427, allocations: 3.505 MB / 0.4937 GB, free: 1.238 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1427, allocations: 0 / 0.4937 GB, free: 1.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1427, allocations: 4 kB / 0.4937 GB, free: 1.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1427, allocations: 0 / 0.4937 GB, free: 1.234 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.002178/0.1449, allocations: 1.048 MB / 0.4947 GB, free: 140 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.145, allocations: 11.89 kB / 0.4948 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.576e-05/0.145, allocations: 62.67 kB / 0.4948 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.1452, allocations: 56.45 kB / 0.4949 GB, free: 0 / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.1455, allocations: 299.3 kB / 0.4952 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.1455, allocations: 20.94 kB / 0.4952 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.976e-05/0.1456, allocations: 32.12 kB / 0.4952 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005674/0.1462, allocations: 317.3 kB / 0.4955 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1462, allocations: 0 / 0.4955 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.1462, allocations: 12 kB / 0.4955 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1462, allocations: 4 kB / 0.4955 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005655/0.1468, allocations: 246 kB / 0.4958 GB, free: 15.04 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.001343/0.1482, allocations: 1.329 MB / 0.4971 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000514/0.1487, allocations: 238.2 kB / 0.4973 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.1489, allocations: 124.7 kB / 0.4974 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1889/0.3378, allocations: 31.96 MB / 0.5286 GB, free: 81.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.3379, allocations: 33.62 kB / 0.5287 GB, free: 81.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.254e-06/0.3379, allocations: 0 / 0.5287 GB, free: 81.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002432/0.3403, allocations: 1.037 MB / 0.5297 GB, free: 81.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.209e-05/0.3403, allocations: 53.25 kB / 0.5297 GB, free: 81.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.3406, allocations: 307.6 kB / 0.53 GB, free: 81.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.3407, allocations: 35.36 kB / 0.53 GB, free: 81.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.084e-05/0.3407, allocations: 185.8 kB / 0.5302 GB, free: 81.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.596e-05/0.3408, allocations: 96.38 kB / 0.5303 GB, free: 81.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.576e-05/0.3409, allocations: 48.73 kB / 0.5304 GB, free: 81.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.85e-05/0.341, allocations: 344.9 kB / 0.5307 GB, free: 80.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.3412, allocations: 119.9 kB / 0.5308 GB, free: 80.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.3414, allocations: 129.9 kB / 0.5309 GB, free: 80.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000446/0.3419, allocations: 245.4 kB / 0.5312 GB, free: 80.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.3419, allocations: 0 / 0.5312 GB, free: 80.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001273/0.3432, allocations: 499.2 kB / 0.5316 GB, free: 80.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.3432, allocations: 4.719 kB / 0.5316 GB, free: 80.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3432, allocations: 0 / 0.5316 GB, free: 80.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.3444, allocations: 258.1 kB / 0.5319 GB, free: 80.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.3445, allocations: 35.11 kB / 0.5319 GB, free: 80.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008319/0.3453, allocations: 0.8035 MB / 0.5327 GB, free: 80.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.3456, allocations: 16.05 kB / 0.5327 GB, free: 80.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.3456, allocations: 8.875 kB / 0.5327 GB, free: 80.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002749/0.3459, allocations: 211.3 kB / 0.5329 GB, free: 80.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002186/0.3461, allocations: 128.1 kB / 0.5331 GB, free: 80.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004285/0.3465, allocations: 246.8 kB / 0.5333 GB, free: 80.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-06/0.3465, allocations: 2.594 kB / 0.5333 GB, free: 80.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization_lambda0): time 0.001141/0.3477, allocations: 469 kB / 0.5337 GB, free: 80.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/0.3477, allocations: 8.562 kB / 0.5337 GB, free: 80.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-06/0.3477, allocations: 0 / 0.5337 GB, free: 80.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.3487, allocations: 246.4 kB / 0.534 GB, free: 80 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.3489, allocations: 40.59 kB / 0.534 GB, free: 79.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007574/0.3496, allocations: 0.7827 MB / 0.5348 GB, free: 79.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.3498, allocations: 16.09 kB / 0.5348 GB, free: 79.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.3499, allocations: 5.688 kB / 0.5348 GB, free: 79.39 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 9.982e-05/0.35, allocations: 197.5 kB / 0.535 GB, free: 79.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.51e-05/0.35, allocations: 41.53 kB / 0.535 GB, free: 79.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009621/0.351, allocations: 0.5437 MB / 0.5356 GB, free: 78.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.351, allocations: 8.234 kB / 0.5356 GB, free: 78.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.351, allocations: 7.875 kB / 0.5356 GB, free: 78.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.351, allocations: 1.828 kB / 0.5356 GB, free: 78.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.3525, allocations: 1.036 MB / 0.5366 GB, free: 78.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3525, allocations: 0 / 0.5366 GB, free: 78.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.3528, allocations: 72.42 kB / 0.5367 GB, free: 78.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002517/0.3531, allocations: 59.06 kB / 0.5367 GB, free: 78.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.3531, allocations: 8.172 kB / 0.5367 GB, free: 78.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007775/0.3539, allocations: 1.439 MB / 0.5381 GB, free: 76.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3539, allocations: 0.7031 kB / 0.5381 GB, free: 76.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.355, allocations: 0.6889 MB / 0.5388 GB, free: 76.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.3551, allocations: 135.8 kB / 0.5389 GB, free: 76.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.413e-05/0.3552, allocations: 8.438 kB / 0.5389 GB, free: 76.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.3554, allocations: 15.56 kB / 0.539 GB, free: 76.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.279e-05/0.3555, allocations: 25.53 kB / 0.539 GB, free: 76.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3555, allocations: 10.92 kB / 0.539 GB, free: 76.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001975/0.3557, allocations: 218.3 kB / 0.5392 GB, free: 76.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3557, allocations: 5.156 kB / 0.5392 GB, free: 76.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002017/0.3577, allocations: 0.874 MB / 0.5401 GB, free: 76.18 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.004145/0.3619, allocations: 2.079 MB / 0.5421 GB, free: 75.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.3637, allocations: 0.6084 MB / 0.5427 GB, free: 75.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3637, allocations: 0 / 0.5427 GB, free: 75.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.3642, allocations: 320.1 kB / 0.543 GB, free: 74.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008602/0.365, allocations: 149.8 kB / 0.5431 GB, free: 74.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005398/0.3705, allocations: 3.96 MB / 0.547 GB, free: 72.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.3707, allocations: 0.807 MB / 0.5478 GB, free: 71.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001781/0.3709, allocations: 37.48 kB / 0.5478 GB, free: 71.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.371, allocations: 128.8 kB / 0.5479 GB, free: 71.7 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.371, allocations: 0 / 0.5479 GB, free: 71.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.305/2.676, allocations: 38.91 MB / 0.5859 GB, free: 37.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.54/21.21, allocations: 15.95 kB / 0.586 GB, free: 37.81 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestAccumulator.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestAccumulator.pipe 2>&1)