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.007928/0.007928, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001482/0.001482, allocations: 199.8 kB / 16.68 MB, free: 5.934 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8497/0.8497, allocations: 135.6 MB / 426.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002673/0.002673, allocations: 67.23 kB / 0.5857 GB, free: 21.42 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1405, allocations: 81.01 MB / 0.6648 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Taps.Examples.DHW_example): time 0.04817/0.1887, allocations: 41.98 MB / 0.7058 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01605/0.2048, allocations: 10.92 MB / 0.7165 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.2063, allocations: 55.69 kB / 0.7166 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.208, allocations: 0.5587 MB / 0.7171 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003639/0.2117, allocations: 1.409 MB / 0.7185 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003049/0.2147, allocations: 1.299 MB / 0.7197 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003401/0.2181, allocations: 2.671 MB / 0.7224 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.2196, allocations: 1.096 MB / 0.7234 GB, free: 9.449 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002416/0.222, allocations: 1.136 MB / 0.7245 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.2231, allocations: 0.805 MB / 0.7253 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.2232, allocations: 108 kB / 0.7254 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001538/0.2248, allocations: 0.6943 MB / 0.7261 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.2251, allocations: 267 kB / 0.7264 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006308/0.2257, allocations: 0.6103 MB / 0.7269 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002397/0.2281, allocations: 1.857 MB / 0.7288 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.2281, allocations: 0 / 0.7288 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2282, allocations: 8 kB / 0.7288 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.397e-05/0.2282, allocations: 0 / 0.7288 GB, free: 3.957 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.002401/0.2306, allocations: 1.548 MB / 0.7303 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2306, allocations: 17.05 kB / 0.7303 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.2308, allocations: 123 kB / 0.7304 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/0.2326, allocations: 331.8 kB / 0.7307 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.2341, allocations: 0.9534 MB / 0.7317 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.451e-05/0.2342, allocations: 62 kB / 0.7317 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.2344, allocations: 83.94 kB / 0.7318 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.2365, allocations: 1.005 MB / 0.7328 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.2365, allocations: 7.938 kB / 0.7328 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.468e-05/0.2366, allocations: 36 kB / 0.7328 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.2366, allocations: 20 kB / 0.7328 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002337/0.239, allocations: 0.8234 MB / 0.7336 GB, free: 14.79 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.005256/0.2442, allocations: 4.018 MB / 0.7376 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/0.2461, allocations: 0.613 MB / 0.7382 GB, free: 9.961 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008998/0.247, allocations: 313.1 kB / 0.7385 GB, free: 9.652 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001037/0.2481, allocations: 0.9418 MB / 0.7394 GB, free: 8.508 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.2492, allocations: 431.2 kB / 0.7398 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 2.114e-06/0.2492, allocations: 0 / 0.7398 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of matching and sorting (n=47): time 0.003021/0.2522, allocations: 0.9767 MB / 0.7408 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/0.2523, allocations: 114.8 kB / 0.7409 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.2535, allocations: 0.8825 MB / 0.7417 GB, free: 6.043 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.2536, allocations: 37.7 kB / 0.7418 GB, free: 6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004233/0.254, allocations: 496.3 kB / 0.7422 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.2542, allocations: 170.6 kB / 0.7424 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.2544, allocations: 134.2 kB / 0.7425 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.2546, allocations: 330 kB / 0.7428 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009427/0.2555, allocations: 297.1 kB / 0.7431 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.2567, allocations: 488.2 kB / 0.7436 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001983/0.2586, allocations: 0.7818 MB / 0.7444 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.2587, allocations: 4 kB / 0.7444 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00244/0.2611, allocations: 0.9302 MB / 0.7453 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.2612, allocations: 44.44 kB / 0.7453 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.2612, allocations: 8 kB / 0.7453 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.2612, allocations: 8 kB / 0.7453 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009902/0.2622, allocations: 200 kB / 0.7455 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.2622, allocations: 11.94 kB / 0.7455 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008002/0.263, allocations: 119.3 kB / 0.7456 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.923e-05/0.2631, allocations: 39.97 kB / 0.7457 GB, free: 1.797 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.0003885/0.2635, allocations: 269.6 kB / 0.7459 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.2637, allocations: 111.3 kB / 0.746 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.2665, allocations: 1.07 MB / 0.7471 GB, free: 344 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.2666, allocations: 15.98 kB / 0.7471 GB, free: 328 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2666, allocations: 0 / 0.7471 GB, free: 328 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.2666, allocations: 0 / 0.7471 GB, free: 328 kB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2546/0.5212, allocations: 2.147 MB / 0.7492 GB, free: 79.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.5213, allocations: 3.875 kB / 0.7492 GB, free: 79.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008571/0.5221, allocations: 154.1 kB / 0.7493 GB, free: 79.39 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.5221, allocations: 4.469 kB / 0.7494 GB, free: 79.39 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-05/0.5222, allocations: 18.09 kB / 0.7494 GB, free: 79.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.5222, allocations: 5.125 kB / 0.7494 GB, free: 79.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5222, allocations: 5.594 kB / 0.7494 GB, free: 79.39 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/0.5253, allocations: 1.47 MB / 0.7508 GB, free: 79.12 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003319/0.5257, allocations: 280.8 kB / 0.7511 GB, free: 78.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/0.5258, allocations: 14.72 kB / 0.7511 GB, free: 78.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007573/0.5266, allocations: 73.14 kB / 0.7512 GB, free: 78.96 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.5267, allocations: 46.5 kB / 0.7512 GB, free: 78.95 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.5267, allocations: 28.98 kB / 0.7512 GB, free: 78.95 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007728/0.5275, allocations: 0.6204 MB / 0.7518 GB, free: 78.67 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/0.5275, allocations: 0 / 0.7518 GB, free: 78.67 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009374/0.5285, allocations: 364.7 kB / 0.7522 GB, free: 78.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.005043/0.5335, allocations: 2.586 MB / 0.7547 GB, free: 77.39 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002147/0.5357, allocations: 0.8091 MB / 0.7555 GB, free: 77.12 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5357, allocations: 0.5 kB / 0.7555 GB, free: 77.12 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.5368, allocations: 409.9 kB / 0.7559 GB, free: 77.01 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/0.5389, allocations: 487.6 kB / 0.7564 GB, free: 76.88 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.5562, allocations: 8.331 MB / 0.7645 GB, free: 72.87 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/0.5568, allocations: 1.046 MB / 0.7655 GB, free: 72.14 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000857/0.5576, allocations: 213.6 kB / 0.7657 GB, free: 72.09 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005097/0.5582, allocations: 414.2 kB / 0.7661 GB, free: 71.79 MB / 0.5762 GB Notification: Performance of SimCode: time 1.312e-06/0.5582, allocations: 1.125 kB / 0.7661 GB, free: 71.79 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05115/0.6093, allocations: 30.04 MB / 0.7955 GB, free: 51.21 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.587/10.2, allocations: 6.375 kB / 0.7955 GB, free: 51.21 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)