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.001005/0.001005, allocations: 106.6 kB / 16.92 MB, free: 5.77 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.0009657/0.0009657, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.22/1.22, 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.2511/0.2511, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001463/0.001464, allocations: 68.03 kB / 390.2 MB, free: 48.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07801/0.07948, allocations: 59.17 MB / 449.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestBarometricCondenser): time 0.04986/0.1294, allocations: 50.96 MB / 0.4886 GB, free: 6.543 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01697/0.1464, allocations: 17.11 MB / 0.5053 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003799/0.1468, allocations: 7.938 kB / 0.5053 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006878/0.1475, allocations: 266.4 kB / 0.5055 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00543/0.153, allocations: 2.366 MB / 0.5079 GB, free: 2.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007364/0.1604, allocations: 3.246 MB / 0.511 GB, free: 15.47 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009896/0.1614, allocations: 0.8523 MB / 0.5119 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004371/0.1618, allocations: 304.5 kB / 0.5121 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004791/0.1623, allocations: 346.7 kB / 0.5125 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004322/0.1627, allocations: 362.6 kB / 0.5128 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.1628, allocations: 32 kB / 0.5129 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01152/0.1743, allocations: 7.352 MB / 0.52 GB, free: 6.227 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.1745, allocations: 95.62 kB / 0.5201 GB, free: 6.133 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003043/0.1748, allocations: 254.7 kB / 0.5204 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009143/0.184, allocations: 4.608 MB / 0.5249 GB, free: 1.266 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.184, allocations: 4 kB / 0.5249 GB, free: 1.262 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.184, allocations: 4 kB / 0.5249 GB, free: 1.258 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.844e-05/0.1841, allocations: 0 / 0.5249 GB, free: 1.258 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.1593/0.3434, allocations: 1.359 MB / 0.5262 GB, free: 86.14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.3435, allocations: 14.02 kB / 0.5262 GB, free: 86.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.3436, allocations: 72.25 kB / 0.5263 GB, free: 86.1 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.3449, allocations: 153.2 kB / 0.5264 GB, free: 86.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.3454, allocations: 346.9 kB / 0.5268 GB, free: 85.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/0.3455, allocations: 28.66 kB / 0.5268 GB, free: 85.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.484e-05/0.3455, allocations: 39.23 kB / 0.5268 GB, free: 85.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008379/0.3464, allocations: 480.9 kB / 0.5273 GB, free: 85.69 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.3464, allocations: 6.406 kB / 0.5273 GB, free: 85.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.3464, allocations: 17.22 kB / 0.5273 GB, free: 85.69 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3465, allocations: 7.438 kB / 0.5273 GB, free: 85.69 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006066/0.3471, allocations: 311.5 kB / 0.5276 GB, free: 85.68 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.001969/0.349, allocations: 2.501 MB / 0.5301 GB, free: 83.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006015/0.3497, allocations: 278.4 kB / 0.5303 GB, free: 83.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.3499, allocations: 160.3 kB / 0.5305 GB, free: 83.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05755/0.4075, allocations: 32.46 MB / 0.5622 GB, free: 60.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005408/0.408, allocations: 299.2 kB / 0.5625 GB, free: 60.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=32): time 2.735e-06/0.408, allocations: 0 / 0.5625 GB, free: 60.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=36): time 0.003102/0.4112, allocations: 1.709 MB / 0.5641 GB, free: 58.99 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.4112, allocations: 144.3 kB / 0.5643 GB, free: 58.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.4115, allocations: 400.6 kB / 0.5646 GB, free: 58.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.4116, allocations: 29.7 kB / 0.5647 GB, free: 58.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.4117, allocations: 242.8 kB / 0.5649 GB, free: 58.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.248e-05/0.4118, allocations: 118 kB / 0.565 GB, free: 58.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.086e-05/0.4119, allocations: 73.45 kB / 0.5651 GB, free: 58.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.4119, allocations: 358.6 kB / 0.5654 GB, free: 57.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.4121, allocations: 132.9 kB / 0.5656 GB, free: 57.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.4123, allocations: 217.3 kB / 0.5658 GB, free: 57.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000413/0.4127, allocations: 471.8 kB / 0.5662 GB, free: 57.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4127, allocations: 0 / 0.5662 GB, free: 57.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008282/0.4136, allocations: 0.6185 MB / 0.5668 GB, free: 56.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.4136, allocations: 68.08 kB / 0.5669 GB, free: 56.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4136, allocations: 8 kB / 0.5669 GB, free: 56.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.4147, allocations: 165.6 kB / 0.567 GB, free: 56.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.4149, allocations: 55.36 kB / 0.5671 GB, free: 56.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005881/0.4155, allocations: 1.131 MB / 0.5682 GB, free: 55.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.4158, allocations: 19.88 kB / 0.5682 GB, free: 55.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.4158, allocations: 19.06 kB / 0.5682 GB, free: 55.47 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.0001812/0.416, allocations: 258.6 kB / 0.5685 GB, free: 55.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/0.4161, allocations: 47.44 kB / 0.5685 GB, free: 55.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.4175, allocations: 1.582 MB / 0.5701 GB, free: 53.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.4175, allocations: 15.98 kB / 0.5701 GB, free: 53.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4175, allocations: 3.984 kB / 0.5701 GB, free: 53.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.4175, allocations: 5.016 kB / 0.5701 GB, free: 53.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004896/0.418, allocations: 0.7314 MB / 0.5708 GB, free: 52.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.418, allocations: 2.719 kB / 0.5708 GB, free: 52.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.4182, allocations: 43.97 kB / 0.5709 GB, free: 52.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004588/0.4187, allocations: 253.3 kB / 0.5711 GB, free: 52.47 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.4187, allocations: 12.94 kB / 0.5711 GB, free: 52.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000568/0.4193, allocations: 1.345 MB / 0.5724 GB, free: 51.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4193, allocations: 0 / 0.5724 GB, free: 51.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.4208, allocations: 1.703 MB / 0.5741 GB, free: 49.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.4209, allocations: 184.1 kB / 0.5743 GB, free: 49.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.536e-05/0.421, allocations: 12 kB / 0.5743 GB, free: 49.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.4212, allocations: 11.98 kB / 0.5743 GB, free: 49.11 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.4213, allocations: 27.59 kB / 0.5743 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.4213, allocations: 12 kB / 0.5743 GB, free: 49.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001996/0.4215, allocations: 287.1 kB / 0.5746 GB, free: 48.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4215, allocations: 0 / 0.5746 GB, free: 48.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00249/0.424, allocations: 1.11 MB / 0.5757 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.005814/0.4298, allocations: 3.331 MB / 0.5789 GB, free: 44.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.4309, allocations: 0.7591 MB / 0.5797 GB, free: 43.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.431, allocations: 4 kB / 0.5797 GB, free: 43.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005188/0.4315, allocations: 0.5911 MB / 0.5803 GB, free: 43.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009444/0.4324, allocations: 192.8 kB / 0.5804 GB, free: 43.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006018/0.4385, allocations: 5.3 MB / 0.5856 GB, free: 37.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.4387, allocations: 0.9073 MB / 0.5865 GB, free: 36.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002658/0.439, allocations: 91.77 kB / 0.5866 GB, free: 36.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.4392, allocations: 223.4 kB / 0.5868 GB, free: 36.38 MB / 414.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4392, allocations: 4 kB / 0.5868 GB, free: 36.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06692/0.5062, allocations: 47.48 MB / 0.6332 GB, free: 4.785 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.66, allocations: 8.047 kB / 0.6332 GB, free: 4.777 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe 2>&1)