Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example.conf.json 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/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.Taps.Examples.DHW_example,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example") translateModel(IDEAS.Fluid.Taps.Examples.DHW_example,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003901/0.003901, allocations: 174.4 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7117/0.7117, allocations: 130.6 MB / 138.5 MB, free: 2.211 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.829/1.829, allocations: 221.3 MB / 391.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001323, allocations: 98.16 kB / 473.4 MB, free: 14.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 8.866e-06/8.907e-06, allocations: 1.562 kB / 0.5479 GB, free: 89.03 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.221, allocations: 81.58 MB / 0.6276 GB, free: 18.18 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.444/1.665, allocations: 344.7 MB / 0.9642 GB, free: 250 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003976/1.665, allocations: 89.3 kB / 0.9643 GB, free: 250 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.451/3.117, allocations: 438 MB / 1.392 GB, free: 85.07 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0002978/3.117, allocations: 42.83 kB / 1.392 GB, free: 85.04 MB / 0.6667 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.00474/3.122, allocations: 1.34 MB / 1.393 GB, free: 83.65 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/3.122, allocations: 8.031 kB / 1.393 GB, free: 83.64 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001804/3.124, allocations: 377.8 kB / 1.394 GB, free: 83.28 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/3.126, allocations: 1.082 MB / 1.395 GB, free: 82.18 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/3.126, allocations: 24 kB / 1.395 GB, free: 82.15 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/3.126, allocations: 51.91 kB / 1.395 GB, free: 82.1 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001086/3.127, allocations: 0.5585 MB / 1.395 GB, free: 81.54 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/3.128, allocations: 0.7877 MB / 1.396 GB, free: 80.7 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/3.128, allocations: 4 kB / 1.396 GB, free: 80.69 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.984e-05/3.128, allocations: 0 / 1.396 GB, free: 80.69 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/3.129, allocations: 20 kB / 1.396 GB, free: 80.67 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005006/3.134, allocations: 3.869 MB / 1.4 GB, free: 76.7 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/3.134, allocations: 282.5 kB / 1.4 GB, free: 76.42 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/3.134, allocations: 205.5 kB / 1.4 GB, free: 76.21 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008541/3.135, allocations: 0.9471 MB / 1.401 GB, free: 75.07 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004153/3.136, allocations: 302.2 kB / 1.402 GB, free: 74.76 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=47): time 3.126e-06/3.136, allocations: 0 / 1.402 GB, free: 74.76 MB / 0.6667 GB Notification: Performance of matching and sorting (n=47): time 0.001972/3.138, allocations: 0.6368 MB / 1.402 GB, free: 74.11 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/3.138, allocations: 110.8 kB / 1.402 GB, free: 73.98 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006824/3.138, allocations: 0.594 MB / 1.403 GB, free: 73.38 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/3.138, allocations: 25.7 kB / 1.403 GB, free: 73.35 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/3.139, allocations: 375 kB / 1.403 GB, free: 72.97 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/3.139, allocations: 153.7 kB / 1.403 GB, free: 72.82 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/3.139, allocations: 4 kB / 1.403 GB, free: 72.82 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 8.976e-05/3.139, allocations: 330 kB / 1.404 GB, free: 72.49 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/3.139, allocations: 177.3 kB / 1.404 GB, free: 72.32 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003486/3.139, allocations: 363 kB / 1.404 GB, free: 71.88 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/3.141, allocations: 380.4 kB / 1.405 GB, free: 71.51 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/3.141, allocations: 0 / 1.405 GB, free: 71.51 MB / 0.6667 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001842/3.143, allocations: 0.7593 MB / 1.405 GB, free: 70.74 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/3.143, allocations: 15.89 kB / 1.405 GB, free: 70.73 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/3.143, allocations: 4 kB / 1.405 GB, free: 70.72 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/3.143, allocations: 8.625 kB / 1.405 GB, free: 70.71 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009733/3.144, allocations: 211.7 kB / 1.406 GB, free: 70.51 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/3.144, allocations: 11.98 kB / 1.406 GB, free: 70.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000985/3.145, allocations: 144.1 kB / 1.406 GB, free: 70.36 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.979e-05/3.145, allocations: 39.92 kB / 1.406 GB, free: 70.32 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.mDHW60C.T_start,mDHW60C.T_start,$PRE.mDHW60C.count,mDHW60C.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001417/3.145, allocations: 116.9 kB / 1.406 GB, free: 70.2 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/3.145, allocations: 86.95 kB / 1.406 GB, free: 70.11 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/3.147, allocations: 1.038 MB / 1.407 GB, free: 69.07 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/3.147, allocations: 8 kB / 1.407 GB, free: 69.06 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/3.147, allocations: 0 / 1.407 GB, free: 69.06 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/3.147, allocations: 11.89 kB / 1.407 GB, free: 69.05 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/3.15, allocations: 1.885 MB / 1.409 GB, free: 67.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/3.15, allocations: 3.906 kB / 1.409 GB, free: 67.09 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008442/3.151, allocations: 176 kB / 1.409 GB, free: 66.92 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.678e-06/3.151, allocations: 4 kB / 1.409 GB, free: 66.92 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.667e-05/3.151, allocations: 15.98 kB / 1.409 GB, free: 66.9 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/3.151, allocations: 7.938 kB / 1.409 GB, free: 66.89 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/3.151, allocations: 4 kB / 1.409 GB, free: 66.89 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001817/3.153, allocations: 1.266 MB / 1.41 GB, free: 65.57 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004119/3.153, allocations: 259.7 kB / 1.411 GB, free: 65.29 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/3.153, allocations: 7.984 kB / 1.411 GB, free: 65.29 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008971/3.154, allocations: 114.8 kB / 1.411 GB, free: 65.18 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/3.154, allocations: 52.3 kB / 1.411 GB, free: 65.12 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.049e-05/3.155, allocations: 23.98 kB / 1.411 GB, free: 65.1 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0005663/3.155, allocations: 479.1 kB / 1.411 GB, free: 64.64 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00136/3.157, allocations: 399.1 kB / 1.412 GB, free: 64.25 MB / 0.6667 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001594/3.158, allocations: 0.8122 MB / 1.412 GB, free: 63.53 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0008771/3.159, allocations: 0.5343 MB / 1.413 GB, free: 62.98 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/3.159, allocations: 4.062 kB / 1.413 GB, free: 62.98 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004279/3.159, allocations: 309.5 kB / 1.413 GB, free: 62.68 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/3.161, allocations: 306.2 kB / 1.414 GB, free: 62.38 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/3.164, allocations: 1.279 MB / 1.415 GB, free: 61.07 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000819/3.165, allocations: 1.176 MB / 1.416 GB, free: 59.86 MB / 0.6667 GB Notification: Performance of SimCode: time 8.11e-07/3.165, allocations: 0 / 1.416 GB, free: 59.86 MB / 0.6667 GB Notification: Performance of Templates: time 0.03088/3.195, allocations: 17.82 MB / 1.433 GB, free: 42.22 MB / 0.6667 GB make -j1 -f IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example.makefile (rm -f IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example.pipe ; mkfifo IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example.pipe >> ../files/IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example.sim & ./IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Taps.Examples.DHW_example.pipe 2>&1)