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.001125/0.001125, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.00104/0.00104, allocations: 191 kB / 18 MB, free: 5.098 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.484/1.484, allocations: 205.1 MB / 223.9 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.3135/0.3135, allocations: 48.85 MB / 320.1 MB, free: 11.02 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.001472/0.001472, allocations: 75.89 kB / 450.1 MB, free: 9.035 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1293, allocations: 59.15 MB / 0.4973 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestST2): time 0.3192/0.4486, allocations: 37.09 MB / 0.5335 GB, free: 6.512 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01778/0.4664, allocations: 14.83 MB / 0.548 GB, free: 4.387 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003381/0.4668, allocations: 9.031 kB / 0.548 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005137/0.4673, allocations: 145.7 kB / 0.5481 GB, free: 4.312 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004749/0.4678, allocations: 222.1 kB / 0.5483 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02581/0.4937, allocations: 6.502 MB / 0.5547 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.4948, allocations: 0.5916 MB / 0.5553 GB, free: 2.336 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.4952, allocations: 215.8 kB / 0.5555 GB, free: 2.309 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004503/0.4957, allocations: 217 kB / 0.5557 GB, free: 2.254 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003573/0.4961, allocations: 227.3 kB / 0.5559 GB, free: 2.184 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.055e-05/0.4961, allocations: 25.06 kB / 0.5559 GB, free: 2.184 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02048/0.5166, allocations: 8.912 MB / 0.5646 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.5168, allocations: 69.36 kB / 0.5647 GB, free: 14.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004014/0.5172, allocations: 197.9 kB / 0.5649 GB, free: 14.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0166/0.5338, allocations: 5.147 MB / 0.5699 GB, free: 11.1 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.909e-06/0.5339, allocations: 0 / 0.5699 GB, free: 11.1 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.608e-06/0.5339, allocations: 0 / 0.5699 GB, free: 11.1 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.5339, allocations: 0 / 0.5699 GB, free: 11.1 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.006534/0.5405, allocations: 1.268 MB / 0.5711 GB, free: 10.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.716e-05/0.5406, allocations: 13.27 kB / 0.5712 GB, free: 10.15 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.774e-05/0.5407, allocations: 64.22 kB / 0.5712 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003131/0.541, allocations: 58.92 kB / 0.5713 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006415/0.5416, allocations: 334.8 kB / 0.5716 GB, free: 9.746 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.5417, allocations: 24.89 kB / 0.5716 GB, free: 9.734 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.5418, allocations: 30.53 kB / 0.5716 GB, free: 9.723 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007456/0.5425, allocations: 320.8 kB / 0.5719 GB, free: 9.508 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.5425, allocations: 1.594 kB / 0.5719 GB, free: 9.508 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.5426, allocations: 11.28 kB / 0.572 GB, free: 9.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.5426, allocations: 9.812 kB / 0.572 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005414/0.5431, allocations: 208.9 kB / 0.5722 GB, free: 9.398 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.002113/0.5453, allocations: 1.485 MB / 0.5736 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005547/0.5458, allocations: 183.2 kB / 0.5738 GB, free: 7.906 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.546, allocations: 49.22 kB / 0.5738 GB, free: 7.879 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1355/0.6815, allocations: 64.26 MB / 0.6366 GB, free: 3.934 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.6816, allocations: 42.5 kB / 0.6366 GB, free: 3.883 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 3.367e-06/0.6816, allocations: 0 / 0.6366 GB, free: 3.883 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.001564/0.6832, allocations: 391.3 kB / 0.637 GB, free: 3.473 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.6832, allocations: 55.34 kB / 0.6371 GB, free: 3.406 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005116/0.6838, allocations: 365.6 kB / 0.6374 GB, free: 3.043 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.6838, allocations: 29.7 kB / 0.6374 GB, free: 3.008 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.684, allocations: 208.2 kB / 0.6376 GB, free: 2.801 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.6841, allocations: 51.55 kB / 0.6377 GB, free: 2.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.6842, allocations: 49.64 kB / 0.6377 GB, free: 2.695 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.6843, allocations: 346.8 kB / 0.6381 GB, free: 2.348 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.6844, allocations: 43.98 kB / 0.6381 GB, free: 2.305 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.6846, allocations: 99.84 kB / 0.6382 GB, free: 2.184 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.001094/0.6857, allocations: 376 kB / 0.6386 GB, free: 1.773 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.6857, allocations: 0 / 0.6386 GB, free: 1.773 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004786/0.6862, allocations: 231.1 kB / 0.6388 GB, free: 1.539 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.6862, allocations: 11.94 kB / 0.6388 GB, free: 1.527 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.6863, allocations: 2.438 kB / 0.6388 GB, free: 1.527 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.6864, allocations: 24.84 kB / 0.6388 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/0.6866, allocations: 47.91 kB / 0.6389 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/0.6878, allocations: 1.394 MB / 0.6402 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002892/0.6881, allocations: 20 kB / 0.6402 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.6881, allocations: 12 kB / 0.6403 GB, free: 15.89 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.000228/0.6884, allocations: 145.6 kB / 0.6404 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.6885, allocations: 39.77 kB / 0.6404 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008454/0.6893, allocations: 0.6008 MB / 0.641 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.6894, allocations: 7.984 kB / 0.641 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6894, allocations: 7.938 kB / 0.641 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.6894, allocations: 7.984 kB / 0.641 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.6908, allocations: 1.061 MB / 0.6421 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.6908, allocations: 4.875 kB / 0.6421 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.691, allocations: 35.92 kB / 0.6421 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.974e-05/0.6911, allocations: 24.88 kB / 0.6421 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.6911, allocations: 4 kB / 0.6421 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009648/0.6921, allocations: 1.376 MB / 0.6435 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.6921, allocations: 4.5 kB / 0.6435 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007999/0.6929, allocations: 0.6546 MB / 0.6441 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.6931, allocations: 132.7 kB / 0.6443 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.876e-05/0.6932, allocations: 11.94 kB / 0.6443 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.6934, allocations: 7.172 kB / 0.6443 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.6934, allocations: 15.98 kB / 0.6443 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.6934, allocations: 4 kB / 0.6443 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002713/0.6937, allocations: 255.2 kB / 0.6445 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.31e-07/0.6937, allocations: 0 / 0.6445 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005132/0.6989, allocations: 1.267 MB / 0.6458 GB, free: 9.977 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.01103/0.7099, allocations: 2.416 MB / 0.6481 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000813/0.7108, allocations: 298.8 kB / 0.6484 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.7108, allocations: 0 / 0.6484 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.7112, allocations: 255 kB / 0.6487 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.7125, allocations: 167.3 kB / 0.6488 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009263/0.7218, allocations: 3.822 MB / 0.6526 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.7222, allocations: 0.8076 MB / 0.6533 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002645/0.7225, allocations: 74.89 kB / 0.6534 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.7227, allocations: 143.3 kB / 0.6536 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of SimCode: time 2.104e-06/0.7227, allocations: 7.938 kB / 0.6536 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1082/0.831, allocations: 54.07 MB / 0.7064 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.38, allocations: 0 / 0.7064 GB, free: 11.57 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)