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.001353/0.001353, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001309/0.001309, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.331/1.331, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2765/0.2765, allocations: 48.85 MB / 320.1 MB, free: 11 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.002033/0.002033, allocations: 75.89 kB / 450.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.104, allocations: 59.15 MB / 0.4973 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestConstantHeatTransferTwoGrid_Fcoarse): time 0.01875/0.1228, allocations: 15.54 MB / 0.5125 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009607/0.1238, allocations: 0.7049 MB / 0.5132 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.732e-05/0.1239, allocations: 7.938 kB / 0.5132 GB, free: 13.4 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.1243, allocations: 107.4 kB / 0.5133 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004883/0.1248, allocations: 199.1 kB / 0.5135 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005104/0.1299, allocations: 2.052 MB / 0.5155 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000642/0.1306, allocations: 461.6 kB / 0.5159 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.1308, allocations: 112.9 kB / 0.516 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005341/0.1313, allocations: 355.1 kB / 0.5163 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000311/0.1317, allocations: 231.1 kB / 0.5166 GB, free: 9.906 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.1317, allocations: 20 kB / 0.5166 GB, free: 9.887 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006427/0.1382, allocations: 3.632 MB / 0.5201 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.1384, allocations: 199.4 kB / 0.5203 GB, free: 6.055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002876/0.1387, allocations: 254.6 kB / 0.5206 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003682/0.1424, allocations: 2.338 MB / 0.5228 GB, free: 3.461 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1424, allocations: 0 / 0.5228 GB, free: 3.461 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.1424, allocations: 0 / 0.5228 GB, free: 3.461 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1424, allocations: 3.938 kB / 0.5229 GB, free: 3.457 MB / 414.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.002457/0.1449, allocations: 1.101 MB / 0.5239 GB, free: 2.305 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.145, allocations: 12.03 kB / 0.5239 GB, free: 2.293 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.874e-05/0.145, allocations: 82.7 kB / 0.524 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.1453, allocations: 72.55 kB / 0.5241 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007447/0.146, allocations: 0.5226 MB / 0.5246 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.146, allocations: 28.98 kB / 0.5246 GB, free: 1.543 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.36e-05/0.1461, allocations: 36 kB / 0.5247 GB, free: 1.508 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.1472, allocations: 0.5936 MB / 0.5252 GB, free: 0.875 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1472, allocations: 4 kB / 0.5252 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.1473, allocations: 16 kB / 0.5253 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.761e-05/0.1473, allocations: 28.64 kB / 0.5253 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008706/0.1482, allocations: 466.1 kB / 0.5257 GB, free: 384 kB / 414.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.1804/0.3286, allocations: 3.148 MB / 0.5288 GB, free: 28.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006785/0.3293, allocations: 380.2 kB / 0.5292 GB, free: 28.6 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.3296, allocations: 178.3 kB / 0.5293 GB, free: 28.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02897/0.3585, allocations: 15.37 MB / 0.5443 GB, free: 19.11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.3586, allocations: 35.81 kB / 0.5444 GB, free: 19.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.375e-06/0.3586, allocations: 0 / 0.5444 GB, free: 19.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001353/0.36, allocations: 0.5522 MB / 0.5449 GB, free: 19.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.098e-05/0.36, allocations: 54.44 kB / 0.545 GB, free: 18.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.3604, allocations: 412.1 kB / 0.5454 GB, free: 18.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.3604, allocations: 29.64 kB / 0.5454 GB, free: 18.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.3606, allocations: 245.5 kB / 0.5456 GB, free: 18.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.627e-05/0.3606, allocations: 112.4 kB / 0.5457 GB, free: 18.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.775e-05/0.3607, allocations: 57.47 kB / 0.5458 GB, free: 18.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.597e-05/0.3608, allocations: 361.8 kB / 0.5461 GB, free: 18.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.361, allocations: 105.3 kB / 0.5462 GB, free: 18.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.3612, allocations: 158.4 kB / 0.5464 GB, free: 18.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000358/0.3615, allocations: 291.1 kB / 0.5467 GB, free: 18.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3616, allocations: 0 / 0.5467 GB, free: 18.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005005/0.3621, allocations: 347.6 kB / 0.547 GB, free: 18.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3621, allocations: 5.984 kB / 0.547 GB, free: 18.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.3621, allocations: 4.281 kB / 0.547 GB, free: 18.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3621, allocations: 2.672 kB / 0.547 GB, free: 18.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.3623, allocations: 44.17 kB / 0.547 GB, free: 18.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3624, allocations: 4.5 kB / 0.5471 GB, free: 18.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.3625, allocations: 29.25 kB / 0.5471 GB, free: 18.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/0.3626, allocations: 16.73 kB / 0.5471 GB, free: 18.12 MB / 414.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.0002302/0.3628, allocations: 233.4 kB / 0.5473 GB, free: 18.01 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.186e-05/0.3629, allocations: 46.75 kB / 0.5474 GB, free: 17.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.364, allocations: 1.115 MB / 0.5485 GB, free: 17.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-05/0.3641, allocations: 18.58 kB / 0.5485 GB, free: 17.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3641, allocations: 0 / 0.5485 GB, free: 17.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.3641, allocations: 2.641 kB / 0.5485 GB, free: 17.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007769/0.3649, allocations: 0.7273 MB / 0.5492 GB, free: 17.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.3649, allocations: 4.656 kB / 0.5492 GB, free: 17.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.365, allocations: 33.8 kB / 0.5492 GB, free: 17.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.365, allocations: 2.234 kB / 0.5492 GB, free: 17.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.3651, allocations: 5.781 kB / 0.5492 GB, free: 17.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3651, allocations: 5.875 kB / 0.5492 GB, free: 17.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3651, allocations: 0 / 0.5492 GB, free: 17.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008728/0.366, allocations: 0.7105 MB / 0.5499 GB, free: 16.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.774e-05/0.3661, allocations: 148.3 kB / 0.5501 GB, free: 16.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.604e-05/0.3661, allocations: 11.77 kB / 0.5501 GB, free: 16.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.3663, allocations: 3.703 kB / 0.5501 GB, free: 16.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.3663, allocations: 17.33 kB / 0.5501 GB, free: 16.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.3663, allocations: 8.469 kB / 0.5501 GB, free: 16.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003507/0.3667, allocations: 299 kB / 0.5504 GB, free: 16.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3667, allocations: 0.6875 kB / 0.5504 GB, free: 16.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001227/0.3679, allocations: 0.502 MB / 0.5509 GB, free: 16.45 MB / 414.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.00237/0.3703, allocations: 1.658 MB / 0.5525 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005171/0.3708, allocations: 393.5 kB / 0.5529 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3709, allocations: 0 / 0.5529 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.3711, allocations: 314.4 kB / 0.5532 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.3722, allocations: 205 kB / 0.5534 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005059/0.3772, allocations: 4.517 MB / 0.5578 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.3776, allocations: 0.9541 MB / 0.5587 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004052/0.378, allocations: 185.5 kB / 0.5589 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.3782, allocations: 200 kB / 0.5591 GB, free: 11.99 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3782, allocations: 0 / 0.5591 GB, free: 11.99 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0475/0.4257, allocations: 24.42 MB / 0.5829 GB, free: 8.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.164/9.589, allocations: 4.375 kB / 0.5829 GB, free: 8.406 MB / 430.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)