Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") [: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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.365/1.365, allocations: 289.8 MB / 297.1 MB, free: 6.727 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009296/0.0009296, allocations: 185.2 kB / 366.3 MB, free: 2.035 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.036/1.036, allocations: 205.1 MB / 0.6256 GB, free: 5.875 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007758/0.0007758, allocations: 83.55 kB / 0.7396 GB, free: 39.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.807e-06/8.827e-06, allocations: 4 kB / 0.859 GB, free: 13.41 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4588/0.4588, allocations: 116.3 MB / 0.9726 GB, free: 68.12 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.5972, allocations: 137.8 MB / 1.107 GB, free: 10.79 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.5974, allocations: 68.52 kB / 1.107 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.05179/0.6492, allocations: 21.46 MB / 1.128 GB, free: 5.258 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.447e-05/0.6493, allocations: 4 kB / 1.128 GB, free: 5.254 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0008141/0.6501, allocations: 0.6024 MB / 1.129 GB, free: 4.582 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.6502, allocations: 8.031 kB / 1.129 GB, free: 4.574 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.229e-05/0.6502, allocations: 32.45 kB / 1.129 GB, free: 4.543 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.6505, allocations: 241.8 kB / 1.129 GB, free: 4.266 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.688e-05/0.6506, allocations: 15.84 kB / 1.129 GB, free: 4.25 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.6506, allocations: 8 kB / 1.129 GB, free: 4.242 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003554/0.651, allocations: 320.3 kB / 1.129 GB, free: 3.93 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004914/0.6515, allocations: 446.5 kB / 1.13 GB, free: 3.477 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.6515, allocations: 0 / 1.13 GB, free: 3.477 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.6515, allocations: 4 kB / 1.13 GB, free: 3.473 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6516, allocations: 5.031 kB / 1.13 GB, free: 3.469 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005496/0.6521, allocations: 0.524 MB / 1.13 GB, free: 2.898 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009971/0.6531, allocations: 1.027 MB / 1.131 GB, free: 1.836 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006437/0.6538, allocations: 0.6595 MB / 1.132 GB, free: 1.164 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.6538, allocations: 11.98 kB / 1.132 GB, free: 1.152 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004658/0.6543, allocations: 470.4 kB / 1.132 GB, free: 0.668 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.333e-06/0.6543, allocations: 0 / 1.132 GB, free: 0.668 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0009032/0.6552, allocations: 0.7576 MB / 1.133 GB, free: 15.91 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.6553, allocations: 140.5 kB / 1.133 GB, free: 15.74 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.6555, allocations: 219.9 kB / 1.133 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.6555, allocations: 29.7 kB / 1.133 GB, free: 15.48 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.191e-05/0.6555, allocations: 97.94 kB / 1.134 GB, free: 15.38 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.348e-05/0.6556, allocations: 71.08 kB / 1.134 GB, free: 15.31 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.6556, allocations: 4 kB / 1.134 GB, free: 15.31 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.6558, allocations: 338.8 kB / 1.134 GB, free: 14.97 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.6561, allocations: 324.7 kB / 1.134 GB, free: 14.65 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000384/0.6565, allocations: 425.5 kB / 1.135 GB, free: 14.2 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.6569, allocations: 352.4 kB / 1.135 GB, free: 13.85 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6569, allocations: 4 kB / 1.135 GB, free: 13.85 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008811/0.6578, allocations: 0.804 MB / 1.136 GB, free: 13.04 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.6578, allocations: 11.94 kB / 1.136 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.6578, allocations: 0 / 1.136 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.6578, allocations: 10.25 kB / 1.136 GB, free: 13.02 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.658, allocations: 35.91 kB / 1.136 GB, free: 12.98 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.658, allocations: 8 kB / 1.136 GB, free: 12.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.6582, allocations: 11.89 kB / 1.136 GB, free: 12.96 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002269/0.6584, allocations: 207.8 kB / 1.136 GB, free: 12.76 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * 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.0001207/0.6586, allocations: 144.8 kB / 1.136 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.539e-05/0.6586, allocations: 31.62 kB / 1.136 GB, free: 12.58 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.794e-05/0.6587, allocations: 33.89 kB / 1.136 GB, free: 12.55 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.6587, allocations: 4 kB / 1.136 GB, free: 12.55 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.6587, allocations: 0 / 1.136 GB, free: 12.55 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.6587, allocations: 7.984 kB / 1.136 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.6604, allocations: 1.634 MB / 1.138 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.6604, allocations: 0 / 1.138 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.066e-05/0.6604, allocations: 23.92 kB / 1.138 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.6604, allocations: 0 / 1.138 GB, free: 10.84 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.6605, allocations: 19.97 kB / 1.138 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.6605, allocations: 7.938 kB / 1.138 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.6605, allocations: 0 / 1.138 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009088/0.6614, allocations: 1.12 MB / 1.139 GB, free: 9.656 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-05/0.6615, allocations: 104.7 kB / 1.139 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.454e-05/0.6615, allocations: 8 kB / 1.139 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.6618, allocations: 0 / 1.139 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.554e-05/0.6619, allocations: 59.83 kB / 1.139 GB, free: 9.469 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000218/0.6621, allocations: 211.5 kB / 1.139 GB, free: 9.262 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0001108/0.6622, allocations: 166.3 kB / 1.14 GB, free: 9.105 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004166/0.6626, allocations: 48 kB / 1.14 GB, free: 9.059 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001694/0.6628, allocations: 134.3 kB / 1.14 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007777/0.6636, allocations: 0.7259 MB / 1.14 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.6636, allocations: 0 / 1.14 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004474/0.664, allocations: 399.8 kB / 1.141 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.6654, allocations: 349.6 kB / 1.141 GB, free: 7.469 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.6666, allocations: 0.8705 MB / 1.142 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004347/0.667, allocations: 0.8228 MB / 1.143 GB, free: 5.715 MB / 0.7448 GB Notification: Performance of SimCode: time 2.61e-07/0.667, allocations: 0 / 1.143 GB, free: 5.715 MB / 0.7448 GB Notification: Performance of Templates: time 0.01143/0.6785, allocations: 8.015 MB / 1.151 GB, free: 13.82 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)