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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.0013, allocations: 97.67 kB / 16.3 MB, free: 5.656 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.002268/0.002268, allocations: 183.2 kB / 17.2 MB, free: 5.59 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.811/1.811, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4042/0.4042, allocations: 48.79 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.0008527/0.0008529, allocations: 13.75 kB / 391.2 MB, free: 50.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1618, allocations: 60.27 MB / 451.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestExpansionTankIdeal): time 0.06361/0.2255, allocations: 38.12 MB / 489.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0204/0.246, allocations: 10.01 MB / 499.6 MB, free: 9.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009408/0.247, allocations: 11.94 kB / 499.6 MB, free: 9.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.2483, allocations: 310.5 kB / 499.9 MB, free: 8.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.2501, allocations: 394.9 kB / 0.4886 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0166/0.2668, allocations: 3.269 MB / 0.4918 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003164/0.27, allocations: 0.9966 MB / 0.4928 GB, free: 4.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.271, allocations: 435 kB / 0.4932 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001392/0.2724, allocations: 462.5 kB / 0.4936 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001087/0.2736, allocations: 442.4 kB / 0.494 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.2737, allocations: 36 kB / 0.4941 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01861/0.2923, allocations: 6.188 MB / 0.5001 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007646/0.2932, allocations: 243.3 kB / 0.5003 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000536/0.2937, allocations: 201.3 kB / 0.5005 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.3038, allocations: 2.919 MB / 0.5034 GB, free: 9.332 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3039, allocations: 0 / 0.5034 GB, free: 9.332 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.566e-06/0.3039, allocations: 0 / 0.5034 GB, free: 9.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.3039, allocations: 0 / 0.5034 GB, free: 9.332 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.006749/0.3107, allocations: 1.501 MB / 0.5049 GB, free: 7.781 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.48e-05/0.3108, allocations: 12.03 kB / 0.5049 GB, free: 7.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003/0.3111, allocations: 122.4 kB / 0.505 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001642/0.3127, allocations: 198.8 kB / 0.5052 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001662/0.3144, allocations: 0.5725 MB / 0.5057 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.371e-05/0.3145, allocations: 50 kB / 0.5058 GB, free: 6.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001873/0.3147, allocations: 75.98 kB / 0.5058 GB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006904/0.3216, allocations: 1.711 MB / 0.5075 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.3217, allocations: 0 / 0.5075 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.3218, allocations: 28 kB / 0.5075 GB, free: 4.953 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.111e-05/0.3219, allocations: 33.98 kB / 0.5076 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006822/0.3288, allocations: 1.647 MB / 0.5092 GB, free: 3.273 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.008014/0.3368, allocations: 3.657 MB / 0.5128 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005263/0.3422, allocations: 1.199 MB / 0.5139 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5075/0.8497, allocations: 64.58 MB / 0.577 GB, free: 43.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.951e-05/0.8498, allocations: 35.75 kB / 0.577 GB, free: 43.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=56): time 4.799e-06/0.8499, allocations: 9.047 kB / 0.577 GB, free: 43.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=56): time 0.009679/0.8596, allocations: 2.106 MB / 0.5791 GB, free: 42.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.8596, allocations: 59.97 kB / 0.5792 GB, free: 42.1 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008818/0.8605, allocations: 0.5171 MB / 0.5797 GB, free: 41.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001413/0.8607, allocations: 41.55 kB / 0.5797 GB, free: 41.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.861, allocations: 348.5 kB / 0.58 GB, free: 41.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.8613, allocations: 204.6 kB / 0.5802 GB, free: 41.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.8614, allocations: 12 kB / 0.5802 GB, free: 41.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.8615, allocations: 378.5 kB / 0.5806 GB, free: 40.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.8627, allocations: 0.5087 MB / 0.5811 GB, free: 40.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.8639, allocations: 0.6389 MB / 0.5817 GB, free: 39.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.8651, allocations: 0.5397 MB / 0.5822 GB, free: 38.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.8651, allocations: 0 / 0.5822 GB, free: 38.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004777/0.8699, allocations: 1.851 MB / 0.5841 GB, free: 37.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002594/0.8702, allocations: 1.045 MB / 0.5851 GB, free: 35.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.8702, allocations: 11.95 kB / 0.5851 GB, free: 35.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006096/0.8763, allocations: 1.609 MB / 0.5867 GB, free: 34.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.8768, allocations: 67.84 kB / 0.5867 GB, free: 34.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004636/0.8815, allocations: 2.184 MB / 0.5889 GB, free: 32.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.883, allocations: 115.4 kB / 0.589 GB, free: 31.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.8832, allocations: 71.92 kB / 0.589 GB, free: 31.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.8833, allocations: 8 kB / 0.589 GB, free: 31.87 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004461/0.8877, allocations: 1.751 MB / 0.5907 GB, free: 30.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.8878, allocations: 0 / 0.5907 GB, free: 30.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004665/0.8925, allocations: 1.498 MB / 0.5922 GB, free: 28.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004768/0.893, allocations: 71.91 kB / 0.5923 GB, free: 28.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004508/0.8975, allocations: 2.143 MB / 0.5944 GB, free: 26.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.8992, allocations: 115.4 kB / 0.5945 GB, free: 26.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002226/0.8994, allocations: 75.91 kB / 0.5946 GB, free: 26.2 MB / 414.1 MB 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 () * Number of clocked 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.0008277/0.9003, allocations: 329.8 kB / 0.5949 GB, free: 25.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.9006, allocations: 63.25 kB / 0.5949 GB, free: 25.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01049/0.9111, allocations: 7.938 MB / 0.6027 GB, free: 17.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.973e-05/0.9111, allocations: 18.94 kB / 0.6027 GB, free: 17.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.9112, allocations: 4 kB / 0.6027 GB, free: 17.83 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.9112, allocations: 3.984 kB / 0.6027 GB, free: 17.83 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00456/0.9158, allocations: 3.814 MB / 0.6064 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.9158, allocations: 3.953 kB / 0.6064 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002284/0.9181, allocations: 211.7 kB / 0.6066 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008683/0.919, allocations: 145.5 kB / 0.6068 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001593/0.9192, allocations: 23.97 kB / 0.6068 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003496/0.9227, allocations: 4.053 MB / 0.6108 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.9227, allocations: 0 / 0.6108 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004143/0.9269, allocations: 1.937 MB / 0.6126 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007253/0.9277, allocations: 235.8 kB / 0.6129 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.9279, allocations: 15.98 kB / 0.6129 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.9289, allocations: 79.88 kB / 0.613 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.9291, allocations: 39.12 kB / 0.613 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.8e-05/0.9292, allocations: 27.97 kB / 0.613 GB, free: 6.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006222/0.9299, allocations: 358.8 kB / 0.6134 GB, free: 6.312 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9299, allocations: 0 / 0.6134 GB, free: 6.312 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005921/0.9358, allocations: 1.216 MB / 0.6146 GB, free: 5.16 MB / 414.1 MB 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 () * Number of clocked 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.01195/0.9478, allocations: 3.37 MB / 0.6179 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005028/0.9529, allocations: 1.984 MB / 0.6198 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.953, allocations: 0 / 0.6198 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003062/0.956, allocations: 0.8918 MB / 0.6207 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/0.9585, allocations: 283.5 kB / 0.6209 GB, free: 14.74 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01959/0.9782, allocations: 8.416 MB / 0.6291 GB, free: 6.254 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009641/0.9792, allocations: 1.093 MB / 0.6302 GB, free: 5.129 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001266/0.9805, allocations: 216.9 kB / 0.6304 GB, free: 4.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007725/0.9812, allocations: 331.3 kB / 0.6307 GB, free: 4.598 MB / 430.1 MB Notification: Performance of SimCode: time 1.433e-06/0.9813, allocations: 0 / 0.6307 GB, free: 4.598 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.162/1.143, allocations: 69.5 MB / 0.6986 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003266/1.144, allocations: 217.3 kB / 0.6988 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.997/7.14, allocations: 4 kB / 0.6988 GB, free: 14.59 MB / 0.4981 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) Environment - environmentSimulation: