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.000823/0.0008233, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.000856/0.0008561, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.127/1.127, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2288/0.2288, allocations: 48.79 MB / 320.8 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.0004926/0.0004926, allocations: 13.92 kB / 391.9 MB, free: 50 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07507/0.07557, allocations: 60.26 MB / 452.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.03541/0.111, allocations: 44.4 MB / 496.6 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.1213, allocations: 9.867 MB / 0.4946 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002588/0.1216, allocations: 19.88 kB / 0.4946 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004828/0.1221, allocations: 170.9 kB / 0.4947 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004467/0.1225, allocations: 262.3 kB / 0.495 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009156/0.1317, allocations: 4.085 MB / 0.499 GB, free: 14.1 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008514/0.1326, allocations: 1.032 MB / 0.5 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/0.1328, allocations: 214.3 kB / 0.5002 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005169/0.1334, allocations: 362.4 kB / 0.5005 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002845/0.1337, allocations: 294.6 kB / 0.5008 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.1337, allocations: 16 kB / 0.5008 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008251/0.142, allocations: 6.075 MB / 0.5068 GB, free: 6.109 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.002e-05/0.142, allocations: 71.61 kB / 0.5068 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.1423, allocations: 244.5 kB / 0.5071 GB, free: 5.793 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004343/0.1466, allocations: 3.691 MB / 0.5107 GB, free: 2.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.1466, allocations: 0 / 0.5107 GB, free: 2.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1466, allocations: 0 / 0.5107 GB, free: 2.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1466, allocations: 3.938 kB / 0.5107 GB, free: 2.09 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.002233/0.1489, allocations: 1.103 MB / 0.5118 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.1489, allocations: 11.97 kB / 0.5118 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.75e-05/0.149, allocations: 70.72 kB / 0.5118 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.1492, allocations: 64.36 kB / 0.5119 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.1496, allocations: 366 kB / 0.5123 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.1496, allocations: 29.03 kB / 0.5123 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.1497, allocations: 32.12 kB / 0.5123 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008754/0.1505, allocations: 438.5 kB / 0.5127 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1506, allocations: 0 / 0.5127 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.1506, allocations: 19.98 kB / 0.5127 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1506, allocations: 8 kB / 0.5128 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.1517, allocations: 387.5 kB / 0.5131 GB, free: 15.45 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.001885/0.1536, allocations: 2.14 MB / 0.5152 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.1548, allocations: 345 kB / 0.5155 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.1551, allocations: 121.7 kB / 0.5157 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1994/0.3545, allocations: 32.41 MB / 0.5473 GB, free: 70.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.3546, allocations: 36.09 kB / 0.5473 GB, free: 70.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 2.244e-06/0.3546, allocations: 0 / 0.5473 GB, free: 70.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.00151/0.3561, allocations: 455.1 kB / 0.5478 GB, free: 70.44 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.3561, allocations: 80.95 kB / 0.5479 GB, free: 70.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.3566, allocations: 440.5 kB / 0.5483 GB, free: 70.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.3566, allocations: 29.83 kB / 0.5483 GB, free: 70.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.3567, allocations: 224.7 kB / 0.5485 GB, free: 70.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.3568, allocations: 61.02 kB / 0.5486 GB, free: 70.09 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.69e-05/0.3568, allocations: 26.55 kB / 0.5486 GB, free: 70.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.875e-05/0.3569, allocations: 354.7 kB / 0.5489 GB, free: 69.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.3572, allocations: 102.8 kB / 0.549 GB, free: 69.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/0.3576, allocations: 168.5 kB / 0.5492 GB, free: 69.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006868/0.3583, allocations: 288.5 kB / 0.5495 GB, free: 69.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3583, allocations: 0 / 0.5495 GB, free: 69.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008939/0.3592, allocations: 349.7 kB / 0.5498 GB, free: 69.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.518e-05/0.3592, allocations: 143 kB / 0.5499 GB, free: 69.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.3593, allocations: 4.625 kB / 0.5499 GB, free: 69.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3593, allocations: 3.062 kB / 0.5499 GB, free: 69.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003318/0.3596, allocations: 75.34 kB / 0.55 GB, free: 69.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3596, allocations: 7.656 kB / 0.55 GB, free: 69.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.36, allocations: 69.03 kB / 0.5501 GB, free: 69.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.36, allocations: 8.75 kB / 0.5501 GB, free: 69.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.875e-06/0.3601, allocations: 4.562 kB / 0.5501 GB, free: 69.34 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007438/0.3608, allocations: 268.3 kB / 0.5504 GB, free: 69.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3608, allocations: 2.062 kB / 0.5504 GB, free: 69.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.499e-06/0.3608, allocations: 2.531 kB / 0.5504 GB, free: 69.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.3611, allocations: 73.55 kB / 0.5504 GB, free: 69.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.3611, allocations: 2.969 kB / 0.5504 GB, free: 69.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.3615, allocations: 53.62 kB / 0.5505 GB, free: 69.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.3615, allocations: 9.688 kB / 0.5505 GB, free: 69.25 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 0.0001382/0.3616, allocations: 237.2 kB / 0.5507 GB, free: 69.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.47e-05/0.3617, allocations: 46.28 kB / 0.5508 GB, free: 69.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009665/0.3627, allocations: 474.3 kB / 0.5512 GB, free: 68.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3627, allocations: 2.688 kB / 0.5512 GB, free: 68.87 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3627, allocations: 0 / 0.5512 GB, free: 68.87 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3627, allocations: 1 kB / 0.5512 GB, free: 68.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00048/0.3632, allocations: 459.9 kB / 0.5517 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3632, allocations: 0.875 kB / 0.5517 GB, free: 68.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002561/0.3635, allocations: 57.39 kB / 0.5517 GB, free: 68.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3635, allocations: 1.438 kB / 0.5517 GB, free: 68.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.3635, allocations: 9.234 kB / 0.5517 GB, free: 68.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3635, allocations: 1.469 kB / 0.5517 GB, free: 68.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3635, allocations: 0 / 0.5517 GB, free: 68.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007819/0.3643, allocations: 479.2 kB / 0.5522 GB, free: 68.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.3645, allocations: 163.7 kB / 0.5523 GB, free: 68.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.186e-05/0.3645, allocations: 4.438 kB / 0.5523 GB, free: 68.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003494/0.3649, allocations: 45.53 kB / 0.5524 GB, free: 68.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.3649, allocations: 18.03 kB / 0.5524 GB, free: 68.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.365, allocations: 6.219 kB / 0.5524 GB, free: 68.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004026/0.3654, allocations: 409 kB / 0.5528 GB, free: 67.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3654, allocations: 0 / 0.5528 GB, free: 67.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002087/0.3675, allocations: 0.9267 MB / 0.5537 GB, free: 67.91 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.004197/0.3717, allocations: 1.87 MB / 0.5555 GB, free: 66.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.3729, allocations: 393.5 kB / 0.5559 GB, free: 66.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3729, allocations: 0 / 0.5559 GB, free: 66.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.3733, allocations: 123.3 kB / 0.556 GB, free: 66.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.3746, allocations: 228.8 kB / 0.5562 GB, free: 66.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005782/0.3803, allocations: 4.598 MB / 0.5607 GB, free: 63.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001775/0.3805, allocations: 0.8247 MB / 0.5615 GB, free: 62.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003355/0.3809, allocations: 169.2 kB / 0.5617 GB, free: 62.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.3811, allocations: 179 kB / 0.5619 GB, free: 62.55 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3811, allocations: 0 / 0.5619 GB, free: 62.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.123/2.504, allocations: 39.16 MB / 0.6001 GB, free: 25.06 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/2.504, allocations: 192 kB / 0.6003 GB, free: 24.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.254/5.759, allocations: 0 / 0.6003 GB, free: 24.81 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 & /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)