Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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.001211/0.001211, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 193.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8192/0.8192, allocations: 132.2 MB / 422.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 72.11 kB / 0.5019 GB, free: 3.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.39, allocations: 80.2 MB / 0.5802 GB, free: 4.461 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02915/0.4192, allocations: 28.56 MB / 0.6081 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01157/0.4308, allocations: 7.895 MB / 0.6158 GB, free: 9.109 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001375/0.4322, allocations: 39.72 kB / 0.6158 GB, free: 9.094 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.4335, allocations: 408.2 kB / 0.6162 GB, free: 8.746 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00282/0.4364, allocations: 1.006 MB / 0.6172 GB, free: 7.93 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002753/0.4391, allocations: 1.061 MB / 0.6182 GB, free: 7.137 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00571/0.4449, allocations: 4.912 MB / 0.623 GB, free: 4.258 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003/0.4479, allocations: 2.29 MB / 0.6253 GB, free: 2.926 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003605/0.4515, allocations: 1.785 MB / 0.627 GB, free: 1.418 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002284/0.4538, allocations: 1.455 MB / 0.6284 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00055/0.4544, allocations: 236 kB / 0.6287 GB, free: 15.73 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002842/0.4572, allocations: 1.314 MB / 0.6299 GB, free: 14.41 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007219/0.4579, allocations: 0.5492 MB / 0.6305 GB, free: 13.86 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001867/0.4598, allocations: 1.159 MB / 0.6316 GB, free: 12.7 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0044/0.4642, allocations: 3.65 MB / 0.6352 GB, free: 9.035 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4642, allocations: 0 / 0.6352 GB, free: 9.035 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4642, allocations: 0 / 0.6352 GB, free: 9.035 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.482e-05/0.4643, allocations: 0 / 0.6352 GB, free: 9.035 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.005292/0.4696, allocations: 2.565 MB / 0.6377 GB, free: 6.414 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.4697, allocations: 12.03 kB / 0.6377 GB, free: 6.402 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002984/0.47, allocations: 214.9 kB / 0.6379 GB, free: 6.184 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008429/0.4708, allocations: 230.5 kB / 0.6381 GB, free: 5.957 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002725/0.4736, allocations: 1.729 MB / 0.6398 GB, free: 4.172 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.719e-05/0.4737, allocations: 110.7 kB / 0.6399 GB, free: 4.062 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/0.4739, allocations: 151.9 kB / 0.64 GB, free: 3.914 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/0.4769, allocations: 1.994 MB / 0.642 GB, free: 1.855 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.812e-05/0.4769, allocations: 4 kB / 0.642 GB, free: 1.852 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.4771, allocations: 59.98 kB / 0.6421 GB, free: 1.793 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.662e-05/0.4771, allocations: 43.94 kB / 0.6421 GB, free: 1.75 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002657/0.4798, allocations: 1.794 MB / 0.6439 GB, free: 15.95 MB / 494.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.01096/0.4907, allocations: 7.645 MB / 0.6513 GB, free: 7.996 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.4925, allocations: 1.449 MB / 0.6527 GB, free: 6.523 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000858/0.4934, allocations: 0.6618 MB / 0.6534 GB, free: 5.859 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006183/0.4996, allocations: 3.861 MB / 0.6571 GB, free: 1.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.4997, allocations: 47.5 kB / 0.6572 GB, free: 1.625 MB / 494.1 MB Notification: Performance of pre-optimization done (n=88): time 2.424e-06/0.4997, allocations: 0 / 0.6572 GB, free: 1.625 MB / 494.1 MB Notification: Performance of matching and sorting (n=88): time 0.002446/0.5021, allocations: 1.51 MB / 0.6587 GB, free: 116 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.5022, allocations: 60.41 kB / 0.6587 GB, free: 40 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/0.5045, allocations: 1.649 MB / 0.6603 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.5047, allocations: 49.7 kB / 0.6604 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000601/0.5053, allocations: 0.7536 MB / 0.6611 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002658/0.5055, allocations: 315.5 kB / 0.6614 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/0.5059, allocations: 295.3 kB / 0.6617 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5061, allocations: 365.9 kB / 0.6621 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000981/0.5071, allocations: 0.6956 MB / 0.6627 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.5083, allocations: 1.024 MB / 0.6637 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.5103, allocations: 1.616 MB / 0.6653 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.5103, allocations: 8 kB / 0.6653 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003001/0.5133, allocations: 1.951 MB / 0.6672 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.5134, allocations: 8 kB / 0.6672 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.5134, allocations: 8.875 kB / 0.6672 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.862e-05/0.5134, allocations: 19.94 kB / 0.6673 GB, free: 7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.5147, allocations: 339.5 kB / 0.6676 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.729e-05/0.5147, allocations: 19.94 kB / 0.6676 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.5159, allocations: 198.1 kB / 0.6678 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.516, allocations: 59.98 kB / 0.6678 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001727/0.5177, allocations: 1.294 MB / 0.6691 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001231/0.519, allocations: 1.016 MB / 0.6701 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002007/0.521, allocations: 1.612 MB / 0.6717 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.584e-06/0.521, allocations: 7.938 kB / 0.6717 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003004/0.524, allocations: 1.955 MB / 0.6736 GB, free: 252 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.524, allocations: 8 kB / 0.6736 GB, free: 244 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.5241, allocations: 8 kB / 0.6736 GB, free: 236 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.5241, allocations: 16 kB / 0.6736 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.5253, allocations: 335.5 kB / 0.6739 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.828e-05/0.5253, allocations: 19.94 kB / 0.674 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.5265, allocations: 143.3 kB / 0.6741 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.5266, allocations: 67.98 kB / 0.6742 GB, free: 15.66 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * Array equations: 0 * 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.0003027/0.5269, allocations: 255.8 kB / 0.6744 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003576/0.5273, allocations: 154.1 kB / 0.6746 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.5292, allocations: 1.286 MB / 0.6758 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.5293, allocations: 8 kB / 0.6758 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5293, allocations: 0 / 0.6758 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001435/0.5307, allocations: 1.288 MB / 0.6771 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00428/0.535, allocations: 2.963 MB / 0.68 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.535, allocations: 128 / 0.68 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007912/0.5358, allocations: 191.8 kB / 0.6802 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.334e-05/0.5358, allocations: 8 kB / 0.6802 GB, free: 9.34 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.35e-05/0.5359, allocations: 23.94 kB / 0.6802 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.655e-06/0.5359, allocations: 7.984 kB / 0.6802 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5359, allocations: 0 / 0.6802 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002515/0.5385, allocations: 1.913 MB / 0.6821 GB, free: 7.359 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000647/0.5391, allocations: 398.9 kB / 0.6824 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002652/0.5394, allocations: 35.86 kB / 0.6825 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008241/0.5402, allocations: 47.86 kB / 0.6825 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.5403, allocations: 52.92 kB / 0.6826 GB, free: 6.816 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.51e-05/0.5404, allocations: 35.98 kB / 0.6826 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001652/0.5421, allocations: 1.242 MB / 0.6838 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5421, allocations: 0 / 0.6838 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00225/0.5443, allocations: 0.9046 MB / 0.6847 GB, free: 4.637 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.003375/0.5477, allocations: 2.719 MB / 0.6874 GB, free: 1.891 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004419/0.5521, allocations: 2.841 MB / 0.6901 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5522, allocations: 0 / 0.6901 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0006835/0.5528, allocations: 0.517 MB / 0.6906 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003759/0.5566, allocations: 0.9225 MB / 0.6915 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02157/0.5782, allocations: 16.17 MB / 0.7073 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001319/0.5795, allocations: 1.682 MB / 0.709 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002524/0.5821, allocations: 0.9243 MB / 0.7099 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009355/0.583, allocations: 0.6164 MB / 0.7105 GB, free: 9.637 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/0.583, allocations: 0 / 0.7105 GB, free: 9.637 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08622/0.6693, allocations: 49.05 MB / 0.7584 GB, free: 9.141 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.886, allocations: 16.09 kB / 0.7584 GB, free: 9.129 MB / 0.5919 GB (rm -f IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 IDEAS_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)