Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.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.TestExpansionTankIdeal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal") translateModel(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001674/0.001674, 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.301/1.301, allocations: 205.1 MB / 223.1 MB, free: 8.473 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.001016/0.001016, allocations: 103.3 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3708/0.3708, allocations: 48.83 MB / 366.7 MB, free: 46.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001008/0.001008, allocations: 55.92 kB / 436.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09375/0.09477, allocations: 59.16 MB / 495.8 MB, free: 132 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal): time 0.2067/0.3015, allocations: 46.21 MB / 0.5293 GB, free: 33.52 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01175/0.3133, allocations: 12.37 MB / 0.5413 GB, free: 24.98 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007978/0.3141, allocations: 14.5 kB / 0.5414 GB, free: 24.98 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008433/0.315, allocations: 296.5 kB / 0.5416 GB, free: 24.82 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00121/0.3162, allocations: 0.6191 MB / 0.5422 GB, free: 24.48 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009432/0.3257, allocations: 3.394 MB / 0.5456 GB, free: 22.98 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003115/0.3288, allocations: 2.921 MB / 0.5484 GB, free: 22.07 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006327/0.3295, allocations: 454.3 kB / 0.5488 GB, free: 21.92 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008063/0.3303, allocations: 0.5674 MB / 0.5494 GB, free: 21.71 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008053/0.3311, allocations: 0.7592 MB / 0.5501 GB, free: 21.43 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.165e-05/0.3312, allocations: 37.47 kB / 0.5502 GB, free: 21.43 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01101/0.3422, allocations: 6.253 MB / 0.5563 GB, free: 18.64 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004666/0.3427, allocations: 282.8 kB / 0.5566 GB, free: 18.46 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006129/0.3434, allocations: 447.2 kB / 0.557 GB, free: 18.2 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008182/0.3515, allocations: 4.307 MB / 0.5612 GB, free: 15.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3516, allocations: 3.938 kB / 0.5612 GB, free: 15.44 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3516, allocations: 1.469 kB / 0.5612 GB, free: 15.44 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.3516, allocations: 4 kB / 0.5612 GB, free: 15.44 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.005341/0.357, allocations: 1.66 MB / 0.5628 GB, free: 14.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.357, allocations: 12.38 kB / 0.5628 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009997/0.358, allocations: 205.6 kB / 0.563 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.3592, allocations: 0.5775 MB / 0.5636 GB, free: 13.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.3592, allocations: 51.16 kB / 0.5636 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3594, allocations: 76.14 kB / 0.5637 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003641/0.363, allocations: 1.728 MB / 0.5654 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.363, allocations: 0 / 0.5654 GB, free: 12.65 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.499e-05/0.3631, allocations: 25.5 kB / 0.5654 GB, free: 12.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.336e-05/0.3632, allocations: 42.33 kB / 0.5655 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00362/0.3668, allocations: 1.64 MB / 0.5671 GB, free: 11.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.004124/0.3709, allocations: 3.653 MB / 0.5706 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00285/0.3738, allocations: 1.193 MB / 0.5718 GB, free: 7.852 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.3742, allocations: 290.4 kB / 0.5721 GB, free: 7.707 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1277/0.5019, allocations: 63.97 MB / 0.6345 GB, free: 1.277 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.502, allocations: 43.12 kB / 0.6346 GB, free: 1.223 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.785e-06/0.502, allocations: 0 / 0.6346 GB, free: 1.223 MB / 458.7 MB Notification: Performance of matching and sorting (n=56): time 0.006668/0.5087, allocations: 2.098 MB / 0.6366 GB, free: 15.07 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.5087, allocations: 63.97 kB / 0.6367 GB, free: 15 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006119/0.5093, allocations: 0.5185 MB / 0.6372 GB, free: 14.47 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.281e-05/0.5094, allocations: 41.7 kB / 0.6372 GB, free: 14.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002433/0.5097, allocations: 348 kB / 0.6376 GB, free: 14.08 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.5099, allocations: 205.1 kB / 0.6378 GB, free: 13.88 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003821/0.5103, allocations: 230.1 kB / 0.638 GB, free: 13.64 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.5104, allocations: 374.8 kB / 0.6383 GB, free: 13.27 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000865/0.5113, allocations: 0.5108 MB / 0.6388 GB, free: 12.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009532/0.5123, allocations: 0.6611 MB / 0.6395 GB, free: 12.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.514, allocations: 1.102 MB / 0.6406 GB, free: 10.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.5141, allocations: 4 kB / 0.6406 GB, free: 10.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003605/0.5177, allocations: 1.866 MB / 0.6424 GB, free: 9.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.5177, allocations: 8 kB / 0.6424 GB, free: 9.012 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.5177, allocations: 4 kB / 0.6424 GB, free: 9.008 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004492/0.5222, allocations: 1.615 MB / 0.644 GB, free: 7.391 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.5225, allocations: 63.89 kB / 0.644 GB, free: 7.328 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/0.5261, allocations: 2.203 MB / 0.6462 GB, free: 5.098 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.5271, allocations: 115.3 kB / 0.6463 GB, free: 4.984 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.5273, allocations: 79.91 kB / 0.6464 GB, free: 4.906 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001198/0.5285, allocations: 0.6946 MB / 0.6471 GB, free: 4.211 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009515/0.5295, allocations: 0.6484 MB / 0.6477 GB, free: 3.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001782/0.5313, allocations: 1.108 MB / 0.6488 GB, free: 2.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.378e-06/0.5313, allocations: 0 / 0.6488 GB, free: 2.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.003406/0.5347, allocations: 1.834 MB / 0.6506 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.5347, allocations: 10.5 kB / 0.6506 GB, free: 500 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5347, allocations: 4 kB / 0.6506 GB, free: 496 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003377/0.5381, allocations: 1.495 MB / 0.652 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.5384, allocations: 71.89 kB / 0.6521 GB, free: 14.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003355/0.5418, allocations: 2.145 MB / 0.6542 GB, free: 12.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.5428, allocations: 115.4 kB / 0.6543 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/0.543, allocations: 71.92 kB / 0.6544 GB, free: 12.56 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (heater.fluidState[2].phase,heater.fluidState[1].phase,boiler.fluidState[2].phase,boiler.fluidState[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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 {(3,37)} Notification: Performance of prepare postOptimizeDAE: time 0.0003403/0.5434, allocations: 224.1 kB / 0.6546 GB, free: 12.33 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002752/0.5436, allocations: 63.25 kB / 0.6547 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007703/0.5513, allocations: 7.925 MB / 0.6624 GB, free: 4.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/0.5514, allocations: 19.97 kB / 0.6624 GB, free: 4.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.5514, allocations: 4 kB / 0.6624 GB, free: 4.316 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.5514, allocations: 3.984 kB / 0.6624 GB, free: 4.312 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003457/0.5549, allocations: 3.806 MB / 0.6661 GB, free: 248 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-06/0.5549, allocations: 4 kB / 0.6661 GB, free: 244 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/0.5565, allocations: 211.7 kB / 0.6663 GB, free: 32 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006624/0.5571, allocations: 153.4 kB / 0.6665 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.609e-05/0.5573, allocations: 19.98 kB / 0.6665 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003028/0.5603, allocations: 4.029 MB / 0.6704 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5603, allocations: 4.031 kB / 0.6704 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.357/0.9173, allocations: 68.76 MB / 0.7376 GB, free: 157.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/0.9177, allocations: 237.2 kB / 0.7378 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.255e-05/0.9178, allocations: 18.89 kB / 0.7378 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/0.9185, allocations: 69.58 kB / 0.7379 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.9187, allocations: 48.48 kB / 0.738 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.094e-05/0.9187, allocations: 18.77 kB / 0.738 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003779/0.9191, allocations: 368.9 kB / 0.7383 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9191, allocations: 5.734 kB / 0.7383 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01231/0.9314, allocations: 3.789 MB / 0.742 GB, free: 156.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (boiler.p,boiler.htilde[1],heater.p,heater.htilde[1]) * Number of discrete variables: 8 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0193/0.9507, allocations: 2.116 MB / 0.7441 GB, free: 156.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003578/0.9544, allocations: 1.99 MB / 0.746 GB, free: 155.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.9544, allocations: 2.672 kB / 0.746 GB, free: 155.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001877/0.9563, allocations: 0.8813 MB / 0.7469 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/0.9579, allocations: 305.2 kB / 0.7472 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004244/0.9622, allocations: 3.73 MB / 0.7508 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.9627, allocations: 1.138 MB / 0.7519 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001042/0.9637, allocations: 260.2 kB / 0.7522 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005187/0.9642, allocations: 82.11 kB / 0.7523 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of SimCode: time 7.42e-07/0.9643, allocations: 0 / 0.7523 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.3519/1.316, allocations: 174.9 MB / 0.9231 GB, free: 156.4 MB / 0.5105 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe 2>&1)