Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestST2.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.TestST2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestST2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestST2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestST2",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.001313/0.001313, allocations: 113.3 kB / 17.06 MB, free: 5.965 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.001175/0.001175, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.461/1.461, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3162/0.3162, 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.002173/0.002173, allocations: 71.89 kB / 450.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.141, allocations: 59.15 MB / 0.4973 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestST2): time 0.307/0.448, allocations: 37.1 MB / 0.5335 GB, free: 6.492 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01735/0.4654, allocations: 14.83 MB / 0.548 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000379/0.4659, allocations: 8.781 kB / 0.548 GB, free: 4.348 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005643/0.4664, allocations: 145.9 kB / 0.5481 GB, free: 4.277 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005056/0.467, allocations: 214.2 kB / 0.5483 GB, free: 4.156 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02276/0.4898, allocations: 6.497 MB / 0.5547 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.491, allocations: 0.5901 MB / 0.5553 GB, free: 2.305 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004269/0.4914, allocations: 214.9 kB / 0.5555 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003718/0.4918, allocations: 217.6 kB / 0.5557 GB, free: 2.219 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.4921, allocations: 221 kB / 0.5559 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.254e-05/0.4922, allocations: 25.69 kB / 0.5559 GB, free: 2.152 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02283/0.515, allocations: 8.91 MB / 0.5646 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.5153, allocations: 69.91 kB / 0.5647 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005151/0.5158, allocations: 198 kB / 0.5649 GB, free: 14.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01693/0.5328, allocations: 5.142 MB / 0.5699 GB, free: 11.1 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.5328, allocations: 3.938 kB / 0.5699 GB, free: 11.09 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5328, allocations: 0 / 0.5699 GB, free: 11.09 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.5328, allocations: 0 / 0.5699 GB, free: 11.09 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.005949/0.5388, allocations: 1.265 MB / 0.5711 GB, free: 10.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.355e-05/0.5389, allocations: 17.56 kB / 0.5711 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.77e-05/0.539, allocations: 59.17 kB / 0.5712 GB, free: 10.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002674/0.5393, allocations: 63.17 kB / 0.5713 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006168/0.5399, allocations: 336.4 kB / 0.5716 GB, free: 9.738 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.5399, allocations: 20.56 kB / 0.5716 GB, free: 9.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.944e-05/0.54, allocations: 40.8 kB / 0.5716 GB, free: 9.707 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007328/0.5407, allocations: 313.7 kB / 0.5719 GB, free: 9.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.5408, allocations: 5 kB / 0.5719 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.5408, allocations: 11.81 kB / 0.572 GB, free: 9.488 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.5408, allocations: 9.562 kB / 0.572 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005241/0.5413, allocations: 209.1 kB / 0.5722 GB, free: 9.387 MB / 430.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.002165/0.5435, allocations: 1.477 MB / 0.5736 GB, free: 8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/0.5441, allocations: 189.8 kB / 0.5738 GB, free: 7.895 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.5442, allocations: 51.27 kB / 0.5738 GB, free: 7.867 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1438/0.688, allocations: 64.26 MB / 0.6366 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.6881, allocations: 30.56 kB / 0.6366 GB, free: 3.883 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 2.645e-06/0.6881, allocations: 0 / 0.6366 GB, free: 3.883 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.00141/0.6895, allocations: 407.6 kB / 0.637 GB, free: 3.457 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.6896, allocations: 55.34 kB / 0.6371 GB, free: 3.391 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005082/0.6901, allocations: 365.6 kB / 0.6374 GB, free: 3.027 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.6901, allocations: 29.7 kB / 0.6374 GB, free: 2.992 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.6903, allocations: 200.2 kB / 0.6376 GB, free: 2.793 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.253e-05/0.6904, allocations: 59.55 kB / 0.6377 GB, free: 2.734 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.6905, allocations: 41.7 kB / 0.6377 GB, free: 2.688 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.6907, allocations: 346.8 kB / 0.6381 GB, free: 2.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.6908, allocations: 39.98 kB / 0.6381 GB, free: 2.301 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.6909, allocations: 103.8 kB / 0.6382 GB, free: 2.176 MB / 494.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: Inertia1.a = $START.Inertia1.a (0.0 = $START.Inertia1.a) Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.692, allocations: 374.3 kB / 0.6385 GB, free: 1.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.6921, allocations: 4 kB / 0.6386 GB, free: 1.766 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005128/0.6926, allocations: 230.1 kB / 0.6388 GB, free: 1.531 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.6926, allocations: 11.94 kB / 0.6388 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.6926, allocations: 0 / 0.6388 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001374/0.6928, allocations: 24.84 kB / 0.6388 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.693, allocations: 48.12 kB / 0.6389 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.6942, allocations: 1.391 MB / 0.6402 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.6945, allocations: 27.78 kB / 0.6402 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.6945, allocations: 4 kB / 0.6402 GB, free: 15.88 MB / 0.4981 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: Inertia1.a = $START.Inertia1.a. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (ST.fluidState_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001995/0.6947, allocations: 154.5 kB / 0.6404 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.922e-05/0.6948, allocations: 35.77 kB / 0.6404 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008721/0.6957, allocations: 0.6015 MB / 0.641 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.6957, allocations: 7.984 kB / 0.641 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.6958, allocations: 4.438 kB / 0.641 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.6958, allocations: 0 / 0.641 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.6973, allocations: 1.069 MB / 0.6421 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.6973, allocations: 0.875 kB / 0.6421 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.6975, allocations: 40 kB / 0.6421 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.6976, allocations: 24.84 kB / 0.6421 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.6977, allocations: 4 kB / 0.6421 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.6988, allocations: 1.377 MB / 0.6435 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.6988, allocations: 7.922 kB / 0.6435 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008779/0.6997, allocations: 0.6565 MB / 0.6441 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.6998, allocations: 128.7 kB / 0.6442 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.428e-05/0.6999, allocations: 7.922 kB / 0.6443 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.7001, allocations: 8 kB / 0.6443 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.286e-05/0.7001, allocations: 11.98 kB / 0.6443 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.7002, allocations: 8 kB / 0.6443 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003158/0.7005, allocations: 251.2 kB / 0.6445 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.21e-07/0.7005, allocations: 4 kB / 0.6445 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005285/0.7058, allocations: 1.275 MB / 0.6458 GB, free: 9.961 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (ST.P_HP,ST.P_LP,Speed1.phi) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 1 system {(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.01094/0.7167, allocations: 2.41 MB / 0.6481 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008694/0.7177, allocations: 298.5 kB / 0.6484 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/0.7177, allocations: 4 kB / 0.6484 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003819/0.7181, allocations: 246.3 kB / 0.6486 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.7194, allocations: 174.4 kB / 0.6488 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009454/0.7288, allocations: 3.822 MB / 0.6525 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/0.7294, allocations: 0.8115 MB / 0.6533 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002829/0.7297, allocations: 74.89 kB / 0.6534 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.73, allocations: 143.4 kB / 0.6535 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of SimCode: time 1.583e-06/0.73, allocations: 0 / 0.6535 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1167/0.8467, allocations: 54.07 MB / 0.7063 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.47, allocations: 8 kB / 0.7064 GB, free: 11.56 MB / 0.5606 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestST2.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestST2_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ThermoPower_ThermoPower_Test_WaterComponents_TestST2.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestST2.pipe 2>&1)