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.001629/0.00163, allocations: 180.5 kB / 16.38 MB, free: 5.762 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.989/1.989, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.000887/0.0008875, allocations: 93.27 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6044/0.6044, allocations: 48.78 MB / 367.9 MB, free: 47.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.0004361, allocations: 8 kB / 438.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1805, allocations: 60.25 MB / 499 MB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.039/8.22, allocations: 2.908 GB / 3.395 GB, free: 116 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/8.22, allocations: 83.14 kB / 3.396 GB, free: 116 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.9219/9.142, allocations: 302.2 MB / 3.691 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.064e-06/9.142, allocations: 0 / 3.691 GB, free: 20.05 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.644e-05/9.142, allocations: 27.92 kB / 3.691 GB, free: 20.02 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.006283/9.149, allocations: 1.552 MB / 3.692 GB, free: 18.42 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/9.149, allocations: 12.02 kB / 3.692 GB, free: 18.41 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002909/9.149, allocations: 114.5 kB / 3.692 GB, free: 18.29 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/9.15, allocations: 202.8 kB / 3.693 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/9.152, allocations: 0.687 MB / 3.693 GB, free: 17.37 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.616e-05/9.152, allocations: 50 kB / 3.693 GB, free: 17.32 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000179/9.152, allocations: 79.98 kB / 3.693 GB, free: 17.24 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003815/9.156, allocations: 1.737 MB / 3.695 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/9.156, allocations: 0 / 3.695 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.035e-05/9.156, allocations: 31.98 kB / 3.695 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.442e-05/9.156, allocations: 33.98 kB / 3.695 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003527/9.16, allocations: 1.608 MB / 3.697 GB, free: 13.79 MB / 0.5105 GB 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.004897/9.164, allocations: 3.711 MB / 3.7 GB, free: 9.699 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003065/9.168, allocations: 1.191 MB / 3.701 GB, free: 8.492 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3915/9.559, allocations: 63.71 MB / 3.764 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/9.559, allocations: 42.25 kB / 3.764 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=56): time 2.685e-06/9.559, allocations: 0 / 3.764 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=56): time 0.006791/9.566, allocations: 2.062 MB / 3.766 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/9.566, allocations: 58.81 kB / 3.766 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006848/9.567, allocations: 463.1 kB / 3.766 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001589/9.567, allocations: 36.39 kB / 3.766 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/9.567, allocations: 356.1 kB / 3.767 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002588/9.567, allocations: 205.2 kB / 3.767 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.155e-05/9.568, allocations: 15.5 kB / 3.767 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001204/9.568, allocations: 373.6 kB / 3.767 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008945/9.569, allocations: 0.49 MB / 3.768 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009967/9.57, allocations: 0.6909 MB / 3.768 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008023/9.57, allocations: 0.5338 MB / 3.769 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/9.57, allocations: 3.844 kB / 3.769 GB, free: 25.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003159/9.574, allocations: 1.816 MB / 3.771 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000274/9.574, allocations: 1.061 MB / 3.772 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/9.574, allocations: 4.344 kB / 3.772 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004082/9.578, allocations: 1.539 MB / 3.773 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/9.578, allocations: 68.19 kB / 3.773 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/9.582, allocations: 2.162 MB / 3.775 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/9.583, allocations: 127.8 kB / 3.775 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/9.583, allocations: 72.81 kB / 3.776 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/9.583, allocations: 3.812 kB / 3.776 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003106/9.586, allocations: 1.736 MB / 3.777 GB, free: 23.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/9.586, allocations: 3.906 kB / 3.777 GB, free: 23.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003187/9.589, allocations: 1.459 MB / 3.779 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/9.59, allocations: 71.75 kB / 3.779 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004429/9.594, allocations: 2.123 MB / 3.781 GB, free: 38.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/9.595, allocations: 119.1 kB / 3.781 GB, free: 38.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/9.596, allocations: 71.2 kB / 3.781 GB, free: 38.75 MB / 0.5261 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 () * 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.0007527/9.596, allocations: 334.3 kB / 3.781 GB, free: 38.55 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/9.597, allocations: 67.02 kB / 3.781 GB, free: 38.52 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009367/9.606, allocations: 7.755 MB / 3.789 GB, free: 38.37 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.571e-05/9.606, allocations: 18.88 kB / 3.789 GB, free: 38.37 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/9.606, allocations: 5.781 kB / 3.789 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/9.606, allocations: 3.469 kB / 3.789 GB, free: 38.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003594/9.61, allocations: 3.72 MB / 3.793 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/9.61, allocations: 1.875 kB / 3.793 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/9.611, allocations: 213.1 kB / 3.793 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005544/9.612, allocations: 147 kB / 3.793 GB, free: 37.35 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/9.612, allocations: 15.28 kB / 3.793 GB, free: 37.35 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/9.615, allocations: 4.062 MB / 3.797 GB, free: 33.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/9.615, allocations: 0 / 3.797 GB, free: 33.66 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/9.619, allocations: 1.928 MB / 3.799 GB, free: 33.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006031/9.619, allocations: 241 kB / 3.799 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/9.619, allocations: 19.83 kB / 3.799 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008602/9.62, allocations: 64.86 kB / 3.799 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/9.62, allocations: 45.7 kB / 3.799 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-05/9.62, allocations: 21.19 kB / 3.799 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005051/9.621, allocations: 361.9 kB / 3.8 GB, free: 33.16 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/9.621, allocations: 0 / 3.8 GB, free: 33.16 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00646/9.627, allocations: 1.244 MB / 3.801 GB, free: 33.14 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 () * 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.01158/9.639, allocations: 3.681 MB / 3.804 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004791/9.644, allocations: 1.955 MB / 3.806 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/9.644, allocations: 0 / 3.806 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002344/9.646, allocations: 0.8802 MB / 3.807 GB, free: 32 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/9.648, allocations: 287.9 kB / 3.807 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/9.663, allocations: 8.435 MB / 3.816 GB, free: 28.61 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007779/9.664, allocations: 1.097 MB / 3.817 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008437/9.665, allocations: 218.3 kB / 3.817 GB, free: 27.87 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005228/9.665, allocations: 333.2 kB / 3.817 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of SimCode: time 6.472e-06/9.665, allocations: 0 / 3.817 GB, free: 27.86 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/9.767, allocations: 65.5 MB / 3.881 GB, free: 16.98 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/9.767, allocations: 206.6 kB / 3.881 GB, free: 16.74 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.92/13.69, allocations: 7.938 kB / 3.881 GB, free: 16.73 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)