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.004276/0.004276, allocations: 101.3 kB / 15.73 MB, free: 6.07 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.001074/0.001074, allocations: 192.6 kB / 16.67 MB, free: 5.973 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7592/0.7592, allocations: 135.1 MB / 425.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 65.41 kB / 0.5851 GB, free: 22.06 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1298, allocations: 80.92 MB / 0.6641 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Taps.Examples.DHW_example): time 0.03781/0.1676, allocations: 41.96 MB / 0.7051 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01407/0.1817, allocations: 10.91 MB / 0.7158 GB, free: 1.363 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.1832, allocations: 55.69 kB / 0.7158 GB, free: 1.309 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.1846, allocations: 0.5547 MB / 0.7164 GB, free: 0.75 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003199/0.1878, allocations: 1.449 MB / 0.7178 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002819/0.1906, allocations: 1.305 MB / 0.7191 GB, free: 14 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002955/0.1936, allocations: 2.676 MB / 0.7217 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001269/0.1949, allocations: 1.092 MB / 0.7227 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.1971, allocations: 1.16 MB / 0.7239 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008621/0.198, allocations: 0.805 MB / 0.7247 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.1981, allocations: 108 kB / 0.7248 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.1996, allocations: 0.6904 MB / 0.7254 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002455/0.1998, allocations: 274.9 kB / 0.7257 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005384/0.2004, allocations: 0.6181 MB / 0.7263 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002143/0.2025, allocations: 1.849 MB / 0.7281 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2026, allocations: 0 / 0.7281 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2026, allocations: 0 / 0.7281 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.2026, allocations: 0 / 0.7281 GB, free: 4.695 MB / 0.5606 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.002223/0.2048, allocations: 1.544 MB / 0.7296 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.2048, allocations: 9.109 kB / 0.7296 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.205, allocations: 131 kB / 0.7297 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.2068, allocations: 331.8 kB / 0.7301 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001483/0.2083, allocations: 0.965 MB / 0.731 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.2083, allocations: 62 kB / 0.7311 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.2085, allocations: 80 kB / 0.7311 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/0.2104, allocations: 1.004 MB / 0.7321 GB, free: 424 kB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.2104, allocations: 3.938 kB / 0.7321 GB, free: 420 kB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.763e-05/0.2105, allocations: 36 kB / 0.7322 GB, free: 384 kB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.2105, allocations: 20 kB / 0.7322 GB, free: 364 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002205/0.2127, allocations: 0.8196 MB / 0.733 GB, free: 15.53 MB / 0.5762 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.004781/0.2175, allocations: 4.035 MB / 0.7369 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/0.2193, allocations: 0.6091 MB / 0.7375 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000853/0.2202, allocations: 321.1 kB / 0.7378 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009003/0.2211, allocations: 0.9379 MB / 0.7387 GB, free: 9.23 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.2222, allocations: 435.2 kB / 0.7392 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 2.024e-06/0.2222, allocations: 0 / 0.7392 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of matching and sorting (n=47): time 0.00289/0.2251, allocations: 0.9728 MB / 0.7401 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.2252, allocations: 114.8 kB / 0.7402 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.2262, allocations: 0.8747 MB / 0.7411 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.422e-05/0.2263, allocations: 37.7 kB / 0.7411 GB, free: 6.734 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003671/0.2267, allocations: 496.4 kB / 0.7416 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001436/0.2268, allocations: 170.5 kB / 0.7417 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/0.227, allocations: 142.2 kB / 0.7419 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.2272, allocations: 333.9 kB / 0.7422 GB, free: 5.602 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008845/0.228, allocations: 293.1 kB / 0.7425 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.2291, allocations: 484.2 kB / 0.7429 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.2309, allocations: 0.7858 MB / 0.7437 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.231, allocations: 0 / 0.7437 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002285/0.2333, allocations: 0.9338 MB / 0.7446 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.2333, allocations: 37.64 kB / 0.7446 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/0.2333, allocations: 4 kB / 0.7447 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.2333, allocations: 12.66 kB / 0.7447 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009768/0.2343, allocations: 195.7 kB / 0.7449 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.2344, allocations: 11.94 kB / 0.7449 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008208/0.2352, allocations: 123.3 kB / 0.745 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.774e-05/0.2353, allocations: 35.97 kB / 0.745 GB, free: 2.531 MB / 0.5762 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.0003691/0.2356, allocations: 265.6 kB / 0.7453 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/0.2358, allocations: 115.3 kB / 0.7454 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002603/0.2384, allocations: 1.074 MB / 0.7464 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.2384, allocations: 11.98 kB / 0.7464 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2384, allocations: 0 / 0.7464 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.2384, allocations: 288 / 0.7464 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2622/0.5006, allocations: 2.156 MB / 0.7485 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.5007, allocations: 2.094 kB / 0.7485 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009041/0.5016, allocations: 153 kB / 0.7487 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.5016, allocations: 5.844 kB / 0.7487 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.653e-05/0.5016, allocations: 20.14 kB / 0.7487 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.5017, allocations: 4.5 kB / 0.7487 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.5017, allocations: 1.812 kB / 0.7487 GB, free: 80.27 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003223/0.5049, allocations: 1.469 MB / 0.7502 GB, free: 80.01 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003997/0.5053, allocations: 277.9 kB / 0.7504 GB, free: 79.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.5054, allocations: 19.66 kB / 0.7504 GB, free: 79.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007924/0.5062, allocations: 67.92 kB / 0.7505 GB, free: 79.92 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.5064, allocations: 50.44 kB / 0.7506 GB, free: 79.92 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.785e-05/0.5064, allocations: 24.17 kB / 0.7506 GB, free: 79.92 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008151/0.5073, allocations: 0.6232 MB / 0.7512 GB, free: 79.68 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5073, allocations: 0 / 0.7512 GB, free: 79.68 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009769/0.5082, allocations: 360.4 kB / 0.7515 GB, free: 79.64 MB / 0.5762 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.00459/0.5128, allocations: 2.59 MB / 0.7541 GB, free: 78.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00218/0.515, allocations: 0.8103 MB / 0.7548 GB, free: 78.14 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.515, allocations: 0.7188 kB / 0.7548 GB, free: 78.14 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.5162, allocations: 410.4 kB / 0.7552 GB, free: 78.03 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.5183, allocations: 476.2 kB / 0.7557 GB, free: 77.91 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01793/0.5362, allocations: 8.346 MB / 0.7638 GB, free: 73.86 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.5368, allocations: 1.039 MB / 0.7649 GB, free: 73.14 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008834/0.5376, allocations: 216.5 kB / 0.7651 GB, free: 73.09 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005028/0.5382, allocations: 405.4 kB / 0.7655 GB, free: 72.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.11e-07/0.5382, allocations: 0 / 0.7655 GB, free: 72.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04532/0.5835, allocations: 30.05 MB / 0.7948 GB, free: 52.49 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.178/9.762, allocations: 7.688 kB / 0.7948 GB, free: 52.49 MB / 0.5762 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)