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.001295/0.001295, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001107/0.001107, allocations: 188 kB / 18 MB, free: 5.219 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.242/1.242, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2737/0.2737, 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.001404/0.001404, allocations: 71.91 kB / 450 MB, free: 9.047 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.2724/0.3792, allocations: 44.34 MB / 0.5405 GB, free: 6.328 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.3896, allocations: 9.265 MB / 0.5496 GB, free: 3.336 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004166/0.3901, allocations: 13.81 kB / 0.5496 GB, free: 3.328 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006178/0.3907, allocations: 213.2 kB / 0.5498 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005824/0.3914, allocations: 278.1 kB / 0.5501 GB, free: 3.062 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01455/0.4059, allocations: 5.038 MB / 0.555 GB, free: 1.66 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.4071, allocations: 0.79 MB / 0.5558 GB, free: 1.434 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.4075, allocations: 259 kB / 0.556 GB, free: 1.406 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006328/0.4081, allocations: 401.1 kB / 0.5564 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002991/0.4084, allocations: 291 kB / 0.5567 GB, free: 1.188 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.156e-05/0.4085, allocations: 29.19 kB / 0.5567 GB, free: 1.188 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01284/0.4213, allocations: 6.148 MB / 0.5627 GB, free: 15.12 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.4215, allocations: 88.55 kB / 0.5628 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004322/0.422, allocations: 243 kB / 0.563 GB, free: 14.9 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008755/0.4307, allocations: 3.697 MB / 0.5666 GB, free: 12.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.4308, allocations: 0 / 0.5666 GB, free: 12.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4308, allocations: 0 / 0.5666 GB, free: 12.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.4308, allocations: 1.25 kB / 0.5666 GB, free: 12.54 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.00363/0.4344, allocations: 1.181 MB / 0.5678 GB, free: 11.66 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4345, allocations: 13.08 kB / 0.5678 GB, free: 11.65 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.457e-05/0.4346, allocations: 68.62 kB / 0.5679 GB, free: 11.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002504/0.4348, allocations: 69.11 kB / 0.5679 GB, free: 11.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/0.4354, allocations: 380.2 kB / 0.5683 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.4354, allocations: 26.34 kB / 0.5683 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.4355, allocations: 40.12 kB / 0.5684 GB, free: 11.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009472/0.4364, allocations: 433.3 kB / 0.5688 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.4365, allocations: 5.188 kB / 0.5688 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.4365, allocations: 11.47 kB / 0.5688 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.4365, allocations: 7.75 kB / 0.5688 GB, free: 10.86 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.4377, allocations: 362.2 kB / 0.5691 GB, free: 10.69 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.002234/0.44, allocations: 2.116 MB / 0.5712 GB, free: 8.652 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.4412, allocations: 297.3 kB / 0.5715 GB, free: 8.492 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/0.4416, allocations: 113.7 kB / 0.5716 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06583/0.5074, allocations: 32.25 MB / 0.6031 GB, free: 9.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.5075, allocations: 30.56 kB / 0.6031 GB, free: 9.941 MB / 462.1 MB Notification: Performance of pre-optimization done (n=17): time 3.927e-06/0.5075, allocations: 3.938 kB / 0.6031 GB, free: 9.941 MB / 462.1 MB Notification: Performance of matching and sorting (n=17): time 0.001779/0.5093, allocations: 420.8 kB / 0.6035 GB, free: 9.523 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.5094, allocations: 85.11 kB / 0.6036 GB, free: 9.422 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004898/0.5099, allocations: 434 kB / 0.604 GB, free: 8.988 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.5099, allocations: 33.7 kB / 0.6041 GB, free: 8.949 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.5101, allocations: 224.1 kB / 0.6043 GB, free: 8.723 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.5101, allocations: 63.12 kB / 0.6043 GB, free: 8.66 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.99e-05/0.5102, allocations: 57.59 kB / 0.6044 GB, free: 8.598 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.5104, allocations: 354.7 kB / 0.6047 GB, free: 8.242 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.5108, allocations: 105.6 kB / 0.6048 GB, free: 8.137 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000444/0.5112, allocations: 152.5 kB / 0.605 GB, free: 7.961 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007463/0.512, allocations: 267.8 kB / 0.6052 GB, free: 7.672 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.512, allocations: 0 / 0.6052 GB, free: 7.672 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000926/0.5129, allocations: 325 kB / 0.6055 GB, free: 7.348 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.5129, allocations: 7.906 kB / 0.6055 GB, free: 7.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.5129, allocations: 4 kB / 0.6055 GB, free: 7.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.513, allocations: 4 kB / 0.6056 GB, free: 7.332 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.5134, allocations: 75.59 kB / 0.6056 GB, free: 7.262 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.5134, allocations: 4 kB / 0.6056 GB, free: 7.258 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004053/0.5138, allocations: 51.5 kB / 0.6057 GB, free: 7.207 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.5138, allocations: 12 kB / 0.6057 GB, free: 7.195 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004303/0.5143, allocations: 200.4 kB / 0.6059 GB, free: 6.996 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003721/0.5146, allocations: 165.2 kB / 0.606 GB, free: 6.801 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006797/0.5153, allocations: 249.2 kB / 0.6063 GB, free: 6.523 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.793e-06/0.5154, allocations: 4 kB / 0.6063 GB, free: 6.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008672/0.5162, allocations: 316.9 kB / 0.6066 GB, free: 6.203 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.5162, allocations: 8 kB / 0.6066 GB, free: 6.195 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.5163, allocations: 0 / 0.6066 GB, free: 6.195 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.941e-06/0.5163, allocations: 4 kB / 0.6066 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.5166, allocations: 63.89 kB / 0.6067 GB, free: 6.129 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.5166, allocations: 8.453 kB / 0.6067 GB, free: 6.121 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003579/0.517, allocations: 35.89 kB / 0.6067 GB, free: 6.086 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.517, allocations: 15.98 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.0001467/0.5172, allocations: 196.1 kB / 0.6069 GB, free: 5.871 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.5173, allocations: 47.44 kB / 0.6069 GB, free: 5.824 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.5183, allocations: 444.6 kB / 0.6074 GB, free: 5.383 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.5184, allocations: 4 kB / 0.6074 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5184, allocations: 0 / 0.6074 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.5184, allocations: 3.938 kB / 0.6074 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006189/0.519, allocations: 461 kB / 0.6078 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.519, allocations: 0 / 0.6078 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.5193, allocations: 55.89 kB / 0.6079 GB, free: 4.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.5193, allocations: 0 / 0.6079 GB, free: 4.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.5193, allocations: 7.984 kB / 0.6079 GB, free: 4.812 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.5193, allocations: 0 / 0.6079 GB, free: 4.812 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.5194, allocations: 0 / 0.6079 GB, free: 4.812 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009124/0.5203, allocations: 457.8 kB / 0.6083 GB, free: 4.348 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.5205, allocations: 128.5 kB / 0.6084 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.368e-05/0.5206, allocations: 15.84 kB / 0.6085 GB, free: 4.188 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.5209, allocations: 23.97 kB / 0.6085 GB, free: 4.164 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.521, allocations: 16.8 kB / 0.6085 GB, free: 4.148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.521, allocations: 7.984 kB / 0.6085 GB, free: 4.141 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005165/0.5215, allocations: 415 kB / 0.6089 GB, free: 3.738 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5215, allocations: 0 / 0.6089 GB, free: 3.738 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004447/0.526, allocations: 0.9368 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.007161/0.5332, allocations: 1.851 MB / 0.6116 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.5346, allocations: 356.2 kB / 0.612 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5346, allocations: 0 / 0.612 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.535, allocations: 107.9 kB / 0.6121 GB, free: 496 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.5365, allocations: 245.2 kB / 0.6123 GB, free: 252 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008588/0.5451, allocations: 4.274 MB / 0.6165 GB, free: 11.84 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004598/0.5456, allocations: 0.823 MB / 0.6173 GB, free: 10.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004419/0.546, allocations: 154.6 kB / 0.6174 GB, free: 10.84 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.5463, allocations: 179.4 kB / 0.6176 GB, free: 10.66 MB / 478.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5463, allocations: 0 / 0.6176 GB, free: 10.66 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07193/0.6183, allocations: 39.82 MB / 0.6565 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.63, allocations: 3.938 kB / 0.6565 GB, free: 2.727 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)