Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse.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.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestConstantHeatTransferTwoGrid_Fcoarse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestConstantHeatTransferTwoGrid_Fcoarse",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.00109/0.00109, allocations: 108.3 kB / 16.92 MB, free: 5.758 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.001158/0.001159, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.251/1.251, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.254/0.254, allocations: 48.85 MB / 319.9 MB, free: 11.09 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.001457/0.001457, allocations: 69.48 kB / 390.2 MB, free: 48.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08398/0.08545, allocations: 59.15 MB / 449.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse): time 0.01731/0.1028, allocations: 15.55 MB / 464.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009468/0.1038, allocations: 0.7088 MB / 465.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.104, allocations: 3.938 kB / 465.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003903/0.1044, allocations: 103.4 kB / 465.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005661/0.105, allocations: 211 kB / 465.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004903/0.1099, allocations: 2.056 MB / 468 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005206/0.1105, allocations: 453.8 kB / 468.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.1107, allocations: 101 kB / 468.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005485/0.1112, allocations: 355.1 kB / 468.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003231/0.1115, allocations: 227.2 kB / 469.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.1116, allocations: 20 kB / 469.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006098/0.1177, allocations: 3.547 MB / 472.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.118, allocations: 187.5 kB / 472.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003729/0.1184, allocations: 254.7 kB / 473.1 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00418/0.1226, allocations: 2.335 MB / 475.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1226, allocations: 4 kB / 475.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1226, allocations: 0 / 475.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.1226, allocations: 0 / 475.4 MB, free: 15.52 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.002582/0.1252, allocations: 1.076 MB / 476.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/0.1253, allocations: 8.031 kB / 476.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001014/0.1254, allocations: 86.7 kB / 476.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002252/0.1256, allocations: 72.27 kB / 476.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006422/0.1263, allocations: 495.1 kB / 477.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.1263, allocations: 28.98 kB / 477.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/0.1263, allocations: 36 kB / 477.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009943/0.1273, allocations: 0.6014 MB / 477.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1274, allocations: 7.938 kB / 477.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.1274, allocations: 16 kB / 477.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.454e-05/0.1275, allocations: 28.64 kB / 477.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000804/0.1283, allocations: 466.1 kB / 478.3 MB, free: 12.49 MB / 366.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.002395/0.1307, allocations: 3.156 MB / 481.5 MB, free: 8.934 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006897/0.1314, allocations: 386.6 kB / 481.8 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.1316, allocations: 172.8 kB / 482 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03066/0.1623, allocations: 15.31 MB / 497.3 MB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.1624, allocations: 34.56 kB / 497.4 MB, free: 7.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.504e-06/0.1624, allocations: 0 / 497.4 MB, free: 7.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001316/0.1637, allocations: 0.5474 MB / 497.9 MB, free: 6.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.1637, allocations: 55.41 kB / 498 MB, free: 6.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004457/0.1642, allocations: 409.6 kB / 498.4 MB, free: 6.211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.1642, allocations: 33.7 kB / 498.4 MB, free: 6.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.1644, allocations: 244.2 kB / 498.6 MB, free: 5.926 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.341e-05/0.1645, allocations: 110.4 kB / 498.7 MB, free: 5.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.094e-05/0.1646, allocations: 57.7 kB / 498.8 MB, free: 5.754 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1647, allocations: 350.8 kB / 499.1 MB, free: 5.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.1649, allocations: 107.9 kB / 499.2 MB, free: 5.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.1651, allocations: 140.2 kB / 499.4 MB, free: 5.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.1654, allocations: 296.7 kB / 499.7 MB, free: 4.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1655, allocations: 0 / 499.7 MB, free: 4.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005251/0.166, allocations: 348.9 kB / 0.4883 GB, free: 4.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.166, allocations: 4 kB / 0.4883 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.166, allocations: 0 / 0.4883 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.166, allocations: 4 kB / 0.4883 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.1662, allocations: 51.98 kB / 0.4883 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.1663, allocations: 3.984 kB / 0.4883 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.1664, allocations: 39.52 kB / 0.4884 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.1665, allocations: 12 kB / 0.4884 GB, free: 4.379 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (fluidState[4].phase,fluidState[3].phase,fluidState[2].phase,fluidState[1].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002404/0.1667, allocations: 229.7 kB / 0.4886 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.1668, allocations: 39.47 kB / 0.4887 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.1679, allocations: 1.116 MB / 0.4897 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.522e-05/0.168, allocations: 23.95 kB / 0.4898 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.168, allocations: 4 kB / 0.4898 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.168, allocations: 4 kB / 0.4898 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.1687, allocations: 0.722 MB / 0.4905 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1687, allocations: 3.938 kB / 0.4905 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.1689, allocations: 39.97 kB / 0.4905 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1689, allocations: 0 / 0.4905 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.1689, allocations: 8 kB / 0.4905 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1689, allocations: 4 kB / 0.4905 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1689, allocations: 0 / 0.4905 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006964/0.1696, allocations: 0.708 MB / 0.4912 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.1698, allocations: 144.1 kB / 0.4914 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.1698, allocations: 4 kB / 0.4914 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.17, allocations: 4 kB / 0.4914 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.17, allocations: 15.98 kB / 0.4914 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.17, allocations: 11.98 kB / 0.4914 GB, free: 1.207 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002687/0.1703, allocations: 299.1 kB / 0.4917 GB, free: 0.918 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1703, allocations: 0 / 0.4917 GB, free: 0.918 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001202/0.1715, allocations: 0.4956 MB / 0.4922 GB, free: 432 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 21 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002668/0.1742, allocations: 1.656 MB / 0.4938 GB, free: 14.74 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006914/0.1749, allocations: 458.7 kB / 0.4942 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1749, allocations: 4.25 kB / 0.4942 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.1752, allocations: 309.7 kB / 0.4945 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.1763, allocations: 189.2 kB / 0.4947 GB, free: 13.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005203/0.1815, allocations: 4.543 MB / 0.4991 GB, free: 9.148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/0.1819, allocations: 0.9646 MB / 0.5001 GB, free: 8.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003624/0.1823, allocations: 183 kB / 0.5003 GB, free: 7.984 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.1825, allocations: 207.3 kB / 0.5004 GB, free: 7.781 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1825, allocations: 7.938 kB / 0.5005 GB, free: 7.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1896/0.3722, allocations: 24.25 MB / 0.5241 GB, free: 84.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.82, allocations: 5.172 kB / 0.5241 GB, free: 84.11 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestConstantHeatTransferTwoGrid_Fcoarse.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse.pipe 2>&1)