Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.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.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestValveChoked,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked",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.001043/0.001043, allocations: 107.2 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.001204/0.001204, allocations: 191.5 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.248/1.248, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2495/0.2495, allocations: 48.84 MB / 319.9 MB, free: 11.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.001491/0.001491, allocations: 69.88 kB / 390.2 MB, free: 48.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07689/0.07839, allocations: 59.16 MB / 449.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.04098/0.1194, allocations: 44.34 MB / 493.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.1311, allocations: 9.266 MB / 0.4912 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006476/0.1319, allocations: 15.88 kB / 0.4912 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009227/0.1328, allocations: 202.5 kB / 0.4914 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008128/0.1337, allocations: 286 kB / 0.4916 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01285/0.1465, allocations: 5.037 MB / 0.4966 GB, free: 14.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009556/0.1475, allocations: 0.7981 MB / 0.4973 GB, free: 13.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.1479, allocations: 258.4 kB / 0.4976 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006753/0.1486, allocations: 394.3 kB / 0.498 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003698/0.149, allocations: 290.7 kB / 0.4982 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.149, allocations: 28 kB / 0.4983 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009399/0.1585, allocations: 6.009 MB / 0.5041 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.1586, allocations: 87.61 kB / 0.5042 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002735/0.1589, allocations: 246.7 kB / 0.5045 GB, free: 6.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005722/0.1646, allocations: 3.703 MB / 0.5081 GB, free: 2.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1646, allocations: 0 / 0.5081 GB, free: 2.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1646, allocations: 0 / 0.5081 GB, free: 2.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.1647, allocations: 0 / 0.5081 GB, free: 2.52 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.002886/0.1676, allocations: 1.185 MB / 0.5092 GB, free: 1.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.1676, allocations: 11.89 kB / 0.5092 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.894e-05/0.1677, allocations: 62.73 kB / 0.5093 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002341/0.1679, allocations: 72.25 kB / 0.5094 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.1683, allocations: 370 kB / 0.5097 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.768e-05/0.1684, allocations: 29.02 kB / 0.5097 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.553e-05/0.1684, allocations: 36.12 kB / 0.5098 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008787/0.1693, allocations: 426.5 kB / 0.5102 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1693, allocations: 4 kB / 0.5102 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.1694, allocations: 12 kB / 0.5102 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.1694, allocations: 8 kB / 0.5102 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.1706, allocations: 363.5 kB / 0.5106 GB, free: 15.83 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.002212/0.1728, allocations: 2.116 MB / 0.5126 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.1739, allocations: 305 kB / 0.5129 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003519/0.1743, allocations: 117.6 kB / 0.513 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2202/0.3945, allocations: 32.1 MB / 0.5444 GB, free: 72.13 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.3946, allocations: 38.45 kB / 0.5444 GB, free: 72.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.894e-06/0.3946, allocations: 0 / 0.5444 GB, free: 72.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001607/0.3962, allocations: 417.6 kB / 0.5448 GB, free: 72.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.608e-05/0.3962, allocations: 79.27 kB / 0.5449 GB, free: 71.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.3966, allocations: 447.1 kB / 0.5453 GB, free: 71.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.3966, allocations: 29.64 kB / 0.5453 GB, free: 71.81 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.3968, allocations: 223.3 kB / 0.5455 GB, free: 71.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/0.3968, allocations: 60.33 kB / 0.5456 GB, free: 71.72 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.652e-05/0.3969, allocations: 54.27 kB / 0.5457 GB, free: 71.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.386e-05/0.397, allocations: 355.3 kB / 0.546 GB, free: 71.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003387/0.3973, allocations: 103.7 kB / 0.5461 GB, free: 71.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003398/0.3976, allocations: 155.5 kB / 0.5462 GB, free: 71.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006669/0.3983, allocations: 263.1 kB / 0.5465 GB, free: 71.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3983, allocations: 0 / 0.5465 GB, free: 71.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008278/0.3992, allocations: 326.3 kB / 0.5468 GB, free: 71.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.3992, allocations: 4.844 kB / 0.5468 GB, free: 71.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3992, allocations: 3.062 kB / 0.5468 GB, free: 71.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3992, allocations: 2.594 kB / 0.5468 GB, free: 71.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.3996, allocations: 74.84 kB / 0.5469 GB, free: 71.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.3996, allocations: 4.688 kB / 0.5469 GB, free: 71.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.3999, allocations: 51.98 kB / 0.5469 GB, free: 71.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.3999, allocations: 13.28 kB / 0.547 GB, free: 71.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003669/0.4003, allocations: 197.6 kB / 0.5471 GB, free: 71.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003222/0.4006, allocations: 165.9 kB / 0.5473 GB, free: 70.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006106/0.4013, allocations: 256.5 kB / 0.5475 GB, free: 70.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.954e-06/0.4013, allocations: 1.469 kB / 0.5475 GB, free: 70.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007687/0.402, allocations: 322.5 kB / 0.5479 GB, free: 70.74 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.365e-06/0.4021, allocations: 6.625 kB / 0.5479 GB, free: 70.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-06/0.4021, allocations: 1.406 kB / 0.5479 GB, free: 70.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.998e-06/0.4021, allocations: 4.656 kB / 0.5479 GB, free: 70.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.4024, allocations: 65.52 kB / 0.5479 GB, free: 70.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.4024, allocations: 6.188 kB / 0.5479 GB, free: 70.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.4027, allocations: 35.7 kB / 0.548 GB, free: 70.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.4027, allocations: 10.5 kB / 0.548 GB, free: 70.71 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: 2 (ValveVap.fluidState.phase,ValveLiqChocked.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.773e-05/0.4028, allocations: 196.6 kB / 0.5482 GB, free: 70.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.4029, allocations: 48.55 kB / 0.5482 GB, free: 70.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009196/0.4038, allocations: 457.1 kB / 0.5486 GB, free: 70.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.4038, allocations: 2.156 kB / 0.5486 GB, free: 70.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4038, allocations: 1.031 kB / 0.5487 GB, free: 70.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.4038, allocations: 4.953 kB / 0.5487 GB, free: 70.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.4042, allocations: 458.1 kB / 0.5491 GB, free: 70.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4042, allocations: 1.281 kB / 0.5491 GB, free: 70.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.4045, allocations: 51.92 kB / 0.5491 GB, free: 70.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.4045, allocations: 2.844 kB / 0.5491 GB, free: 70.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.4045, allocations: 5.938 kB / 0.5492 GB, free: 70.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.4045, allocations: 1.344 kB / 0.5492 GB, free: 70.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4045, allocations: 0 / 0.5492 GB, free: 70.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007718/0.4053, allocations: 465.6 kB / 0.5496 GB, free: 69.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.718e-05/0.4054, allocations: 120.3 kB / 0.5497 GB, free: 69.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.002e-05/0.4055, allocations: 20.84 kB / 0.5497 GB, free: 69.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003173/0.4058, allocations: 21.86 kB / 0.5498 GB, free: 69.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.4059, allocations: 18.38 kB / 0.5498 GB, free: 69.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.4059, allocations: 8 kB / 0.5498 GB, free: 69.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003552/0.4062, allocations: 408.9 kB / 0.5502 GB, free: 69.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4062, allocations: 0 / 0.5502 GB, free: 69.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002206/0.4085, allocations: 0.9319 MB / 0.5511 GB, free: 69.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003659/0.4121, allocations: 1.854 MB / 0.5529 GB, free: 68.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.4133, allocations: 364.8 kB / 0.5532 GB, free: 68.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4133, allocations: 4.25 kB / 0.5532 GB, free: 68.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.4137, allocations: 109.6 kB / 0.5533 GB, free: 68.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.4149, allocations: 234 kB / 0.5536 GB, free: 68.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005325/0.4203, allocations: 4.387 MB / 0.5579 GB, free: 65.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.4205, allocations: 0.8289 MB / 0.5587 GB, free: 64.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003632/0.4209, allocations: 165.3 kB / 0.5588 GB, free: 64.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.421, allocations: 174.7 kB / 0.559 GB, free: 64.16 MB / 414.1 MB Notification: Performance of SimCode: time 2.1e-07/0.421, allocations: 0 / 0.559 GB, free: 64.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05219/0.4732, allocations: 39.83 MB / 0.5979 GB, free: 25.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.734/9.207, allocations: 7.938 kB / 0.5979 GB, free: 25.85 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1)