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.00111/0.00111, allocations: 108 kB / 16.92 MB, free: 6.332 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.001185/0.001185, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.167/1.167, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2467/0.2467, 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.00157/0.00157, allocations: 68.72 kB / 390.2 MB, free: 48.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08061/0.08219, allocations: 59.16 MB / 449.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestBarometricCondenser): time 0.04787/0.1301, allocations: 50.96 MB / 0.4886 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.1474, allocations: 17.11 MB / 0.5053 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004132/0.1478, allocations: 11.94 kB / 0.5053 GB, free: 5.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007327/0.1486, allocations: 258.5 kB / 0.5055 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005511/0.1541, allocations: 2.37 MB / 0.5079 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007543/0.1617, allocations: 3.242 MB / 0.511 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009869/0.1627, allocations: 0.8523 MB / 0.5119 GB, free: 14.6 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004683/0.1632, allocations: 308.5 kB / 0.5122 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004471/0.1636, allocations: 342.8 kB / 0.5125 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004621/0.1641, allocations: 366.5 kB / 0.5128 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.819e-05/0.1642, allocations: 32 kB / 0.5129 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01163/0.1758, allocations: 7.352 MB / 0.52 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.1759, allocations: 95.62 kB / 0.5201 GB, free: 6.109 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002783/0.1762, allocations: 254.8 kB / 0.5204 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00763/0.1839, allocations: 4.608 MB / 0.5249 GB, free: 1.242 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1839, allocations: 0 / 0.5249 GB, free: 1.242 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1839, allocations: 0 / 0.5249 GB, free: 1.242 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1839, allocations: 0 / 0.5249 GB, free: 1.242 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.1537/0.3376, allocations: 1.359 MB / 0.5262 GB, free: 86.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.3377, allocations: 13.14 kB / 0.5262 GB, free: 86.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.546e-05/0.3378, allocations: 73.45 kB / 0.5263 GB, free: 86.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/0.3389, allocations: 152.6 kB / 0.5264 GB, free: 86.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.3393, allocations: 359.6 kB / 0.5268 GB, free: 85.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.3393, allocations: 28.03 kB / 0.5268 GB, free: 85.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.3394, allocations: 35.19 kB / 0.5268 GB, free: 85.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007455/0.3401, allocations: 481.5 kB / 0.5273 GB, free: 85.79 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.3401, allocations: 4.969 kB / 0.5273 GB, free: 85.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.3402, allocations: 17.69 kB / 0.5273 GB, free: 85.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.3402, allocations: 9.312 kB / 0.5273 GB, free: 85.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005516/0.3408, allocations: 310.5 kB / 0.5276 GB, free: 85.79 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.00169/0.3425, allocations: 2.501 MB / 0.5301 GB, free: 83.83 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.343, allocations: 280.2 kB / 0.5303 GB, free: 83.81 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.3432, allocations: 157.3 kB / 0.5305 GB, free: 83.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05547/0.3987, allocations: 32.46 MB / 0.5622 GB, free: 60.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004893/0.3992, allocations: 298.4 kB / 0.5625 GB, free: 60.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 1.924e-06/0.3992, allocations: 4 kB / 0.5625 GB, free: 60.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=36): time 0.002976/0.4022, allocations: 1.698 MB / 0.5641 GB, free: 59.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/0.4022, allocations: 136.5 kB / 0.5643 GB, free: 58.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002939/0.4025, allocations: 415.7 kB / 0.5646 GB, free: 58.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.4026, allocations: 33.67 kB / 0.5647 GB, free: 58.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.891e-05/0.4027, allocations: 235.5 kB / 0.5649 GB, free: 58.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.562e-05/0.4027, allocations: 113.2 kB / 0.565 GB, free: 58.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.522e-05/0.4028, allocations: 69.22 kB / 0.5651 GB, free: 58.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.333e-05/0.4029, allocations: 362.6 kB / 0.5654 GB, free: 57.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.403, allocations: 134.6 kB / 0.5656 GB, free: 57.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.4032, allocations: 219.5 kB / 0.5658 GB, free: 57.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.4036, allocations: 466.9 kB / 0.5662 GB, free: 57.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.4036, allocations: 0 / 0.5662 GB, free: 57.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007914/0.4044, allocations: 0.6165 MB / 0.5668 GB, free: 57.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.4045, allocations: 75.38 kB / 0.5669 GB, free: 57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.4045, allocations: 0.8438 kB / 0.5669 GB, free: 57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.4056, allocations: 164.5 kB / 0.567 GB, free: 56.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.4058, allocations: 63.81 kB / 0.5671 GB, free: 56.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00056/0.4063, allocations: 1.135 MB / 0.5682 GB, free: 55.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.4065, allocations: 19.95 kB / 0.5682 GB, free: 55.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.4066, allocations: 20 kB / 0.5682 GB, free: 55.57 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.0001611/0.4067, allocations: 250.1 kB / 0.5685 GB, free: 55.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.924e-05/0.4068, allocations: 51.44 kB / 0.5685 GB, free: 55.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/0.4082, allocations: 1.582 MB / 0.5701 GB, free: 53.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.4082, allocations: 25.84 kB / 0.5701 GB, free: 53.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.4082, allocations: 0 / 0.5701 GB, free: 53.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.4082, allocations: 7.922 kB / 0.5701 GB, free: 53.63 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004431/0.4087, allocations: 0.7305 MB / 0.5708 GB, free: 52.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.4087, allocations: 4 kB / 0.5708 GB, free: 52.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001959/0.4089, allocations: 41.91 kB / 0.5709 GB, free: 52.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004497/0.4093, allocations: 249.8 kB / 0.5711 GB, free: 52.56 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.4094, allocations: 11.98 kB / 0.5711 GB, free: 52.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005373/0.4099, allocations: 1.339 MB / 0.5724 GB, free: 51.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4099, allocations: 4.062 kB / 0.5724 GB, free: 51.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.4113, allocations: 1.701 MB / 0.5741 GB, free: 49.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.4114, allocations: 180.1 kB / 0.5743 GB, free: 49.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.547e-05/0.4115, allocations: 12 kB / 0.5743 GB, free: 49.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.4117, allocations: 12 kB / 0.5743 GB, free: 49.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/0.4117, allocations: 23.97 kB / 0.5743 GB, free: 49.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/0.4118, allocations: 21.73 kB / 0.5743 GB, free: 49.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.4119, allocations: 279.1 kB / 0.5746 GB, free: 48.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.412, allocations: 0 / 0.5746 GB, free: 48.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001862/0.4138, allocations: 1.114 MB / 0.5757 GB, free: 47.88 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.004527/0.4184, allocations: 3.337 MB / 0.5789 GB, free: 44.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009629/0.4193, allocations: 0.758 MB / 0.5797 GB, free: 43.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4193, allocations: 0 / 0.5797 GB, free: 43.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004879/0.4198, allocations: 0.5956 MB / 0.5803 GB, free: 43.28 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008503/0.4207, allocations: 193 kB / 0.5804 GB, free: 43.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.4256, allocations: 5.305 MB / 0.5856 GB, free: 37.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.4258, allocations: 0.8994 MB / 0.5865 GB, free: 36.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001849/0.426, allocations: 101.3 kB / 0.5866 GB, free: 36.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.4262, allocations: 219.4 kB / 0.5868 GB, free: 36.43 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4262, allocations: 0 / 0.5868 GB, free: 36.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.697/2.124, allocations: 47.48 MB / 0.6332 GB, free: 4.836 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.29/17.41, allocations: 0 / 0.6332 GB, free: 4.836 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)