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.0009321/0.0009321, allocations: 103.9 kB / 16.94 MB, free: 5.801 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.0009474/0.0009474, allocations: 183.3 kB / 17.87 MB, free: 5.141 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.155/1.155, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2295/0.2295, allocations: 48.84 MB / 319.9 MB, free: 11.09 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.001243/0.001243, allocations: 71.06 kB / 390.2 MB, free: 48.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0726/0.07385, allocations: 59.15 MB / 449.4 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.03718/0.1111, allocations: 44.34 MB / 493.7 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009492/0.1206, allocations: 9.277 MB / 0.4912 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00038/0.121, allocations: 11.94 kB / 0.4912 GB, free: 3.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006157/0.1216, allocations: 206.5 kB / 0.4914 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006071/0.1223, allocations: 278.1 kB / 0.4917 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01037/0.1327, allocations: 5.044 MB / 0.4966 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008308/0.1335, allocations: 0.798 MB / 0.4974 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003803/0.1339, allocations: 258.4 kB / 0.4976 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006252/0.1345, allocations: 390.3 kB / 0.498 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000362/0.1349, allocations: 302.6 kB / 0.4983 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.135, allocations: 36 kB / 0.4983 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00864/0.1436, allocations: 6.072 MB / 0.5043 GB, free: 6.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.556e-05/0.1437, allocations: 83.62 kB / 0.5044 GB, free: 6.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.1439, allocations: 242.8 kB / 0.5046 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004829/0.1488, allocations: 3.699 MB / 0.5082 GB, free: 2.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1488, allocations: 3.938 kB / 0.5082 GB, free: 2.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1488, allocations: 0 / 0.5082 GB, free: 2.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.1488, allocations: 0 / 0.5082 GB, free: 2.41 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.002445/0.1513, allocations: 1.185 MB / 0.5094 GB, free: 1.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1513, allocations: 11.89 kB / 0.5094 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.276e-05/0.1514, allocations: 66.72 kB / 0.5094 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002209/0.1516, allocations: 72.27 kB / 0.5095 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.152, allocations: 366 kB / 0.5098 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.152, allocations: 25.02 kB / 0.5099 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.1521, allocations: 36.12 kB / 0.5099 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008338/0.1529, allocations: 426.5 kB / 0.5103 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1529, allocations: 0 / 0.5103 GB, free: 108 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.153, allocations: 16 kB / 0.5103 GB, free: 92 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.153, allocations: 8 kB / 0.5103 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.154, allocations: 359.6 kB / 0.5107 GB, free: 15.73 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.001912/0.156, allocations: 2.112 MB / 0.5127 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.157, allocations: 305 kB / 0.513 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003345/0.1573, allocations: 117.6 kB / 0.5131 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1908/0.3482, allocations: 32.1 MB / 0.5445 GB, free: 71.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.3482, allocations: 32.16 kB / 0.5445 GB, free: 71.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.733e-06/0.3482, allocations: 0 / 0.5445 GB, free: 71.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001446/0.3497, allocations: 418.9 kB / 0.5449 GB, free: 71.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/0.3497, allocations: 79.36 kB / 0.545 GB, free: 71.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/0.3501, allocations: 448.6 kB / 0.5454 GB, free: 71.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.3501, allocations: 29.64 kB / 0.5455 GB, free: 71.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3502, allocations: 227.5 kB / 0.5457 GB, free: 71.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.487e-05/0.3503, allocations: 61.53 kB / 0.5457 GB, free: 71.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.505e-05/0.3504, allocations: 52.03 kB / 0.5458 GB, free: 71.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.079e-05/0.3504, allocations: 354.8 kB / 0.5461 GB, free: 70.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.3507, allocations: 104.9 kB / 0.5462 GB, free: 70.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.3511, allocations: 152.7 kB / 0.5464 GB, free: 70.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006096/0.3517, allocations: 258.2 kB / 0.5466 GB, free: 70.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3517, allocations: 1.375 kB / 0.5466 GB, free: 70.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007601/0.3525, allocations: 328.5 kB / 0.5469 GB, free: 70.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3525, allocations: 4.781 kB / 0.5469 GB, free: 70.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/0.3525, allocations: 6.594 kB / 0.5469 GB, free: 70.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.3525, allocations: 3.75 kB / 0.5469 GB, free: 70.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.3528, allocations: 63.7 kB / 0.547 GB, free: 70.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3529, allocations: 9.828 kB / 0.547 GB, free: 70.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.3532, allocations: 51.53 kB / 0.5471 GB, free: 70.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.3532, allocations: 12.47 kB / 0.5471 GB, free: 70.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003519/0.3536, allocations: 199.8 kB / 0.5473 GB, free: 70.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002926/0.3539, allocations: 158.6 kB / 0.5474 GB, free: 70.33 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005598/0.3544, allocations: 264 kB / 0.5477 GB, free: 70.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.583e-06/0.3544, allocations: 0 / 0.5477 GB, free: 70.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007331/0.3552, allocations: 319.4 kB / 0.548 GB, free: 70.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/0.3552, allocations: 10.97 kB / 0.548 GB, free: 70.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3552, allocations: 3.688 kB / 0.548 GB, free: 70.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-06/0.3552, allocations: 4.094 kB / 0.548 GB, free: 70.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.3555, allocations: 64.3 kB / 0.548 GB, free: 70.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.3555, allocations: 6.625 kB / 0.548 GB, free: 70.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.3558, allocations: 33.86 kB / 0.5481 GB, free: 70.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.3558, allocations: 9.906 kB / 0.5481 GB, free: 70.14 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 7.973e-05/0.3559, allocations: 201.2 kB / 0.5483 GB, free: 69.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.356, allocations: 49.59 kB / 0.5483 GB, free: 69.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008542/0.3568, allocations: 445.3 kB / 0.5488 GB, free: 69.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3568, allocations: 6.062 kB / 0.5488 GB, free: 69.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3569, allocations: 0 / 0.5488 GB, free: 69.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3569, allocations: 5.859 kB / 0.5488 GB, free: 69.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.3573, allocations: 457.9 kB / 0.5492 GB, free: 69.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3573, allocations: 1.625 kB / 0.5492 GB, free: 69.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.3575, allocations: 59.3 kB / 0.5493 GB, free: 69.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3576, allocations: 2.438 kB / 0.5493 GB, free: 69.47 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.3576, allocations: 3.703 kB / 0.5493 GB, free: 69.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.3576, allocations: 1.438 kB / 0.5493 GB, free: 69.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3576, allocations: 0 / 0.5493 GB, free: 69.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006917/0.3583, allocations: 462 kB / 0.5497 GB, free: 69.19 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.918e-05/0.3584, allocations: 124 kB / 0.5498 GB, free: 69.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.3584, allocations: 15.47 kB / 0.5498 GB, free: 69.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.3587, allocations: 22.86 kB / 0.5499 GB, free: 69.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.3588, allocations: 19.14 kB / 0.5499 GB, free: 69.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.3588, allocations: 7.031 kB / 0.5499 GB, free: 69.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00037/0.3592, allocations: 413.6 kB / 0.5503 GB, free: 68.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3592, allocations: 3.938 kB / 0.5503 GB, free: 68.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002109/0.3613, allocations: 0.9268 MB / 0.5512 GB, free: 68.73 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.003454/0.3648, allocations: 1.842 MB / 0.553 GB, free: 67.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.3659, allocations: 356.5 kB / 0.5533 GB, free: 67.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3659, allocations: 0.875 kB / 0.5533 GB, free: 67.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003298/0.3662, allocations: 116.4 kB / 0.5534 GB, free: 67.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.3673, allocations: 236.3 kB / 0.5537 GB, free: 67.44 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/0.3726, allocations: 4.422 MB / 0.558 GB, free: 64.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.3728, allocations: 0.8331 MB / 0.5588 GB, free: 63.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000318/0.3731, allocations: 160.6 kB / 0.559 GB, free: 63.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.3733, allocations: 170.4 kB / 0.5591 GB, free: 63.53 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3733, allocations: 0 / 0.5591 GB, free: 63.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04853/0.4218, allocations: 39.71 MB / 0.5979 GB, free: 25.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/8.413, allocations: 4.062 kB / 0.5979 GB, free: 25.41 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)