Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.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.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",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.001144/0.001144, allocations: 104.7 kB / 16.94 MB, free: 5.785 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.001141/0.001141, allocations: 187.5 kB / 17.87 MB, free: 5.148 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.184/1.184, 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.2367/0.2367, allocations: 48.84 MB / 319.9 MB, free: 11.08 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.001252/0.001252, allocations: 67.52 kB / 390.2 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07371/0.07497, allocations: 59.15 MB / 449.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestBarometricCondenser): time 0.04214/0.1171, allocations: 50.96 MB / 0.4886 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01568/0.1329, allocations: 17.11 MB / 0.5053 GB, free: 5.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.1332, allocations: 11.94 kB / 0.5054 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006074/0.1338, allocations: 266.4 kB / 0.5056 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004864/0.1387, allocations: 2.366 MB / 0.5079 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007047/0.1458, allocations: 3.242 MB / 0.5111 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009352/0.1467, allocations: 0.8523 MB / 0.5119 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003874/0.1471, allocations: 308.5 kB / 0.5122 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003349/0.1475, allocations: 342.8 kB / 0.5125 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003793/0.1478, allocations: 366.5 kB / 0.5129 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.1479, allocations: 32 kB / 0.5129 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01102/0.1589, allocations: 7.449 MB / 0.5202 GB, free: 6.066 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.1591, allocations: 99.61 kB / 0.5203 GB, free: 5.969 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.1593, allocations: 254.8 kB / 0.5205 GB, free: 5.719 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006464/0.1658, allocations: 4.604 MB / 0.525 GB, free: 1.105 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1658, allocations: 8 kB / 0.525 GB, free: 1.098 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1658, allocations: 0 / 0.525 GB, free: 1.098 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1658, allocations: 0 / 0.525 GB, free: 1.098 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.1459/0.3117, allocations: 1.356 MB / 0.5264 GB, free: 86.15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.3118, allocations: 13.86 kB / 0.5264 GB, free: 86.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.019e-05/0.3119, allocations: 71.98 kB / 0.5264 GB, free: 86.11 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000946/0.3128, allocations: 149.2 kB / 0.5266 GB, free: 86.08 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000342/0.3132, allocations: 358.4 kB / 0.5269 GB, free: 85.83 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.322e-05/0.3132, allocations: 25.16 kB / 0.5269 GB, free: 85.83 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.3132, allocations: 38.39 kB / 0.527 GB, free: 85.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006792/0.3139, allocations: 478.8 kB / 0.5274 GB, free: 85.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.314, allocations: 5.219 kB / 0.5274 GB, free: 85.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.314, allocations: 16.91 kB / 0.5275 GB, free: 85.7 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.314, allocations: 12.8 kB / 0.5275 GB, free: 85.7 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005341/0.3145, allocations: 305.7 kB / 0.5278 GB, free: 85.69 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.001569/0.3161, allocations: 2.5 MB / 0.5302 GB, free: 83.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004839/0.3166, allocations: 276 kB / 0.5305 GB, free: 83.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.3168, allocations: 158 kB / 0.5306 GB, free: 83.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04815/0.365, allocations: 32.45 MB / 0.5623 GB, free: 60.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005102/0.3655, allocations: 301.4 kB / 0.5626 GB, free: 60.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.164e-06/0.3655, allocations: 0 / 0.5626 GB, free: 60.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=36): time 0.002915/0.3684, allocations: 1.699 MB / 0.5643 GB, free: 58.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.3685, allocations: 144.4 kB / 0.5644 GB, free: 58.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002824/0.3688, allocations: 397.6 kB / 0.5648 GB, free: 58.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.3688, allocations: 37.45 kB / 0.5648 GB, free: 58.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.803e-05/0.3689, allocations: 245.1 kB / 0.565 GB, free: 58.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.369, allocations: 107.1 kB / 0.5651 GB, free: 58.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.908e-05/0.3691, allocations: 83.8 kB / 0.5652 GB, free: 58.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.307e-05/0.3691, allocations: 357.1 kB / 0.5656 GB, free: 57.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.3693, allocations: 139.6 kB / 0.5657 GB, free: 57.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.3695, allocations: 212.9 kB / 0.5659 GB, free: 57.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.3698, allocations: 468.3 kB / 0.5664 GB, free: 57.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3698, allocations: 0 / 0.5664 GB, free: 57.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007982/0.3707, allocations: 0.6194 MB / 0.567 GB, free: 56.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.368e-05/0.3707, allocations: 71.39 kB / 0.567 GB, free: 56.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3707, allocations: 5.422 kB / 0.567 GB, free: 56.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3718, allocations: 162.3 kB / 0.5672 GB, free: 56.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.372, allocations: 58.7 kB / 0.5672 GB, free: 56.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005726/0.3725, allocations: 1.138 MB / 0.5684 GB, free: 55.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.3727, allocations: 15.88 kB / 0.5684 GB, free: 55.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.3728, allocations: 23.59 kB / 0.5684 GB, free: 55.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 15 (coolingFlowRate.nextEventScaled,coolingFlowRate.nextEvent,$PRE.coolingFlowRate.nextEvent,coolingFlowRate.last,coolingFlowRate.b,coolingFlowRate.a,steamFlowRate.nextEventScaled,steamFlowRate.nextEvent,$PRE.steamFlowRate.nextEvent,steamFlowRate.last,steamFlowRate.b,steamFlowRate.a,$whenCondition2,$whenCondition1,tank.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 2 * 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), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.3729, allocations: 254 kB / 0.5686 GB, free: 55.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.606e-05/0.373, allocations: 47.44 kB / 0.5687 GB, free: 55.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001355/0.3744, allocations: 1.575 MB / 0.5702 GB, free: 53.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.3744, allocations: 15.98 kB / 0.5702 GB, free: 53.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3744, allocations: 9.484 kB / 0.5702 GB, free: 53.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3744, allocations: 3.938 kB / 0.5702 GB, free: 53.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000442/0.3749, allocations: 0.7352 MB / 0.571 GB, free: 52.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3749, allocations: 0 / 0.571 GB, free: 52.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.3751, allocations: 46.22 kB / 0.571 GB, free: 52.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004407/0.3755, allocations: 246.4 kB / 0.5712 GB, free: 52.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.3755, allocations: 16 kB / 0.5713 GB, free: 52.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005344/0.3761, allocations: 1.336 MB / 0.5726 GB, free: 51.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3761, allocations: 0 / 0.5726 GB, free: 51.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.3775, allocations: 1.708 MB / 0.5742 GB, free: 49.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.3776, allocations: 184.1 kB / 0.5744 GB, free: 49.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.3777, allocations: 8 kB / 0.5744 GB, free: 49.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.3779, allocations: 15.98 kB / 0.5744 GB, free: 49.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.3779, allocations: 23.97 kB / 0.5744 GB, free: 49.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.748e-05/0.378, allocations: 16 kB / 0.5745 GB, free: 49.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.3782, allocations: 283 kB / 0.5747 GB, free: 48.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3782, allocations: 0 / 0.5747 GB, free: 48.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002042/0.3802, allocations: 1.11 MB / 0.5758 GB, free: 47.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (barometricCondenser.hl,tank.y,tank.h) * Number of discrete variables: 22 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$whenCondition1,$whenCondition2,steamFlowRate.a,steamFlowRate.b,steamFlowRate.last,steamFlowRate.nextEvent,steamFlowRate.nextEventScaled,coolingFlowRate.a,coolingFlowRate.b,coolingFlowRate.last,coolingFlowRate.nextEvent,coolingFlowRate.nextEventScaled) * Number of discrete states: 12 (steamFlowRate.nextEvent,steamFlowRate.last,steamFlowRate.nextEventScaled,steamFlowRate.b,steamFlowRate.a,$whenCondition1,coolingFlowRate.nextEvent,coolingFlowRate.last,coolingFlowRate.nextEventScaled,coolingFlowRate.b,coolingFlowRate.a,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005108/0.3853, allocations: 3.315 MB / 0.5791 GB, free: 44.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008552/0.3862, allocations: 0.7499 MB / 0.5798 GB, free: 43.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3862, allocations: 0 / 0.5798 GB, free: 43.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004857/0.3867, allocations: 0.5992 MB / 0.5804 GB, free: 43.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000762/0.3875, allocations: 201 kB / 0.5806 GB, free: 43.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/0.3928, allocations: 5.326 MB / 0.5858 GB, free: 37.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.393, allocations: 0.9151 MB / 0.5867 GB, free: 36.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001684/0.3932, allocations: 84.66 kB / 0.5867 GB, free: 36.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.3933, allocations: 215.4 kB / 0.5869 GB, free: 36.36 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3933, allocations: 0 / 0.5869 GB, free: 36.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05982/0.4532, allocations: 47.36 MB / 0.6332 GB, free: 4.918 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.11, allocations: 0 / 0.6332 GB, free: 4.918 MB / 430.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe 2>&1)