Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001288/0.001288, allocations: 175.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.736/1.736, allocations: 205.2 MB / 219.4 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008839/0.0008836, allocations: 82.7 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3681/0.3681, allocations: 48.77 MB / 364.3 MB, free: 6.871 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.712e-05/3.714e-05, allocations: 3.938 kB / 432.6 MB, free: 16.67 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.167, allocations: 60.25 MB / 492.8 MB, free: 4.281 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.795/8.962, allocations: 2.908 GB / 3.389 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/8.962, allocations: 83.27 kB / 3.39 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.8959/9.858, allocations: 301.1 MB / 3.684 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.232e-06/9.858, allocations: 0 / 3.684 GB, free: 12.16 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.859e-05/9.858, allocations: 23.94 kB / 3.684 GB, free: 12.14 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.005101/9.864, allocations: 1.45 MB / 3.685 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/9.864, allocations: 12.03 kB / 3.685 GB, free: 10.63 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001758/9.864, allocations: 118.5 kB / 3.685 GB, free: 10.51 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/9.865, allocations: 206.8 kB / 3.685 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/9.866, allocations: 0.666 MB / 3.686 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/9.866, allocations: 61.98 kB / 3.686 GB, free: 9.535 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/9.866, allocations: 87.84 kB / 3.686 GB, free: 9.449 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00362/9.87, allocations: 1.749 MB / 3.688 GB, free: 7.664 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/9.87, allocations: 4 kB / 3.688 GB, free: 7.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.14e-05/9.87, allocations: 24 kB / 3.688 GB, free: 7.637 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.293e-05/9.87, allocations: 37.98 kB / 3.688 GB, free: 7.598 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003298/9.873, allocations: 1.604 MB / 3.689 GB, free: 5.992 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.003997/9.878, allocations: 3.703 MB / 3.693 GB, free: 1.91 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002812/9.88, allocations: 1.207 MB / 3.694 GB, free: 0.6836 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003456/9.881, allocations: 286.4 kB / 3.695 GB, free: 412 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.418/10.3, allocations: 63.95 MB / 3.757 GB, free: 27.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/10.3, allocations: 44.09 kB / 3.757 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=56): time 2.405e-06/10.3, allocations: 0 / 3.757 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of matching and sorting (n=56): time 0.005204/10.3, allocations: 1.675 MB / 3.759 GB, free: 27.08 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/10.3, allocations: 61.22 kB / 3.759 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005724/10.3, allocations: 458.9 kB / 3.759 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001036/10.3, allocations: 37.98 kB / 3.759 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/10.31, allocations: 366.3 kB / 3.76 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/10.31, allocations: 193.7 kB / 3.76 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/10.31, allocations: 10.69 kB / 3.76 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.151e-05/10.31, allocations: 375.7 kB / 3.76 GB, free: 26.33 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006539/10.31, allocations: 489.2 kB / 3.761 GB, free: 26.33 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007436/10.31, allocations: 0.6716 MB / 3.761 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007307/10.31, allocations: 0.5222 MB / 3.762 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/10.31, allocations: 0.6562 kB / 3.762 GB, free: 26.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002716/10.31, allocations: 1.791 MB / 3.763 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001995/10.31, allocations: 1.056 MB / 3.765 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/10.31, allocations: 3.844 kB / 3.765 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003361/10.31, allocations: 1.468 MB / 3.766 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/10.31, allocations: 67.67 kB / 3.766 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002721/10.32, allocations: 2.151 MB / 3.768 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/10.32, allocations: 119.2 kB / 3.768 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/10.32, allocations: 75.52 kB / 3.768 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/10.32, allocations: 14.34 kB / 3.768 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0027/10.32, allocations: 1.689 MB / 3.77 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/10.32, allocations: 3.875 kB / 3.77 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002749/10.32, allocations: 1.388 MB / 3.771 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/10.32, allocations: 74.98 kB / 3.771 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/10.33, allocations: 2.102 MB / 3.773 GB, free: 23.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/10.33, allocations: 118.7 kB / 3.774 GB, free: 23.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/10.33, allocations: 73.44 kB / 3.774 GB, free: 23.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (heater.fluidState[2].phase,heater.fluidState[1].phase,boiler.fluidState[2].phase,boiler.fluidState[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 37} Notification: Performance of prepare postOptimizeDAE: time 0.0002666/10.33, allocations: 141.5 kB / 3.774 GB, free: 23.54 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/10.33, allocations: 63.22 kB / 3.774 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005864/10.33, allocations: 8.034 MB / 3.782 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/10.33, allocations: 25.8 kB / 3.782 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/10.33, allocations: 0 / 3.782 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/10.33, allocations: 3.797 kB / 3.782 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/10.34, allocations: 3.716 MB / 3.785 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/10.34, allocations: 0 / 3.785 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/10.34, allocations: 220 kB / 3.786 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00052/10.34, allocations: 139.2 kB / 3.786 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.968e-05/10.34, allocations: 22.02 kB / 3.786 GB, free: 22.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00325/10.34, allocations: 4.032 MB / 3.79 GB, free: 34.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/10.34, allocations: 5.938 kB / 3.79 GB, free: 34.66 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/10.34, allocations: 1.891 MB / 3.791 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/10.34, allocations: 240.1 kB / 3.792 GB, free: 34.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.237e-05/10.34, allocations: 11.75 kB / 3.792 GB, free: 34.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006579/10.35, allocations: 69.8 kB / 3.792 GB, free: 34.24 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/10.35, allocations: 51.64 kB / 3.792 GB, free: 34.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.107e-05/10.35, allocations: 18.66 kB / 3.792 GB, free: 34.24 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003705/10.35, allocations: 359.3 kB / 3.792 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.3e-07/10.35, allocations: 0 / 3.792 GB, free: 34.14 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004185/10.35, allocations: 1.24 MB / 3.793 GB, free: 34.12 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (boiler.p,boiler.htilde[1],heater.p,heater.htilde[1]) * Number of discrete variables: 8 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007516/10.36, allocations: 3.658 MB / 3.797 GB, free: 33.24 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003206/10.36, allocations: 1.934 MB / 3.799 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/10.36, allocations: 0 / 3.799 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001754/10.36, allocations: 0.8592 MB / 3.8 GB, free: 32.99 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/10.36, allocations: 288.1 kB / 3.8 GB, free: 32.97 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/10.37, allocations: 2.181 MB / 3.802 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006519/10.37, allocations: 1.102 MB / 3.803 GB, free: 31.73 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008347/10.37, allocations: 261.1 kB / 3.803 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004334/10.37, allocations: 321.4 kB / 3.804 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.072e-06/10.37, allocations: 0 / 3.804 GB, free: 31.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08582/10.46, allocations: 68.71 MB / 3.871 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001645/10.46, allocations: 180.4 kB / 3.871 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.821/14.28, allocations: 0 / 3.871 GB, free: 10.27 MB / 0.5261 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestExpansionTankIdeal.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestExpansionTankIdeal.pipe 2>&1)