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.0007487/0.0007487, allocations: 88.16 kB / 16.31 MB, free: 5.551 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.0009076/0.0009077, allocations: 181.5 kB / 17.21 MB, free: 5.469 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.296/1.296, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.298/0.298, allocations: 48.78 MB / 320.4 MB, free: 11.23 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.0005029/0.000503, allocations: 14.58 kB / 391.3 MB, free: 50.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1049, allocations: 60.28 MB / 451.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.ValveZeroFlow2): time 0.04428/0.1492, allocations: 43.22 MB / 494.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.1605, allocations: 9.188 MB / 0.4921 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004294/0.161, allocations: 7.938 kB / 0.4921 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006651/0.1617, allocations: 190.8 kB / 0.4923 GB, free: 4.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006177/0.1623, allocations: 306 kB / 0.4926 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01133/0.1736, allocations: 3.577 MB / 0.4961 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001408/0.1751, allocations: 0.9189 MB / 0.497 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.1755, allocations: 185.1 kB / 0.4972 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003692/0.1759, allocations: 247 kB / 0.4974 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003589/0.1762, allocations: 286.8 kB / 0.4977 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.1763, allocations: 16 kB / 0.4977 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01053/0.1868, allocations: 5.899 MB / 0.5035 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.187, allocations: 59.75 kB / 0.5035 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002189/0.1872, allocations: 113.5 kB / 0.5036 GB, free: 9.059 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005001/0.1922, allocations: 2.479 MB / 0.5061 GB, free: 6.574 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1923, allocations: 0 / 0.5061 GB, free: 6.574 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1923, allocations: 0 / 0.5061 GB, free: 6.574 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.934e-06/0.1923, allocations: 0 / 0.5061 GB, free: 6.574 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.003679/0.196, allocations: 1.072 MB / 0.5071 GB, free: 5.453 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.196, allocations: 8.031 kB / 0.5071 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.591e-05/0.1961, allocations: 70.53 kB / 0.5072 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003572/0.1965, allocations: 91.33 kB / 0.5073 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004818/0.197, allocations: 318.2 kB / 0.5076 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.197, allocations: 28.53 kB / 0.5076 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.195e-05/0.1971, allocations: 32 kB / 0.5076 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007927/0.1979, allocations: 414.1 kB / 0.508 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1979, allocations: 11.89 kB / 0.508 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.1979, allocations: 12 kB / 0.508 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.198, allocations: 8 kB / 0.5081 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006278/0.1986, allocations: 290.4 kB / 0.5083 GB, free: 4.117 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.002178/0.2008, allocations: 2.216 MB / 0.5105 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006494/0.2014, allocations: 262.7 kB / 0.5107 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.2016, allocations: 100.8 kB / 0.5108 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2933/0.4949, allocations: 32.28 MB / 0.5424 GB, free: 25.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.495, allocations: 42.56 kB / 0.5424 GB, free: 25.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.572e-06/0.495, allocations: 0 / 0.5424 GB, free: 25.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.004123/0.4991, allocations: 1.47 MB / 0.5438 GB, free: 25.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.4991, allocations: 55.58 kB / 0.5439 GB, free: 25.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003375/0.4995, allocations: 315.7 kB / 0.5442 GB, free: 24.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.4995, allocations: 34.23 kB / 0.5442 GB, free: 24.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.4997, allocations: 215.2 kB / 0.5444 GB, free: 24.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.89e-05/0.4997, allocations: 115.3 kB / 0.5445 GB, free: 24.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.736e-05/0.4998, allocations: 7.844 kB / 0.5446 GB, free: 24.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.4998, allocations: 350.5 kB / 0.5449 GB, free: 24.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.5, allocations: 111 kB / 0.545 GB, free: 24.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.5003, allocations: 173.3 kB / 0.5452 GB, free: 24.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.5005, allocations: 134.5 kB / 0.5453 GB, free: 24.4 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.5005, allocations: 1.906 kB / 0.5453 GB, free: 24.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009222/0.5014, allocations: 438.9 kB / 0.5457 GB, free: 24.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.09e-05/0.5015, allocations: 135.5 kB / 0.5458 GB, free: 24.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.5015, allocations: 0.8438 kB / 0.5458 GB, free: 24.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004469/0.502, allocations: 96.23 kB / 0.5459 GB, free: 24.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003268/0.5023, allocations: 79.31 kB / 0.546 GB, free: 24.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006142/0.5029, allocations: 1.11 MB / 0.5471 GB, free: 23.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002712/0.5032, allocations: 41.73 kB / 0.5471 GB, free: 23.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.5032, allocations: 14.84 kB / 0.5471 GB, free: 23.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.725e-06/0.5033, allocations: 3.094 kB / 0.5471 GB, free: 23.12 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007271/0.504, allocations: 370.5 kB / 0.5475 GB, free: 23.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.504, allocations: 3.344 kB / 0.5475 GB, free: 23.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003755/0.5044, allocations: 87.31 kB / 0.5476 GB, free: 23.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.5047, allocations: 80.52 kB / 0.5477 GB, free: 23.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005406/0.5052, allocations: 1.11 MB / 0.5487 GB, free: 22.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.5055, allocations: 40.34 kB / 0.5488 GB, free: 22.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.5055, allocations: 13.44 kB / 0.5488 GB, free: 22.03 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.0001693/0.5057, allocations: 237.3 kB / 0.549 GB, free: 21.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.5058, allocations: 34.88 kB / 0.5491 GB, free: 21.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.5072, allocations: 1.183 MB / 0.5502 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.5073, allocations: 16.75 kB / 0.5502 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.5073, allocations: 4 kB / 0.5502 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5073, allocations: 0 / 0.5502 GB, free: 21.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006755/0.508, allocations: 0.6728 MB / 0.5509 GB, free: 21.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.508, allocations: 1.094 kB / 0.5509 GB, free: 21.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.5083, allocations: 69.62 kB / 0.551 GB, free: 21.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005387/0.5088, allocations: 142.3 kB / 0.5511 GB, free: 21.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.626e-05/0.5089, allocations: 11.5 kB / 0.5511 GB, free: 21.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006292/0.5095, allocations: 1.188 MB / 0.5523 GB, free: 20.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5095, allocations: 3.953 kB / 0.5523 GB, free: 20.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.511, allocations: 1.213 MB / 0.5534 GB, free: 20.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.5111, allocations: 164.6 kB / 0.5536 GB, free: 20.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.591e-05/0.5112, allocations: 11.8 kB / 0.5536 GB, free: 20.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.5114, allocations: 25.05 kB / 0.5536 GB, free: 20.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.668e-05/0.5115, allocations: 26.61 kB / 0.5537 GB, free: 20.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.5115, allocations: 9.875 kB / 0.5537 GB, free: 20.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001963/0.5117, allocations: 223 kB / 0.5539 GB, free: 19.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5117, allocations: 0 / 0.5539 GB, free: 19.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002925/0.5147, allocations: 0.9308 MB / 0.5548 GB, free: 19.95 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.00481/0.5195, allocations: 2.635 MB / 0.5574 GB, free: 19.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.5209, allocations: 0.6794 MB / 0.558 GB, free: 19.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5209, allocations: 0 / 0.558 GB, free: 19.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005235/0.5214, allocations: 394.5 kB / 0.5584 GB, free: 19.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.5225, allocations: 199.8 kB / 0.5586 GB, free: 19.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004596/0.5271, allocations: 3.176 MB / 0.5617 GB, free: 17.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.5274, allocations: 0.8545 MB / 0.5625 GB, free: 17.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004187/0.5278, allocations: 192.1 kB / 0.5627 GB, free: 17.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.528, allocations: 181.3 kB / 0.5629 GB, free: 17.27 MB / 414.1 MB Notification: Performance of SimCode: time 6.62e-07/0.528, allocations: 0 / 0.5629 GB, free: 17.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1611/0.6892, allocations: 40.97 MB / 0.6029 GB, free: 2.258 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000288/0.6895, allocations: 205.6 kB / 0.6031 GB, free: 2.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.188/4.877, allocations: 0 / 0.6031 GB, free: 2.02 MB / 430.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: