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.001505/0.001505, allocations: 107.8 kB / 16.92 MB, free: 5.766 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.001553/0.001553, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.292/1.292, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3126/0.3126, allocations: 48.84 MB / 319.9 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.002143/0.002143, allocations: 70.72 kB / 390.2 MB, free: 48.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1332, allocations: 59.15 MB / 449.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValveChoked): time 0.06423/0.1975, allocations: 44.34 MB / 493.7 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.2134, allocations: 9.266 MB / 0.4912 GB, free: 3.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004108/0.2138, allocations: 15.88 kB / 0.4912 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00095/0.2148, allocations: 202.5 kB / 0.4914 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007448/0.2156, allocations: 286 kB / 0.4916 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0173/0.2329, allocations: 5.04 MB / 0.4966 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001235/0.2342, allocations: 0.7942 MB / 0.4973 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005624/0.2348, allocations: 266.4 kB / 0.4976 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009715/0.2358, allocations: 394.3 kB / 0.498 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004325/0.2362, allocations: 286.7 kB / 0.4982 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.2362, allocations: 28 kB / 0.4983 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01343/0.2497, allocations: 6.013 MB / 0.5041 GB, free: 6.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.197e-05/0.2498, allocations: 83.61 kB / 0.5042 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003745/0.2502, allocations: 246.7 kB / 0.5045 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007246/0.2574, allocations: 3.703 MB / 0.5081 GB, free: 2.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2574, allocations: 0 / 0.5081 GB, free: 2.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2574, allocations: 0 / 0.5081 GB, free: 2.527 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.2575, allocations: 3.938 kB / 0.5081 GB, free: 2.523 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.003418/0.2609, allocations: 1.181 MB / 0.5092 GB, free: 1.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001079/0.261, allocations: 11.89 kB / 0.5092 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.431e-05/0.2611, allocations: 66.72 kB / 0.5093 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003629/0.2615, allocations: 72.27 kB / 0.5094 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006265/0.2621, allocations: 366 kB / 0.5097 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.2621, allocations: 25.03 kB / 0.5097 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.2622, allocations: 32.12 kB / 0.5098 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.2635, allocations: 430.5 kB / 0.5102 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.2636, allocations: 4 kB / 0.5102 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.184e-05/0.2636, allocations: 16 kB / 0.5102 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.2636, allocations: 8 kB / 0.5102 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.2652, allocations: 363.5 kB / 0.5106 GB, free: 15.84 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.003274/0.2685, allocations: 2.124 MB / 0.5126 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.27, allocations: 301 kB / 0.5129 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005269/0.2706, allocations: 109.7 kB / 0.513 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2456/0.5162, allocations: 32.09 MB / 0.5444 GB, free: 72.11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.5163, allocations: 44.83 kB / 0.5444 GB, free: 72.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.5163, allocations: 0 / 0.5444 GB, free: 72.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001503/0.5178, allocations: 416.1 kB / 0.5448 GB, free: 72.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.5178, allocations: 82.36 kB / 0.5449 GB, free: 71.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003628/0.5182, allocations: 443.5 kB / 0.5453 GB, free: 71.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.5182, allocations: 30.77 kB / 0.5453 GB, free: 71.79 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.5183, allocations: 227.5 kB / 0.5456 GB, free: 71.71 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.5184, allocations: 56 kB / 0.5456 GB, free: 71.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.5184, allocations: 54.3 kB / 0.5457 GB, free: 71.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.5185, allocations: 354.8 kB / 0.546 GB, free: 71.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000334/0.5188, allocations: 103.6 kB / 0.5461 GB, free: 71.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003421/0.5192, allocations: 152.5 kB / 0.5462 GB, free: 71.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.5198, allocations: 260.4 kB / 0.5465 GB, free: 71.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5199, allocations: 1.531 kB / 0.5465 GB, free: 71.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008062/0.5207, allocations: 326.6 kB / 0.5468 GB, free: 71.15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.5207, allocations: 10.19 kB / 0.5468 GB, free: 71.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.5207, allocations: 3.266 kB / 0.5468 GB, free: 71.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.5207, allocations: 2.844 kB / 0.5468 GB, free: 71.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003238/0.521, allocations: 70.81 kB / 0.5469 GB, free: 71.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.5211, allocations: 3.969 kB / 0.5469 GB, free: 71.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.5214, allocations: 53.66 kB / 0.5469 GB, free: 71.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.5214, allocations: 12.19 kB / 0.547 GB, free: 71.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003586/0.5218, allocations: 198 kB / 0.5471 GB, free: 71.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000315/0.5221, allocations: 162 kB / 0.5473 GB, free: 70.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006029/0.5227, allocations: 259.1 kB / 0.5475 GB, free: 70.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.813e-06/0.5227, allocations: 0.875 kB / 0.5475 GB, free: 70.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.000758/0.5235, allocations: 319.2 kB / 0.5479 GB, free: 70.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.003e-06/0.5235, allocations: 5.875 kB / 0.5479 GB, free: 70.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.5235, allocations: 6.75 kB / 0.5479 GB, free: 70.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.577e-06/0.5235, allocations: 3.562 kB / 0.5479 GB, free: 70.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.5238, allocations: 70.53 kB / 0.5479 GB, free: 70.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.5238, allocations: 3.469 kB / 0.5479 GB, free: 70.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002812/0.5241, allocations: 30.55 kB / 0.548 GB, free: 70.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.5241, allocations: 16.77 kB / 0.548 GB, free: 70.69 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 6.326e-05/0.5242, allocations: 203.5 kB / 0.5482 GB, free: 70.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.198e-05/0.5243, allocations: 46.88 kB / 0.5482 GB, free: 70.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008908/0.5252, allocations: 449.5 kB / 0.5486 GB, free: 70.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.5252, allocations: 2.844 kB / 0.5487 GB, free: 70.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.5252, allocations: 1.312 kB / 0.5487 GB, free: 70.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.5252, allocations: 4 kB / 0.5487 GB, free: 70.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003919/0.5256, allocations: 456.5 kB / 0.5491 GB, free: 70.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5256, allocations: 5.109 kB / 0.5491 GB, free: 70.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.5259, allocations: 49.03 kB / 0.5491 GB, free: 70.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.5259, allocations: 5.828 kB / 0.5491 GB, free: 70.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.5259, allocations: 5.312 kB / 0.5492 GB, free: 70.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5259, allocations: 1.031 kB / 0.5492 GB, free: 70.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5259, allocations: 3.656 kB / 0.5492 GB, free: 70.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007439/0.5267, allocations: 465.8 kB / 0.5496 GB, free: 69.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-05/0.5267, allocations: 119.3 kB / 0.5497 GB, free: 69.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.749e-05/0.5268, allocations: 24.77 kB / 0.5497 GB, free: 69.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.5271, allocations: 16.36 kB / 0.5498 GB, free: 69.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.5272, allocations: 14.8 kB / 0.5498 GB, free: 69.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.5272, allocations: 12.14 kB / 0.5498 GB, free: 69.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003448/0.5276, allocations: 409.6 kB / 0.5502 GB, free: 69.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5276, allocations: 4 kB / 0.5502 GB, free: 69.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001886/0.5295, allocations: 0.9325 MB / 0.5511 GB, free: 69.28 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.003478/0.5329, allocations: 1.837 MB / 0.5529 GB, free: 68.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.5341, allocations: 377.8 kB / 0.5532 GB, free: 68.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5341, allocations: 0.625 kB / 0.5532 GB, free: 68.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000371/0.5345, allocations: 108.8 kB / 0.5533 GB, free: 68.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.5357, allocations: 241.7 kB / 0.5536 GB, free: 67.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005066/0.5408, allocations: 4.388 MB / 0.5579 GB, free: 65.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.5409, allocations: 0.8287 MB / 0.5587 GB, free: 64.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002884/0.5412, allocations: 162.3 kB / 0.5588 GB, free: 64.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.5414, allocations: 174.5 kB / 0.559 GB, free: 64.13 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.5414, allocations: 0 / 0.559 GB, free: 64.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.147/4.689, allocations: 39.83 MB / 0.5979 GB, free: 25.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.14/19.83, allocations: 7.938 kB / 0.5979 GB, free: 25.85 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)