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.001204/0.001204, allocations: 106 kB / 17.06 MB, free: 6.133 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.001197/0.001197, allocations: 195 kB / 18 MB, free: 5.207 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.407/1.407, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2709/0.2709, allocations: 48.84 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.001521/0.001521, allocations: 63.91 kB / 450 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1094, allocations: 59.17 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.2839/0.3933, allocations: 44.33 MB / 0.5405 GB, free: 6.359 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.4047, allocations: 9.264 MB / 0.5496 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006242/0.4054, allocations: 14.12 kB / 0.5496 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008519/0.4064, allocations: 207 kB / 0.5498 GB, free: 3.27 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000918/0.4073, allocations: 284.5 kB / 0.5501 GB, free: 3.105 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01723/0.4246, allocations: 5.038 MB / 0.555 GB, free: 1.707 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.4258, allocations: 0.7851 MB / 0.5558 GB, free: 1.484 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004329/0.4262, allocations: 264.1 kB / 0.556 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007676/0.427, allocations: 407 kB / 0.5564 GB, free: 1.316 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003337/0.4274, allocations: 288.9 kB / 0.5567 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.294e-05/0.4274, allocations: 29.62 kB / 0.5567 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01456/0.442, allocations: 6.142 MB / 0.5627 GB, free: 15.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002221/0.4423, allocations: 88.34 kB / 0.5628 GB, free: 15.06 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005648/0.4428, allocations: 249.3 kB / 0.563 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.4555, allocations: 3.702 MB / 0.5666 GB, free: 12.53 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4555, allocations: 1.312 kB / 0.5666 GB, free: 12.53 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4556, allocations: 0 / 0.5666 GB, free: 12.53 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.4556, allocations: 0 / 0.5666 GB, free: 12.53 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.00418/0.4598, allocations: 1.18 MB / 0.5678 GB, free: 11.65 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.4598, allocations: 12.89 kB / 0.5678 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.321e-05/0.4599, allocations: 61.8 kB / 0.5679 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002646/0.4602, allocations: 73.44 kB / 0.5679 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.4607, allocations: 379.6 kB / 0.5683 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.4607, allocations: 25 kB / 0.5683 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.4608, allocations: 32.56 kB / 0.5684 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000994/0.4618, allocations: 441.6 kB / 0.5688 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.4618, allocations: 0.9062 kB / 0.5688 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.4619, allocations: 11.34 kB / 0.5688 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.4619, allocations: 11.41 kB / 0.5688 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.4631, allocations: 363.9 kB / 0.5691 GB, free: 10.7 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.002398/0.4656, allocations: 2.115 MB / 0.5712 GB, free: 8.656 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.4668, allocations: 305.4 kB / 0.5715 GB, free: 8.488 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003923/0.4672, allocations: 110.6 kB / 0.5716 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06537/0.5326, allocations: 32.24 MB / 0.6031 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.5327, allocations: 46.44 kB / 0.6031 GB, free: 9.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=17): time 2.375e-06/0.5327, allocations: 0 / 0.6031 GB, free: 9.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=17): time 0.001834/0.5345, allocations: 413 kB / 0.6035 GB, free: 9.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.5346, allocations: 81.11 kB / 0.6036 GB, free: 9.422 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005523/0.5351, allocations: 438 kB / 0.604 GB, free: 8.984 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.5352, allocations: 29.7 kB / 0.6041 GB, free: 8.949 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.5353, allocations: 228.1 kB / 0.6043 GB, free: 8.719 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.534e-05/0.5354, allocations: 59.19 kB / 0.6043 GB, free: 8.66 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.5355, allocations: 57.59 kB / 0.6044 GB, free: 8.598 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.5357, allocations: 358.7 kB / 0.6047 GB, free: 8.238 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.5361, allocations: 100.7 kB / 0.6048 GB, free: 8.137 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.5365, allocations: 160.5 kB / 0.605 GB, free: 7.953 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007464/0.5372, allocations: 259.8 kB / 0.6052 GB, free: 7.672 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.5373, allocations: 0 / 0.6052 GB, free: 7.672 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001052/0.5383, allocations: 325 kB / 0.6055 GB, free: 7.348 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.5383, allocations: 11.91 kB / 0.6055 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5384, allocations: 4 kB / 0.6055 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.5384, allocations: 4 kB / 0.6055 GB, free: 7.328 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004045/0.5388, allocations: 71.88 kB / 0.6056 GB, free: 7.258 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.5388, allocations: 4.062 kB / 0.6056 GB, free: 7.254 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004446/0.5393, allocations: 52.39 kB / 0.6057 GB, free: 7.203 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.5393, allocations: 15.98 kB / 0.6057 GB, free: 7.188 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004442/0.5398, allocations: 196.5 kB / 0.6059 GB, free: 6.992 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003733/0.5401, allocations: 169.2 kB / 0.606 GB, free: 6.793 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006894/0.5408, allocations: 249.2 kB / 0.6063 GB, free: 6.516 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.513e-06/0.5409, allocations: 0 / 0.6063 GB, free: 6.516 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008958/0.5418, allocations: 316.7 kB / 0.6066 GB, free: 6.199 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.5418, allocations: 8.281 kB / 0.6066 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.5418, allocations: 8 kB / 0.6066 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-06/0.5418, allocations: 0 / 0.6066 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.5422, allocations: 67.89 kB / 0.6067 GB, free: 6.117 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.5422, allocations: 6.938 kB / 0.6067 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003806/0.5426, allocations: 35.81 kB / 0.6067 GB, free: 6.078 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.5426, allocations: 8 kB / 0.6067 GB, free: 6.07 MB / 462.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 0.000136/0.5427, allocations: 200.3 kB / 0.6069 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.5428, allocations: 47.44 kB / 0.6069 GB, free: 5.82 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001065/0.5439, allocations: 448.5 kB / 0.6074 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.5439, allocations: 4 kB / 0.6074 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.544, allocations: 0 / 0.6074 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.544, allocations: 7.922 kB / 0.6074 GB, free: 5.367 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.5446, allocations: 457 kB / 0.6078 GB, free: 4.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.5446, allocations: 0 / 0.6078 GB, free: 4.871 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.5449, allocations: 47.95 kB / 0.6079 GB, free: 4.824 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.5449, allocations: 4 kB / 0.6079 GB, free: 4.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.5449, allocations: 11.94 kB / 0.6079 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.5449, allocations: 0 / 0.6079 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5449, allocations: 0 / 0.6079 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009116/0.5459, allocations: 457.8 kB / 0.6083 GB, free: 4.344 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.546, allocations: 124.7 kB / 0.6084 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.5461, allocations: 11.84 kB / 0.6084 GB, free: 4.191 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003608/0.5465, allocations: 27.86 kB / 0.6085 GB, free: 4.164 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.454e-05/0.5466, allocations: 23.91 kB / 0.6085 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.5466, allocations: 8 kB / 0.6085 GB, free: 4.133 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004721/0.5471, allocations: 410.8 kB / 0.6089 GB, free: 3.734 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.5471, allocations: 0 / 0.6089 GB, free: 3.734 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003883/0.551, allocations: 0.9329 MB / 0.6098 GB, free: 2.801 MB / 462.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.006486/0.5575, allocations: 1.851 MB / 0.6116 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.5589, allocations: 355.6 kB / 0.6119 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5589, allocations: 0 / 0.6119 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.5593, allocations: 112.7 kB / 0.6121 GB, free: 488 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.5609, allocations: 243.7 kB / 0.6123 GB, free: 244 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009743/0.5707, allocations: 4.266 MB / 0.6165 GB, free: 11.84 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.5713, allocations: 0.8308 MB / 0.6173 GB, free: 10.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005919/0.5719, allocations: 155 kB / 0.6174 GB, free: 10.83 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003192/0.5723, allocations: 179.4 kB / 0.6176 GB, free: 10.66 MB / 478.1 MB Notification: Performance of SimCode: time 1.422e-06/0.5723, allocations: 0 / 0.6176 GB, free: 10.66 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07213/0.6444, allocations: 40.04 MB / 0.6567 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.82, allocations: 4 kB / 0.6567 GB, free: 2.496 MB / 0.4981 GB (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/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)