Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251.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: translateModel(IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251") translateModel(IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007518/0.007518, allocations: 96.11 kB / 15.73 MB, free: 6.039 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.00173/0.001731, allocations: 200.9 kB / 16.68 MB, free: 5.969 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9866/0.9866, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.88 kB / 0.5856 GB, free: 3.375 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5259/0.5271, allocations: 80.91 MB / 0.6646 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251): time 0.008949/0.5361, allocations: 7.017 MB / 0.6715 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.221/0.7571, allocations: 155.8 MB / 0.8236 GB, free: 14.22 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/0.7591, allocations: 31.88 kB / 0.8236 GB, free: 14.19 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.7605, allocations: 289.2 kB / 0.8239 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.003134/0.7636, allocations: 0.7168 MB / 0.8246 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003838/0.7675, allocations: 1.308 MB / 0.8259 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.006705/0.7742, allocations: 4.594 MB / 0.8304 GB, free: 7.27 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004859/0.7791, allocations: 2.868 MB / 0.8332 GB, free: 4.328 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003855/0.783, allocations: 1.75 MB / 0.8349 GB, free: 2.59 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003162/0.7862, allocations: 1.813 MB / 0.8367 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001423/0.7876, allocations: 472 kB / 0.8371 GB, free: 316 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002967/0.7906, allocations: 1.073 MB / 0.8382 GB, free: 15.23 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001509/0.7921, allocations: 1.001 MB / 0.8391 GB, free: 14.23 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.004251/0.7964, allocations: 1.905 MB / 0.841 GB, free: 12.32 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.008936/0.8053, allocations: 5.619 MB / 0.8465 GB, free: 6.68 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.8054, allocations: 0 / 0.8465 GB, free: 6.68 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8054, allocations: 0 / 0.8465 GB, free: 6.68 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001717/0.8056, allocations: 0 / 0.8465 GB, free: 6.68 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 777 * Number of variables: 777 Notification: Performance of Generate backend data structure: time 0.01104/0.8166, allocations: 4.068 MB / 0.8505 GB, free: 2.531 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.8167, allocations: 8.031 kB / 0.8505 GB, free: 2.523 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009845/0.8265, allocations: 1.305 MB / 0.8517 GB, free: 1.215 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004835/0.8314, allocations: 2.157 MB / 0.8538 GB, free: 15 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.8317, allocations: 230 kB / 0.8541 GB, free: 14.77 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/0.8327, allocations: 300 kB / 0.8544 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/0.8458, allocations: 4.504 MB / 0.8588 GB, free: 9.867 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.252e-05/0.8459, allocations: 11.92 kB / 0.8588 GB, free: 9.855 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008245/0.8467, allocations: 128 kB / 0.8589 GB, free: 9.73 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-05/0.8468, allocations: 72 kB / 0.859 GB, free: 9.66 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01285/0.8597, allocations: 4.917 MB / 0.8638 GB, free: 4.73 MB / 0.6856 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.4352/1.295, allocations: 14.13 MB / 0.8775 GB, free: 181 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/1.307, allocations: 4.093 MB / 0.8815 GB, free: 179.5 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004302/1.311, allocations: 1.711 MB / 0.8832 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001045/1.312, allocations: 1.075 MB / 0.8843 GB, free: 177.4 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005355/1.318, allocations: 2.135 MB / 0.8864 GB, free: 176.1 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=225): time 1.245e-05/1.318, allocations: 0 / 0.8864 GB, free: 176.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=225): time 0.01564/1.333, allocations: 5.433 MB / 0.8917 GB, free: 173.3 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/1.334, allocations: 272.1 kB / 0.8919 GB, free: 173 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004094/1.338, allocations: 1.958 MB / 0.8938 GB, free: 171.9 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0008239/1.339, allocations: 70.8 kB / 0.8939 GB, free: 171.9 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001178/1.34, allocations: 1.209 MB / 0.8951 GB, free: 171 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.341, allocations: 0.7826 MB / 0.8958 GB, free: 170.4 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002146/1.343, allocations: 0.5467 MB / 0.8964 GB, free: 170.1 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 4.823e-05/1.343, allocations: 310.2 kB / 0.8967 GB, free: 169.8 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004326/1.348, allocations: 1.615 MB / 0.8982 GB, free: 168.9 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005328/1.353, allocations: 1.943 MB / 0.9001 GB, free: 167.7 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00871/1.362, allocations: 3.581 MB / 0.9036 GB, free: 165.6 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.828e-05/1.362, allocations: 2.969 kB / 0.9036 GB, free: 165.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=296) (initialization): time 0.01179/1.373, allocations: 4.12 MB / 0.9077 GB, free: 163.4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 5.68e-05/1.374, allocations: 37.47 kB / 0.9077 GB, free: 163.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/1.374, allocations: 3.594 kB / 0.9077 GB, free: 163.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006035/1.374, allocations: 94.22 kB / 0.9078 GB, free: 163.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003465/1.378, allocations: 0.7238 MB / 0.9085 GB, free: 163.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/1.38, allocations: 1.714 MB / 0.9102 GB, free: 161.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003767/1.384, allocations: 449.4 kB / 0.9106 GB, free: 161.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006189/1.384, allocations: 133.2 kB / 0.9107 GB, free: 161.2 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition4,$whenCondition3,sim.weaDat.conTim.canRepeatWeatherFile,sim.weaDat.conTimMin.canRepeatWeatherFile,sim.radSol[1].solAzi.outsidePolarCircle,sim.radSol[2].solAzi.outsidePolarCircle,sim.radSol[3].solAzi.outsidePolarCircle,sim.radSol[4].solAzi.outsidePolarCircle,sim.radSol[5].solAzi.outsidePolarCircle,sim.radSol[6].solAzi.outsidePolarCircle,sim.weaDat.conTim.tNext,$PRE.sim.weaDat.conTim.tNext,sim.weaDat.conTimMin.tNext,$PRE.sim.weaDat.conTimMin.tNext,runningMeanTemperature.TAveDay[7],$PRE.runningMeanTemperature.TAveDay[7],runningMeanTemperature.TAveDay[6],$PRE.runningMeanTemperature.TAveDay[6],runningMeanTemperature.TAveDay[5],$PRE.runningMeanTemperature.TAveDay[5],runningMeanTemperature.TAveDay[4],$PRE.runningMeanTemperature.TAveDay[4],runningMeanTemperature.TAveDay[3],$PRE.runningMeanTemperature.TAveDay[3],runningMeanTemperature.TAveDay[2],$PRE.runningMeanTemperature.TAveDay[2],runningMeanTemperature.TAveDay[1],$PRE.runningMeanTemperature.TAveDay[1],runningMeanTemperature.TRm,$PRE.runningMeanTemperature.TRm,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (294): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.002927/1.387, allocations: 1.009 MB / 0.9117 GB, free: 160.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001346/1.388, allocations: 235.8 kB / 0.9119 GB, free: 160.4 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/1.4, allocations: 4.399 MB / 0.9162 GB, free: 157.6 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/1.4, allocations: 24 kB / 0.9163 GB, free: 157.6 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/1.4, allocations: 4 kB / 0.9163 GB, free: 157.6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.015e-05/1.401, allocations: 17.38 kB / 0.9163 GB, free: 157.5 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01561/1.416, allocations: 8.096 MB / 0.9242 GB, free: 149.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/1.416, allocations: 4 kB / 0.9242 GB, free: 149.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002741/1.419, allocations: 0.5811 MB / 0.9248 GB, free: 148.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004636/1.419, allocations: 80.72 kB / 0.9248 GB, free: 148.7 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002632/1.42, allocations: 71.94 kB / 0.9249 GB, free: 148.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/1.421, allocations: 1.715 MB / 0.9266 GB, free: 146.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.421, allocations: 3.984 kB / 0.9266 GB, free: 146.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01156/1.433, allocations: 5.791 MB / 0.9322 GB, free: 140.9 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/1.435, allocations: 0.7738 MB / 0.933 GB, free: 140.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000795/1.436, allocations: 86.88 kB / 0.9331 GB, free: 140 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.438, allocations: 277.8 kB / 0.9333 GB, free: 139.8 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003306/1.439, allocations: 153.8 kB / 0.9335 GB, free: 139.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002416/1.439, allocations: 87.94 kB / 0.9336 GB, free: 139.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.003151/1.442, allocations: 1.491 MB / 0.935 GB, free: 138 MB / 0.6856 GB Notification: Performance of sort global known variables: time 6.92e-07/1.442, allocations: 0 / 0.935 GB, free: 138 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003357/1.445, allocations: 0.9024 MB / 0.9359 GB, free: 137.1 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (runningMeanTemperature.intTAmb) * Number of discrete variables: 14 ($whenCondition4,$whenCondition2,$whenCondition1,$whenCondition3,runningMeanTemperature.TRm,runningMeanTemperature.TAveDay[1],runningMeanTemperature.TAveDay[2],runningMeanTemperature.TAveDay[3],runningMeanTemperature.TAveDay[4],runningMeanTemperature.TAveDay[5],runningMeanTemperature.TAveDay[6],runningMeanTemperature.TAveDay[7],sim.weaDat.conTimMin.tNext,sim.weaDat.conTim.tNext) * Number of discrete states: 13 (runningMeanTemperature.TRm,runningMeanTemperature.TAveDay[7],runningMeanTemperature.TAveDay[6],runningMeanTemperature.TAveDay[5],runningMeanTemperature.TAveDay[4],runningMeanTemperature.TAveDay[3],runningMeanTemperature.TAveDay[2],runningMeanTemperature.TAveDay[1],$whenCondition3,i,runningMeanTemperature.TAveDay[i - 1],sim.weaDat.conTim.tNext,sim.weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002046/1.447, allocations: 0.7096 MB / 0.9366 GB, free: 136.6 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.008849/1.456, allocations: 3.78 MB / 0.9403 GB, free: 132.8 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/1.456, allocations: 0 / 0.9403 GB, free: 132.8 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003741/1.46, allocations: 1.996 MB / 0.9422 GB, free: 130.8 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003359/1.464, allocations: 447.2 kB / 0.9427 GB, free: 130.3 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/1.478, allocations: 6.496 MB / 0.949 GB, free: 123.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00246/1.48, allocations: 2.281 MB / 0.9512 GB, free: 121.5 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.004311/1.485, allocations: 0.9303 MB / 0.9522 GB, free: 120.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001868/1.486, allocations: 291.2 kB / 0.9524 GB, free: 120.3 MB / 0.6856 GB Notification: Performance of SimCode: time 1.153e-06/1.486, allocations: 4 kB / 0.9524 GB, free: 120.3 MB / 0.6856 GB Notification: Performance of Templates: time 0.06153/1.548, allocations: 41.84 MB / 0.9933 GB, free: 78.66 MB / 0.6856 GB make -j1 -f IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251.makefile (rm -f IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251.pipe >> ../files/IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251.sim & ./IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251 -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.ControlHeating.Examples.RunningMeanTemperatureEN15251.pipe 2>&1)