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.0008941/0.0008942, allocations: 88.39 kB / 16.31 MB, free: 6.457 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.0009148/0.000915, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.555/1.555, allocations: 205.4 MB / 223.4 MB, free: 5.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4124/0.4124, allocations: 48.78 MB / 320.4 MB, free: 3.848 MB / 254.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.0005041/0.0005043, allocations: 12 kB / 391.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1262, allocations: 60.26 MB / 451.5 MB, free: 1.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.2259/0.3522, allocations: 41.3 MB / 492.8 MB, free: 23.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009446/0.3617, allocations: 8.693 MB / 0.4898 GB, free: 17.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004636/0.3622, allocations: 14.53 kB / 0.4898 GB, free: 17.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006261/0.3628, allocations: 160.5 kB / 0.4899 GB, free: 17.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006946/0.3636, allocations: 294.5 kB / 0.4902 GB, free: 17.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01282/0.3764, allocations: 3.872 MB / 0.494 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.3776, allocations: 0.8947 MB / 0.4949 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.3779, allocations: 200.4 kB / 0.4951 GB, free: 14.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000656/0.3786, allocations: 347.1 kB / 0.4954 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003104/0.3789, allocations: 282.4 kB / 0.4957 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.3789, allocations: 16.59 kB / 0.4957 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.012/0.3909, allocations: 5.846 MB / 0.5014 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.3911, allocations: 67.53 kB / 0.5015 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002714/0.3914, allocations: 110.3 kB / 0.5016 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005134/0.3966, allocations: 2.463 MB / 0.504 GB, free: 9.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3966, allocations: 3.938 kB / 0.504 GB, free: 9.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3966, allocations: 0 / 0.504 GB, free: 9.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.3966, allocations: 0 / 0.504 GB, free: 9.922 MB / 382.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.003563/0.4002, allocations: 1.116 MB / 0.5051 GB, free: 9.098 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.4002, allocations: 9.469 kB / 0.5051 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.577e-05/0.4003, allocations: 68.69 kB / 0.5051 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.4005, allocations: 73.28 kB / 0.5052 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.4009, allocations: 349.4 kB / 0.5055 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.4009, allocations: 25.66 kB / 0.5056 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.31e-05/0.401, allocations: 29.84 kB / 0.5056 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008933/0.4019, allocations: 450.7 kB / 0.506 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.4019, allocations: 1.094 kB / 0.506 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.4019, allocations: 10.84 kB / 0.506 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.402, allocations: 8.906 kB / 0.506 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.4031, allocations: 382.7 kB / 0.5064 GB, free: 8.156 MB / 382.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.001785/0.4049, allocations: 2.137 MB / 0.5085 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.4059, allocations: 341.7 kB / 0.5088 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.4062, allocations: 123 kB / 0.5089 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05413/0.4604, allocations: 32.41 MB / 0.5406 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.4604, allocations: 42.48 kB / 0.5406 GB, free: 3.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.904e-06/0.4605, allocations: 4 kB / 0.5406 GB, free: 3.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001497/0.462, allocations: 444.8 kB / 0.5411 GB, free: 2.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.462, allocations: 81.11 kB / 0.5411 GB, free: 2.672 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000442/0.4625, allocations: 430 kB / 0.5415 GB, free: 2.242 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.4625, allocations: 37.64 kB / 0.5416 GB, free: 2.199 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.4627, allocations: 228.1 kB / 0.5418 GB, free: 1.973 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.4627, allocations: 55.2 kB / 0.5418 GB, free: 1.918 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.413e-05/0.4627, allocations: 4 kB / 0.5418 GB, free: 1.914 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4629, allocations: 354.8 kB / 0.5422 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.4632, allocations: 103.9 kB / 0.5423 GB, free: 1.457 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003487/0.4636, allocations: 167.9 kB / 0.5424 GB, free: 1.266 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.4639, allocations: 115.8 kB / 0.5426 GB, free: 1.152 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.4639, allocations: 4 kB / 0.5426 GB, free: 1.148 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008077/0.4647, allocations: 341 kB / 0.5429 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.948e-05/0.4648, allocations: 147.8 kB / 0.543 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.4648, allocations: 0 / 0.543 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.4649, allocations: 4 kB / 0.543 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.4652, allocations: 72.5 kB / 0.5431 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.4652, allocations: 7.953 kB / 0.5431 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.4656, allocations: 63.56 kB / 0.5432 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.4656, allocations: 12 kB / 0.5432 GB, free: 488 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.252e-06/0.4657, allocations: 4 kB / 0.5432 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006979/0.4664, allocations: 265.6 kB / 0.5434 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.4664, allocations: 5.188 kB / 0.5434 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.778e-06/0.4664, allocations: 4 kB / 0.5434 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.4667, allocations: 71.95 kB / 0.5435 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.4667, allocations: 4 kB / 0.5435 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002878/0.467, allocations: 51.66 kB / 0.5436 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.467, allocations: 19.97 kB / 0.5436 GB, free: 64 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001803/0.4672, allocations: 233.8 kB / 0.5438 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.83e-05/0.4673, allocations: 47.38 kB / 0.5439 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009408/0.4682, allocations: 474.4 kB / 0.5443 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.4682, allocations: 0 / 0.5443 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4683, allocations: 4.375 kB / 0.5443 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4683, allocations: 0 / 0.5443 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005056/0.4688, allocations: 458.5 kB / 0.5447 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4688, allocations: 3.953 kB / 0.5448 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002637/0.4691, allocations: 63.83 kB / 0.5448 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4691, allocations: 4 kB / 0.5448 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.4691, allocations: 7.984 kB / 0.5448 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.4691, allocations: 4 kB / 0.5448 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4691, allocations: 0 / 0.5448 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007664/0.4699, allocations: 466 kB / 0.5453 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.47, allocations: 164.3 kB / 0.5454 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.14e-05/0.4701, allocations: 7.984 kB / 0.5454 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003387/0.4704, allocations: 39.84 kB / 0.5455 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.4705, allocations: 17.78 kB / 0.5455 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.4705, allocations: 7.938 kB / 0.5455 GB, free: 14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004041/0.4709, allocations: 410.8 kB / 0.5459 GB, free: 13.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4709, allocations: 0 / 0.5459 GB, free: 13.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003087/0.474, allocations: 0.9291 MB / 0.5468 GB, free: 12.67 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004613/0.4786, allocations: 1.864 MB / 0.5486 GB, free: 10.78 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.4798, allocations: 380.6 kB / 0.549 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4798, allocations: 0 / 0.549 GB, free: 10.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003451/0.4801, allocations: 124.9 kB / 0.5491 GB, free: 10.29 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.4814, allocations: 235 kB / 0.5493 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005009/0.4865, allocations: 2.771 MB / 0.552 GB, free: 7.215 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.4868, allocations: 0.8311 MB / 0.5528 GB, free: 6.359 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004565/0.4873, allocations: 153.1 kB / 0.553 GB, free: 6.211 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.4875, allocations: 175.4 kB / 0.5532 GB, free: 6.039 MB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4875, allocations: 0 / 0.5532 GB, free: 6.039 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09297/0.5805, allocations: 39.68 MB / 0.5919 GB, free: 14.38 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003227/0.5809, allocations: 178.1 kB / 0.5921 GB, free: 14.14 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.1/4.681, allocations: 4 kB / 0.5921 GB, free: 14.14 MB / 478.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestValveChoked.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValveChoked.pipe 2>&1) Environment - environmentSimulation: