Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.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.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",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.001088/0.001088, allocations: 96.89 kB / 16.3 MB, free: 5.562 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.001043/0.001043, allocations: 184.8 kB / 17.2 MB, free: 5.496 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.023/2.023, allocations: 205.4 MB / 223.3 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.382/0.382, allocations: 48.78 MB / 320.4 MB, free: 11.31 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.0005141/0.0005141, allocations: 13.02 kB / 391.2 MB, free: 50.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1185, allocations: 60.27 MB / 451.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.0436/0.1622, allocations: 39.09 MB / 490.6 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.174, allocations: 8.481 MB / 499.1 MB, free: 9.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005374/0.1746, allocations: 7.938 kB / 499.1 MB, free: 9.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007718/0.1754, allocations: 199 kB / 499.3 MB, free: 9.598 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007129/0.1761, allocations: 275.2 kB / 499.5 MB, free: 9.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01152/0.1876, allocations: 3.635 MB / 0.4914 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.1887, allocations: 499.8 kB / 0.4918 GB, free: 5.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004505/0.1891, allocations: 193.1 kB / 0.492 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003628/0.1895, allocations: 223.2 kB / 0.4922 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.1898, allocations: 219.1 kB / 0.4925 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.1899, allocations: 16 kB / 0.4925 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0117/0.2016, allocations: 6.056 MB / 0.4984 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.2018, allocations: 63.75 kB / 0.4984 GB, free: 14.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002253/0.202, allocations: 113.5 kB / 0.4986 GB, free: 14.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005771/0.2078, allocations: 2.464 MB / 0.501 GB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2078, allocations: 0 / 0.501 GB, free: 11.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.2079, allocations: 0 / 0.501 GB, free: 11.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.2079, allocations: 0 / 0.501 GB, free: 11.84 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00376/0.2116, allocations: 1.08 MB / 0.502 GB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.2117, allocations: 11.97 kB / 0.502 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.713e-05/0.2118, allocations: 62.55 kB / 0.5021 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004069/0.2122, allocations: 91.39 kB / 0.5022 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004677/0.2127, allocations: 310.2 kB / 0.5025 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.2127, allocations: 28.66 kB / 0.5025 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.2128, allocations: 28 kB / 0.5025 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008219/0.2136, allocations: 418.1 kB / 0.5029 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.2137, allocations: 7.891 kB / 0.5029 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.675e-05/0.2137, allocations: 16 kB / 0.5029 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.2137, allocations: 8 kB / 0.5029 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006755/0.2144, allocations: 290.4 kB / 0.5032 GB, free: 9.383 MB / 398.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.00238/0.2168, allocations: 2.22 MB / 0.5054 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007066/0.2175, allocations: 266.6 kB / 0.5056 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3026/0.5202, allocations: 32.27 MB / 0.5372 GB, free: 78.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.5203, allocations: 35.7 kB / 0.5372 GB, free: 78.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.865e-06/0.5203, allocations: 1.125 kB / 0.5372 GB, free: 78.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00541/0.5257, allocations: 1.479 MB / 0.5386 GB, free: 78.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.5257, allocations: 58.92 kB / 0.5387 GB, free: 78.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.5262, allocations: 321.4 kB / 0.539 GB, free: 78.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.5262, allocations: 30.08 kB / 0.539 GB, free: 77.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.5263, allocations: 205.4 kB / 0.5392 GB, free: 77.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.5265, allocations: 120.2 kB / 0.5393 GB, free: 77.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.888e-05/0.5265, allocations: 7.031 kB / 0.5394 GB, free: 77.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.5266, allocations: 347.9 kB / 0.5397 GB, free: 77.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.5269, allocations: 111.6 kB / 0.5398 GB, free: 77.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.5271, allocations: 173.9 kB / 0.54 GB, free: 77.44 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.5274, allocations: 134 kB / 0.5401 GB, free: 77.44 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5274, allocations: 0 / 0.5401 GB, free: 77.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.00112/0.5285, allocations: 441.4 kB / 0.5405 GB, free: 77.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002609/0.5288, allocations: 0.5338 MB / 0.541 GB, free: 76.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.5289, allocations: 1.094 kB / 0.541 GB, free: 76.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005502/0.5294, allocations: 95.3 kB / 0.5411 GB, free: 76.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.5298, allocations: 82.5 kB / 0.5412 GB, free: 76.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007901/0.5306, allocations: 1.11 MB / 0.5423 GB, free: 75.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.531, allocations: 30.2 kB / 0.5423 GB, free: 75.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.531, allocations: 15.59 kB / 0.5423 GB, free: 75.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.5311, allocations: 8.078 kB / 0.5423 GB, free: 75.72 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008978/0.532, allocations: 366.1 kB / 0.5427 GB, free: 75.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.532, allocations: 4.531 kB / 0.5427 GB, free: 75.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004626/0.5325, allocations: 94.59 kB / 0.5428 GB, free: 75.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.5328, allocations: 77.38 kB / 0.5429 GB, free: 75.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006768/0.5335, allocations: 1.115 MB / 0.5439 GB, free: 74.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003712/0.5339, allocations: 40.11 kB / 0.544 GB, free: 74.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.5339, allocations: 14.72 kB / 0.544 GB, free: 74.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002548/0.5342, allocations: 229.3 kB / 0.5442 GB, free: 74.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/0.5343, allocations: 43.3 kB / 0.5443 GB, free: 74.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.5361, allocations: 1.18 MB / 0.5454 GB, free: 74.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.5361, allocations: 9.547 kB / 0.5454 GB, free: 74.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.5361, allocations: 3.25 kB / 0.5454 GB, free: 74.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.5361, allocations: 5.047 kB / 0.5454 GB, free: 74.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007969/0.5369, allocations: 0.6659 MB / 0.5461 GB, free: 73.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.537, allocations: 11.66 kB / 0.5461 GB, free: 73.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003322/0.5373, allocations: 66.84 kB / 0.5461 GB, free: 73.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006141/0.5379, allocations: 142.1 kB / 0.5463 GB, free: 73.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.508e-05/0.538, allocations: 7.156 kB / 0.5463 GB, free: 73.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007566/0.5387, allocations: 1.198 MB / 0.5475 GB, free: 72.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5388, allocations: 3.656 kB / 0.5475 GB, free: 72.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/0.5405, allocations: 1.21 MB / 0.5486 GB, free: 71.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.5407, allocations: 161.6 kB / 0.5488 GB, free: 71.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.5408, allocations: 6.062 kB / 0.5488 GB, free: 71.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.5411, allocations: 30.64 kB / 0.5488 GB, free: 71.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.989e-05/0.5411, allocations: 21.64 kB / 0.5489 GB, free: 71.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.5412, allocations: 15.3 kB / 0.5489 GB, free: 71.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.5414, allocations: 221.8 kB / 0.5491 GB, free: 71.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5414, allocations: 0.9688 kB / 0.5491 GB, free: 71.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003319/0.5447, allocations: 0.932 MB / 0.55 GB, free: 71.45 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006864/0.5516, allocations: 2.639 MB / 0.5526 GB, free: 70.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.5534, allocations: 0.674 MB / 0.5532 GB, free: 69.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.5534, allocations: 0 / 0.5532 GB, free: 69.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006187/0.5541, allocations: 398.2 kB / 0.5536 GB, free: 69.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.5553, allocations: 191.3 kB / 0.5538 GB, free: 69.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006572/0.5619, allocations: 3.917 MB / 0.5576 GB, free: 66.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.5623, allocations: 0.8661 MB / 0.5585 GB, free: 65.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005011/0.5628, allocations: 194 kB / 0.5586 GB, free: 65.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002207/0.5631, allocations: 176.2 kB / 0.5588 GB, free: 65.7 MB / 414.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5631, allocations: 0 / 0.5588 GB, free: 65.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06379/0.6269, allocations: 40.93 MB / 0.5988 GB, free: 26.2 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.6271, allocations: 204.7 kB / 0.599 GB, free: 25.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.116/5.743, allocations: 0 / 0.599 GB, free: 25.96 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2.fmu > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1) Environment - environmentSimulation: