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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 103.2 kB / 17.59 MB, free: 5.43 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.001593/0.001594, allocations: 195.3 kB / 18.52 MB, free: 4.504 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.495/1.495, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3048/0.3048, allocations: 48.84 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.002125/0.002125, allocations: 67.06 kB / 390.7 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09592/0.09806, allocations: 59.17 MB / 449.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal): time 0.04831/0.1464, allocations: 45.38 MB / 495.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.1616, allocations: 11.57 MB / 0.495 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007205/0.1623, allocations: 11.94 kB / 0.495 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009815/0.1633, allocations: 345.8 kB / 0.4953 GB, free: 284 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.1648, allocations: 0.6259 MB / 0.4959 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01221/0.177, allocations: 4.224 MB / 0.5001 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002801/0.1798, allocations: 1.789 MB / 0.5018 GB, free: 9.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007965/0.1806, allocations: 0.5127 MB / 0.5023 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.1817, allocations: 0.6424 MB / 0.5029 GB, free: 8.434 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.1827, allocations: 0.7199 MB / 0.5036 GB, free: 7.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.1829, allocations: 72 kB / 0.5037 GB, free: 7.641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01262/0.1955, allocations: 6.201 MB / 0.5098 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000565/0.1961, allocations: 307.1 kB / 0.5101 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007905/0.1969, allocations: 481.7 kB / 0.5105 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01085/0.2078, allocations: 4.319 MB / 0.5147 GB, free: 12.33 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.2078, allocations: 3.938 kB / 0.5147 GB, free: 12.33 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2078, allocations: 0 / 0.5147 GB, free: 12.33 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.2079, allocations: 0 / 0.5147 GB, free: 12.33 MB / 414.1 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.004994/0.2129, allocations: 1.665 MB / 0.5164 GB, free: 10.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2129, allocations: 15.83 kB / 0.5164 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.214, allocations: 203.7 kB / 0.5166 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.2151, allocations: 0.5851 MB / 0.5171 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.091e-05/0.2152, allocations: 50.38 kB / 0.5172 GB, free: 9.727 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.2153, allocations: 80.27 kB / 0.5173 GB, free: 9.648 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004228/0.2195, allocations: 1.722 MB / 0.5189 GB, free: 7.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.2196, allocations: 0 / 0.5189 GB, free: 7.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.513e-05/0.2197, allocations: 36 kB / 0.519 GB, free: 7.875 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.007e-05/0.2197, allocations: 33.98 kB / 0.519 GB, free: 7.844 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004254/0.224, allocations: 1.639 MB / 0.5206 GB, free: 6.203 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.005375/0.2294, allocations: 3.672 MB / 0.5242 GB, free: 2.164 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003378/0.2328, allocations: 1.203 MB / 0.5254 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004789/0.2333, allocations: 290.4 kB / 0.5257 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2913/0.5246, allocations: 63.95 MB / 0.5881 GB, free: 31.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.5247, allocations: 43.06 kB / 0.5881 GB, free: 31.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=56): time 2.635e-06/0.5247, allocations: 0 / 0.5881 GB, free: 31.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=56): time 0.005888/0.5306, allocations: 2.104 MB / 0.5902 GB, free: 29.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.5307, allocations: 60.73 kB / 0.5903 GB, free: 29.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004968/0.5312, allocations: 0.5161 MB / 0.5908 GB, free: 29.04 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.932e-05/0.5313, allocations: 37.7 kB / 0.5908 GB, free: 29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.5314, allocations: 360.4 kB / 0.5911 GB, free: 28.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.5316, allocations: 200.5 kB / 0.5913 GB, free: 28.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003046/0.5319, allocations: 234.1 kB / 0.5916 GB, free: 28.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.477e-05/0.532, allocations: 374.7 kB / 0.5919 GB, free: 27.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000685/0.5327, allocations: 0.5148 MB / 0.5924 GB, free: 27.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007614/0.5335, allocations: 0.6454 MB / 0.593 GB, free: 26.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.5349, allocations: 1.114 MB / 0.5941 GB, free: 25.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.5349, allocations: 0 / 0.5941 GB, free: 25.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002945/0.5379, allocations: 1.867 MB / 0.596 GB, free: 23.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.5379, allocations: 11.94 kB / 0.596 GB, free: 23.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.5379, allocations: 4 kB / 0.596 GB, free: 23.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003771/0.5417, allocations: 1.621 MB / 0.5976 GB, free: 22.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.542, allocations: 65.03 kB / 0.5976 GB, free: 22.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/0.5447, allocations: 2.185 MB / 0.5998 GB, free: 19.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007286/0.5455, allocations: 67.38 kB / 0.5998 GB, free: 19.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.5456, allocations: 76.67 kB / 0.5999 GB, free: 19.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009105/0.5465, allocations: 0.6924 MB / 0.6006 GB, free: 18.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007576/0.5473, allocations: 0.6609 MB / 0.6012 GB, free: 18.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001417/0.5487, allocations: 1.113 MB / 0.6023 GB, free: 17.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.478e-06/0.5487, allocations: 0 / 0.6023 GB, free: 17.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.002784/0.5515, allocations: 1.828 MB / 0.6041 GB, free: 15.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.5515, allocations: 4 kB / 0.6041 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.5515, allocations: 7.984 kB / 0.6041 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002788/0.5543, allocations: 1.497 MB / 0.6056 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.5546, allocations: 72.27 kB / 0.6056 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002633/0.5572, allocations: 2.147 MB / 0.6077 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007308/0.558, allocations: 59.56 kB / 0.6078 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.5581, allocations: 75.92 kB / 0.6079 GB, free: 11.44 MB / 414.1 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.000291/0.5584, allocations: 211.6 kB / 0.6081 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002378/0.5587, allocations: 67.19 kB / 0.6081 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005497/0.5642, allocations: 7.931 MB / 0.6159 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.5642, allocations: 15.98 kB / 0.6159 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.5642, allocations: 0 / 0.6159 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.5642, allocations: 3.984 kB / 0.6159 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002762/0.567, allocations: 3.81 MB / 0.6196 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.567, allocations: 0 / 0.6196 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/0.5686, allocations: 220.9 kB / 0.6198 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006569/0.5693, allocations: 143.8 kB / 0.62 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.5694, allocations: 19.97 kB / 0.62 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004112/0.5735, allocations: 4.243 MB / 0.6241 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.5735, allocations: 10.09 kB / 0.6241 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003444/0.577, allocations: 1.923 MB / 0.626 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004755/0.5775, allocations: 243.7 kB / 0.6262 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.5777, allocations: 14.77 kB / 0.6262 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006464/0.5783, allocations: 39.97 kB / 0.6263 GB, free: 7.961 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.5785, allocations: 51.05 kB / 0.6263 GB, free: 7.914 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.91e-05/0.5785, allocations: 19.98 kB / 0.6264 GB, free: 7.895 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005464/0.5791, allocations: 362.8 kB / 0.6267 GB, free: 7.543 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5791, allocations: 0 / 0.6267 GB, free: 7.543 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003773/0.5829, allocations: 1.2 MB / 0.6279 GB, free: 6.402 MB / 430.1 MB 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.004534/0.5874, allocations: 0.9807 MB / 0.6288 GB, free: 5.566 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005123/0.5926, allocations: 2.172 MB / 0.631 GB, free: 3.406 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5926, allocations: 0 / 0.631 GB, free: 3.406 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/0.5949, allocations: 0.8849 MB / 0.6318 GB, free: 2.492 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/0.5969, allocations: 318.4 kB / 0.6321 GB, free: 2.199 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.6012, allocations: 2.175 MB / 0.6342 GB, free: 8 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008817/0.6021, allocations: 1.07 MB / 0.6353 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003281/0.6025, allocations: 63.41 kB / 0.6353 GB, free: 14.85 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6025, allocations: 0 / 0.6353 GB, free: 14.85 MB / 446.1 MB Notification: Performance of Templates: time 0.05286/0.6553, allocations: 36.32 MB / 0.6708 GB, free: 10.48 MB / 478.1 MB 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)