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.001416/0.001416, allocations: 96.98 kB / 16.3 MB, free: 5.992 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.001663/0.001663, allocations: 184 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.193/2.193, allocations: 205.4 MB / 223.4 MB, free: 5.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.812/0.812, allocations: 48.77 MB / 320.4 MB, free: 3.816 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.0008847/0.0008848, allocations: 16 kB / 391.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1805, allocations: 60.25 MB / 451.5 MB, free: 1.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.409/0.5895, allocations: 37.37 MB / 488.9 MB, free: 26.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0177/0.6072, allocations: 8.063 MB / 496.9 MB, free: 21.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007665/0.6081, allocations: 13.81 kB / 496.9 MB, free: 21.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009261/0.609, allocations: 168.5 kB / 497.1 MB, free: 21.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.6102, allocations: 280.5 kB / 497.4 MB, free: 21.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02393/0.6341, allocations: 3.931 MB / 0.4896 GB, free: 19.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002724/0.6369, allocations: 0.5168 MB / 0.4901 GB, free: 18.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007176/0.6376, allocations: 211.2 kB / 0.4903 GB, free: 18.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001442/0.6391, allocations: 363.5 kB / 0.4906 GB, free: 18.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005554/0.6397, allocations: 224.9 kB / 0.4908 GB, free: 18.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.917e-05/0.6398, allocations: 20.95 kB / 0.4908 GB, free: 18.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0262/0.666, allocations: 5.979 MB / 0.4967 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003222/0.6664, allocations: 68.11 kB / 0.4967 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005875/0.667, allocations: 114.1 kB / 0.4969 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.6781, allocations: 2.443 MB / 0.4992 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.6782, allocations: 0 / 0.4992 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.247e-06/0.6782, allocations: 4 kB / 0.4992 GB, free: 14.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.071e-05/0.6783, allocations: 0 / 0.4992 GB, free: 14.11 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.006726/0.685, allocations: 1.109 MB / 0.5003 GB, free: 13.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.644e-05/0.6851, allocations: 12.53 kB / 0.5003 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001435/0.6853, allocations: 68.25 kB / 0.5004 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005001/0.6858, allocations: 74.97 kB / 0.5005 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008414/0.6866, allocations: 353.5 kB / 0.5008 GB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.402e-05/0.6867, allocations: 25.69 kB / 0.5008 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.382e-05/0.6868, allocations: 27.59 kB / 0.5009 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.6885, allocations: 441 kB / 0.5013 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.6885, allocations: 0.875 kB / 0.5013 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.6886, allocations: 12.56 kB / 0.5013 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.6886, allocations: 7.344 kB / 0.5013 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002086/0.6907, allocations: 383.2 kB / 0.5017 GB, free: 12.36 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.003346/0.6941, allocations: 2.139 MB / 0.5038 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.6962, allocations: 346.9 kB / 0.5041 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1101/0.8063, allocations: 32.42 MB / 0.5358 GB, free: 8.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.8064, allocations: 38.56 kB / 0.5358 GB, free: 8.035 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 2.685e-06/0.8065, allocations: 0 / 0.5358 GB, free: 8.035 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.003108/0.8096, allocations: 441.1 kB / 0.5362 GB, free: 7.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.8097, allocations: 81.11 kB / 0.5363 GB, free: 7.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008454/0.8105, allocations: 434.1 kB / 0.5367 GB, free: 7.066 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/0.8106, allocations: 37.64 kB / 0.5367 GB, free: 7.023 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.8109, allocations: 228.1 kB / 0.537 GB, free: 6.797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.811, allocations: 59.19 kB / 0.537 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.068e-05/0.811, allocations: 4 kB / 0.537 GB, free: 6.734 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.8113, allocations: 362.7 kB / 0.5374 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006257/0.8119, allocations: 103.9 kB / 0.5375 GB, free: 6.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007179/0.8126, allocations: 159.6 kB / 0.5376 GB, free: 6.086 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006623/0.8133, allocations: 111.9 kB / 0.5377 GB, free: 5.977 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.8133, allocations: 0 / 0.5377 GB, free: 5.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00159/0.8149, allocations: 344.9 kB / 0.538 GB, free: 5.633 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005144/0.8155, allocations: 0.7939 MB / 0.5388 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.8155, allocations: 0 / 0.5388 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/0.8155, allocations: 4 kB / 0.5388 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006541/0.8162, allocations: 68.08 kB / 0.5389 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.8162, allocations: 4 kB / 0.5389 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007379/0.817, allocations: 71.44 kB / 0.539 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.8171, allocations: 11.98 kB / 0.539 GB, free: 4.621 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.8171, allocations: 4 kB / 0.539 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001266/0.8184, allocations: 263.8 kB / 0.5392 GB, free: 4.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.8184, allocations: 5.125 kB / 0.5392 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.604e-06/0.8184, allocations: 0 / 0.5392 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005015/0.8189, allocations: 67.92 kB / 0.5393 GB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.819, allocations: 8 kB / 0.5393 GB, free: 4.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006674/0.8197, allocations: 55.66 kB / 0.5394 GB, free: 4.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.8197, allocations: 12 kB / 0.5394 GB, free: 4.215 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003376/0.8201, allocations: 234.3 kB / 0.5396 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.8202, allocations: 47.44 kB / 0.5396 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001854/0.8221, allocations: 474.3 kB / 0.5401 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.8221, allocations: 0 / 0.5401 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.8221, allocations: 4.75 kB / 0.5401 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.8221, allocations: 0 / 0.5401 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.8232, allocations: 464.8 kB / 0.5405 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.8233, allocations: 0 / 0.5405 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/0.8237, allocations: 59.89 kB / 0.5406 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/0.8238, allocations: 4 kB / 0.5406 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.8238, allocations: 10.17 kB / 0.5406 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.8238, allocations: 0 / 0.5406 GB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.8238, allocations: 4 kB / 0.5406 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.8254, allocations: 479.7 kB / 0.5411 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.8257, allocations: 168.2 kB / 0.5412 GB, free: 2.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.8259, allocations: 4 kB / 0.5412 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006768/0.8266, allocations: 39.81 kB / 0.5413 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.39e-05/0.8267, allocations: 19.97 kB / 0.5413 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.8267, allocations: 4 kB / 0.5413 GB, free: 2.133 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007864/0.8275, allocations: 406.8 kB / 0.5417 GB, free: 1.738 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.8275, allocations: 0 / 0.5417 GB, free: 1.738 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005664/0.8332, allocations: 0.933 MB / 0.5426 GB, free: 0.8047 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 (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.01083/0.8441, allocations: 1.952 MB / 0.5445 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.8463, allocations: 380.6 kB / 0.5449 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.8463, allocations: 0 / 0.5449 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000647/0.847, allocations: 124.1 kB / 0.545 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.8493, allocations: 234.4 kB / 0.5452 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008363/0.8576, allocations: 2.744 MB / 0.5479 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008348/0.8586, allocations: 0.8389 MB / 0.5487 GB, free: 10.42 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.8597, allocations: 158.9 kB / 0.5489 GB, free: 10.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004414/0.8601, allocations: 171.4 kB / 0.549 GB, free: 10.1 MB / 430.1 MB Notification: Performance of SimCode: time 2.134e-06/0.8601, allocations: 3.938 kB / 0.549 GB, free: 10.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1163/0.9764, allocations: 39.47 MB / 0.5876 GB, free: 2.652 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002938/0.9768, allocations: 177.1 kB / 0.5877 GB, free: 2.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.391/6.368, allocations: 0 / 0.5877 GB, free: 2.41 MB / 462.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: