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.001317/0.001317, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001321/0.001321, allocations: 193.4 kB / 18 MB, free: 5.172 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.452/1.452, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3321/0.3321, allocations: 48.84 MB / 320.1 MB, free: 11 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.002168/0.002168, allocations: 80.09 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1331, allocations: 59.16 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestBarometricCondenser): time 0.318/0.4511, allocations: 50.95 MB / 0.547 GB, free: 4.633 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01968/0.4709, allocations: 17.12 MB / 0.5637 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005003/0.4714, allocations: 10 kB / 0.5637 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007959/0.4722, allocations: 267.4 kB / 0.564 GB, free: 9.898 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007311/0.4796, allocations: 2.365 MB / 0.5663 GB, free: 8.969 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01059/0.4902, allocations: 3.234 MB / 0.5695 GB, free: 7.371 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001505/0.4917, allocations: 0.8616 MB / 0.5703 GB, free: 6.895 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005132/0.4922, allocations: 298.3 kB / 0.5706 GB, free: 6.719 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000562/0.4928, allocations: 342.5 kB / 0.5709 GB, free: 6.543 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005246/0.4933, allocations: 368.7 kB / 0.5713 GB, free: 6.348 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.631e-05/0.4934, allocations: 36.88 kB / 0.5713 GB, free: 6.344 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01813/0.5115, allocations: 7.514 MB / 0.5786 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002171/0.5118, allocations: 98.7 kB / 0.5787 GB, free: 2.363 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005722/0.5124, allocations: 253 kB / 0.579 GB, free: 2.211 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01476/0.5271, allocations: 4.617 MB / 0.5835 GB, free: 15.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.5272, allocations: 0 / 0.5835 GB, free: 15.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.5272, allocations: 0 / 0.5835 GB, free: 15.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.5272, allocations: 4 kB / 0.5835 GB, free: 15.31 MB / 446.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.004024/0.5313, allocations: 1.404 MB / 0.5849 GB, free: 14.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.5313, allocations: 13.67 kB / 0.5849 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.5314, allocations: 75.78 kB / 0.5849 GB, free: 14.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009432/0.5324, allocations: 151.7 kB / 0.5851 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.533, allocations: 371.3 kB / 0.5854 GB, free: 13.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.5331, allocations: 29.88 kB / 0.5855 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.468e-05/0.5331, allocations: 34.38 kB / 0.5855 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009908/0.5341, allocations: 480.3 kB / 0.586 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.5341, allocations: 4.719 kB / 0.586 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.223e-05/0.5342, allocations: 16.12 kB / 0.586 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.5342, allocations: 13.16 kB / 0.586 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000643/0.5349, allocations: 309 kB / 0.5863 GB, free: 13.25 MB / 446.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.002827/0.5377, allocations: 2.502 MB / 0.5887 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/0.5384, allocations: 282.9 kB / 0.589 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002376/0.5386, allocations: 152.8 kB / 0.5892 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07074/0.6093, allocations: 32.6 MB / 0.621 GB, free: 7.414 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008309/0.6102, allocations: 294.8 kB / 0.6213 GB, free: 7.102 MB / 478.1 MB Notification: Performance of pre-optimization done (n=32): time 2.474e-06/0.6102, allocations: 0 / 0.6213 GB, free: 7.102 MB / 478.1 MB Notification: Performance of matching and sorting (n=36): time 0.003991/0.6142, allocations: 1.714 MB / 0.6229 GB, free: 5.27 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.6144, allocations: 148.4 kB / 0.6231 GB, free: 5.094 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004759/0.6149, allocations: 401.9 kB / 0.6235 GB, free: 4.695 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.6149, allocations: 33.7 kB / 0.6235 GB, free: 4.656 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/0.6151, allocations: 244.5 kB / 0.6237 GB, free: 4.414 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.6152, allocations: 123 kB / 0.6238 GB, free: 4.293 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.6153, allocations: 77.97 kB / 0.6239 GB, free: 4.211 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.6155, allocations: 350.8 kB / 0.6243 GB, free: 3.859 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.6157, allocations: 140.7 kB / 0.6244 GB, free: 3.723 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.616, allocations: 215.7 kB / 0.6246 GB, free: 3.484 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/0.6166, allocations: 470.2 kB / 0.625 GB, free: 2.973 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.6166, allocations: 0 / 0.625 GB, free: 2.973 MB / 478.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001081/0.6177, allocations: 0.6204 MB / 0.6257 GB, free: 2.328 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.99e-05/0.6178, allocations: 79.23 kB / 0.6257 GB, free: 2.238 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.6178, allocations: 0 / 0.6257 GB, free: 2.238 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.6191, allocations: 163.1 kB / 0.6259 GB, free: 2.074 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.6193, allocations: 62.45 kB / 0.6259 GB, free: 2.016 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009937/0.6203, allocations: 1.132 MB / 0.627 GB, free: 0.832 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.6206, allocations: 12.03 kB / 0.6271 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.6206, allocations: 20 kB / 0.6271 GB, free: 0.8008 MB / 478.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.0002946/0.6209, allocations: 244.9 kB / 0.6273 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.621, allocations: 51.72 kB / 0.6274 GB, free: 500 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/0.6232, allocations: 1.587 MB / 0.6289 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.666e-05/0.6232, allocations: 27.91 kB / 0.6289 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.6233, allocations: 0 / 0.6289 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.6233, allocations: 3.984 kB / 0.6289 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007932/0.6241, allocations: 0.7361 MB / 0.6297 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.6241, allocations: 4 kB / 0.6297 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002144/0.6243, allocations: 47.84 kB / 0.6297 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005709/0.6249, allocations: 240.4 kB / 0.6299 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/0.6249, allocations: 15.98 kB / 0.63 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/0.626, allocations: 1.339 MB / 0.6313 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.626, allocations: 0 / 0.6313 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/0.6281, allocations: 1.719 MB / 0.6329 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.6283, allocations: 188.4 kB / 0.6331 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.347e-05/0.6284, allocations: 8 kB / 0.6331 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.6286, allocations: 15.98 kB / 0.6331 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.29e-05/0.6287, allocations: 15.98 kB / 0.6332 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.903e-05/0.6287, allocations: 19.98 kB / 0.6332 GB, free: 10.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003261/0.629, allocations: 283.1 kB / 0.6334 GB, free: 10.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6291, allocations: 4 kB / 0.6335 GB, free: 10.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003874/0.6329, allocations: 1.119 MB / 0.6345 GB, free: 8.945 MB / 494.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.009261/0.6422, allocations: 3.332 MB / 0.6378 GB, free: 5.566 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.6438, allocations: 0.7441 MB / 0.6385 GB, free: 4.801 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.6438, allocations: 0 / 0.6385 GB, free: 4.801 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008077/0.6446, allocations: 0.6028 MB / 0.6391 GB, free: 4.172 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.6457, allocations: 197.1 kB / 0.6393 GB, free: 3.98 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009974/0.6557, allocations: 5.251 MB / 0.6444 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005759/0.6563, allocations: 0.9151 MB / 0.6453 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003189/0.6566, allocations: 99.11 kB / 0.6454 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003037/0.6569, allocations: 219.3 kB / 0.6456 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of SimCode: time 9.42e-07/0.657, allocations: 0 / 0.6456 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09565/0.7526, allocations: 47.54 MB / 0.6921 GB, free: 13.63 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.69/15.44, allocations: 8.062 kB / 0.6921 GB, free: 13.62 MB / 0.545 GB (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)