Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Taps.Examples.DHW_example.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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.Taps.Examples.DHW_example,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Taps_Examples_DHW_example",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Taps.Examples.DHW_example,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Taps_Examples_DHW_example",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.001401/0.001401, 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.001515/0.001515, allocations: 194.1 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9455/0.9455, allocations: 135.1 MB / 425.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 60.5 kB / 0.5054 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1367, allocations: 80.93 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Taps.Examples.DHW_example): time 0.2649/0.4016, allocations: 41.94 MB / 0.6254 GB, free: 30.54 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01143/0.4131, allocations: 10.92 MB / 0.6361 GB, free: 22.79 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001314/0.4144, allocations: 54.78 kB / 0.6361 GB, free: 22.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.4156, allocations: 0.5561 MB / 0.6367 GB, free: 22.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002871/0.4185, allocations: 1.405 MB / 0.6381 GB, free: 21.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002414/0.421, allocations: 1.298 MB / 0.6393 GB, free: 20.85 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002245/0.4232, allocations: 2.66 MB / 0.6419 GB, free: 19.57 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00111/0.4243, allocations: 1.099 MB / 0.643 GB, free: 19.05 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001886/0.4262, allocations: 1.124 MB / 0.6441 GB, free: 18.51 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007138/0.427, allocations: 0.8206 MB / 0.6449 GB, free: 18.12 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.4271, allocations: 110.3 kB / 0.645 GB, free: 18.12 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.4285, allocations: 0.6898 MB / 0.6457 GB, free: 17.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000178/0.4287, allocations: 269 kB / 0.6459 GB, free: 17.73 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003967/0.4291, allocations: 0.6118 MB / 0.6465 GB, free: 17.35 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001493/0.4306, allocations: 1.816 MB / 0.6483 GB, free: 16.64 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.4306, allocations: 0 / 0.6483 GB, free: 16.64 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4306, allocations: 0 / 0.6483 GB, free: 16.64 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.299e-05/0.4306, allocations: 3.141 kB / 0.6483 GB, free: 16.64 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.001877/0.4325, allocations: 1.513 MB / 0.6498 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.4326, allocations: 9.094 kB / 0.6498 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.4327, allocations: 126.7 kB / 0.6499 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.4343, allocations: 329 kB / 0.6502 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.4355, allocations: 0.9189 MB / 0.6511 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.4355, allocations: 56.28 kB / 0.6512 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.4356, allocations: 79.09 kB / 0.6512 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.4373, allocations: 1.01 MB / 0.6522 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.4374, allocations: 0 / 0.6522 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.218e-05/0.4374, allocations: 31.97 kB / 0.6523 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.4374, allocations: 23.34 kB / 0.6523 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002068/0.4395, allocations: 0.8226 MB / 0.6531 GB, free: 14 MB / 0.4981 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.004183/0.4437, allocations: 4.03 MB / 0.657 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.4455, allocations: 0.6075 MB / 0.6576 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008673/0.4464, allocations: 315.2 kB / 0.6579 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007327/0.4471, allocations: 0.9351 MB / 0.6588 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.4482, allocations: 432.1 kB / 0.6592 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 2.094e-06/0.4482, allocations: 0 / 0.6592 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of matching and sorting (n=47): time 0.002985/0.4512, allocations: 0.9749 MB / 0.6602 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.4513, allocations: 108.6 kB / 0.6603 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.4525, allocations: 0.8792 MB / 0.6612 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.691e-05/0.4526, allocations: 37.77 kB / 0.6612 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00033/0.4529, allocations: 489.7 kB / 0.6617 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.453, allocations: 161.6 kB / 0.6618 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00023/0.4533, allocations: 142.6 kB / 0.662 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.678e-05/0.4533, allocations: 328 kB / 0.6623 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009247/0.4543, allocations: 299.4 kB / 0.6626 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009958/0.4553, allocations: 487.9 kB / 0.663 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001814/0.4571, allocations: 0.7902 MB / 0.6638 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4571, allocations: 1.156 kB / 0.6638 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002311/0.4594, allocations: 0.9199 MB / 0.6647 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.4595, allocations: 35.09 kB / 0.6647 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.4595, allocations: 10.34 kB / 0.6647 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.4595, allocations: 8.375 kB / 0.6647 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009925/0.4605, allocations: 197.5 kB / 0.6649 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.4605, allocations: 18.52 kB / 0.6649 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008512/0.4614, allocations: 121.2 kB / 0.6651 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/0.4615, allocations: 34.61 kB / 0.6651 GB, free: 6.512 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (mDHW60C.count,$PRE.mDHW60C.count,mDHW60C.T_start,$PRE.mDHW60C.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 1 * 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.0003405/0.4618, allocations: 271.2 kB / 0.6654 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.462, allocations: 101.1 kB / 0.6654 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002673/0.4647, allocations: 1.08 MB / 0.6665 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.4647, allocations: 16.48 kB / 0.6665 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4647, allocations: 1.344 kB / 0.6665 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.4647, allocations: 2.719 kB / 0.6665 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003588/0.4683, allocations: 2.151 MB / 0.6686 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.4683, allocations: 1.5 kB / 0.6686 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008396/0.4692, allocations: 153.9 kB / 0.6688 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.4692, allocations: 4.625 kB / 0.6688 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.61e-05/0.4692, allocations: 18.44 kB / 0.6688 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.4693, allocations: 4.047 kB / 0.6688 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4693, allocations: 10 kB / 0.6688 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003117/0.4724, allocations: 1.463 MB / 0.6702 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003431/0.4727, allocations: 268.2 kB / 0.6705 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.4729, allocations: 21.98 kB / 0.6705 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007906/0.4737, allocations: 64.56 kB / 0.6706 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.4738, allocations: 59.09 kB / 0.6706 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.854e-05/0.4739, allocations: 25.53 kB / 0.6707 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007985/0.4747, allocations: 0.6234 MB / 0.6713 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.4747, allocations: 0 / 0.6713 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001048/0.4757, allocations: 355.5 kB / 0.6716 GB, free: 3.426 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (dHW_RealInput.THot.T,dHW_ProfileReader.THot.T) * Number of discrete variables: 3 ($whenCondition1,mDHW60C.T_start,mDHW60C.count) * Number of discrete states: 1 (mDHW60C.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 2 * 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.00456/0.4803, allocations: 2.577 MB / 0.6741 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002364/0.4827, allocations: 0.8637 MB / 0.675 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.4827, allocations: 0 / 0.675 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.4838, allocations: 409.4 kB / 0.6754 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.4859, allocations: 469.3 kB / 0.6758 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/0.5039, allocations: 8.713 MB / 0.6843 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006283/0.5046, allocations: 1.047 MB / 0.6853 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0009725/0.5055, allocations: 216.6 kB / 0.6855 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005936/0.5061, allocations: 411 kB / 0.6859 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of SimCode: time 6.41e-07/0.5062, allocations: 0 / 0.6859 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2729/0.779, allocations: 29.74 MB / 0.715 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/8.592, allocations: 7.859 kB / 0.715 GB, free: 6.504 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Fluid.Taps.Examples.DHW_example.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Taps.Examples.DHW_example.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Taps.Examples.DHW_example.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Taps.Examples.DHW_example.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Taps.Examples.DHW_example_res.csv --start-time 0 --stop-time 172800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 69.12 IDEAS_dev_IDEAS_Fluid_Taps_Examples_DHW_example.fmu > IDEAS_dev_IDEAS.Fluid.Taps.Examples.DHW_example.pipe 2>&1)