Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.134/2.134, allocations: 284.9 MB / 292.2 MB, free: 10.75 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001606/0.001606, allocations: 177.2 kB / 360.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.64/1.64, allocations: 205.1 MB / 0.6188 GB, free: 12.44 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00124/0.001239, allocations: 96.98 kB / 0.7318 GB, free: 44.99 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.927e-06/9.388e-06, allocations: 0 / 0.8503 GB, free: 3.836 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5812/0.5812, allocations: 115.2 MB / 0.9628 GB, free: 78.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.7793, allocations: 136.6 MB / 1.096 GB, free: 4.141 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.7796, allocations: 64.77 kB / 1.096 GB, free: 4.078 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.09575/0.8754, allocations: 21.46 MB / 1.117 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.08e-05/0.8755, allocations: 4 kB / 1.117 GB, free: 14.72 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.001294/0.8768, allocations: 0.6088 MB / 1.118 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.8768, allocations: 8.594 kB / 1.118 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.218e-05/0.8769, allocations: 27.72 kB / 1.118 GB, free: 14 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.8774, allocations: 246.8 kB / 1.118 GB, free: 13.72 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.171e-05/0.8775, allocations: 16.67 kB / 1.118 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.8775, allocations: 12 kB / 1.118 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006574/0.8782, allocations: 312 kB / 1.118 GB, free: 13.39 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008679/0.8791, allocations: 447.1 kB / 1.119 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.8791, allocations: 1.562 kB / 1.119 GB, free: 12.94 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.539e-05/0.8791, allocations: 9.109 kB / 1.119 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.8792, allocations: 4.562 kB / 1.119 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008877/0.8801, allocations: 0.5144 MB / 1.119 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/0.8819, allocations: 1.027 MB / 1.12 GB, free: 11.31 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.8832, allocations: 0.6478 MB / 1.121 GB, free: 10.65 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.8832, allocations: 11.98 kB / 1.121 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008345/0.8841, allocations: 474.3 kB / 1.121 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.465e-06/0.8841, allocations: 4 kB / 1.121 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001621/0.8857, allocations: 0.7497 MB / 1.122 GB, free: 9.395 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.903e-05/0.8858, allocations: 140.5 kB / 1.122 GB, free: 9.227 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003666/0.8862, allocations: 223.9 kB / 1.123 GB, free: 9.004 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/0.8863, allocations: 29.7 kB / 1.123 GB, free: 8.969 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.998e-05/0.8864, allocations: 97.56 kB / 1.123 GB, free: 8.867 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.8865, allocations: 79.05 kB / 1.123 GB, free: 8.789 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.8865, allocations: 0 / 1.123 GB, free: 8.789 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.8867, allocations: 342.8 kB / 1.123 GB, free: 8.445 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006395/0.8874, allocations: 328.7 kB / 1.123 GB, free: 8.125 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000716/0.8881, allocations: 409.8 kB / 1.124 GB, free: 7.691 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000735/0.8888, allocations: 363.7 kB / 1.124 GB, free: 7.336 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.8889, allocations: 11.75 kB / 1.124 GB, free: 7.328 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001552/0.8904, allocations: 0.7898 MB / 1.125 GB, free: 6.531 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.8905, allocations: 8 kB / 1.125 GB, free: 6.523 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.8905, allocations: 0 / 1.125 GB, free: 6.523 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.8905, allocations: 8 kB / 1.125 GB, free: 6.516 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.8908, allocations: 43.83 kB / 1.125 GB, free: 6.473 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.8908, allocations: 8.062 kB / 1.125 GB, free: 6.465 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004109/0.8912, allocations: 17.53 kB / 1.125 GB, free: 6.449 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004131/0.8916, allocations: 209 kB / 1.125 GB, free: 6.246 MB / 0.7292 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.0001837/0.8918, allocations: 141.7 kB / 1.125 GB, free: 6.102 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-05/0.8919, allocations: 31.62 kB / 1.125 GB, free: 6.07 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.892, allocations: 29.91 kB / 1.125 GB, free: 6.043 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.8921, allocations: 7.984 kB / 1.125 GB, free: 6.035 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.8921, allocations: 1.438 kB / 1.125 GB, free: 6.035 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.8921, allocations: 0 / 1.125 GB, free: 6.035 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002932/0.895, allocations: 1.638 MB / 1.127 GB, free: 4.352 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.8951, allocations: 0 / 1.127 GB, free: 4.352 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.386e-05/0.8951, allocations: 29.03 kB / 1.127 GB, free: 4.324 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.8952, allocations: 8 kB / 1.127 GB, free: 4.316 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.786e-05/0.8952, allocations: 19.97 kB / 1.127 GB, free: 4.297 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.107e-06/0.8952, allocations: 4 kB / 1.127 GB, free: 4.293 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.8953, allocations: 0 / 1.127 GB, free: 4.293 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001664/0.8969, allocations: 1.107 MB / 1.128 GB, free: 3.148 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-05/0.897, allocations: 100.7 kB / 1.128 GB, free: 3.031 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.861e-05/0.8971, allocations: 10.36 kB / 1.128 GB, free: 3.023 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004177/0.8976, allocations: 4 kB / 1.128 GB, free: 3.02 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.8977, allocations: 55.84 kB / 1.128 GB, free: 2.965 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004264/0.8982, allocations: 221.9 kB / 1.129 GB, free: 2.75 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002179/0.8984, allocations: 160.5 kB / 1.129 GB, free: 2.59 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006941/0.8991, allocations: 55.98 kB / 1.129 GB, free: 2.535 MB / 0.7292 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.0002351/0.8994, allocations: 128.3 kB / 1.129 GB, free: 2.402 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001461/0.9008, allocations: 0.7298 MB / 1.13 GB, free: 1.672 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.9008, allocations: 256 / 1.13 GB, free: 1.672 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0008349/0.9017, allocations: 403.7 kB / 1.13 GB, free: 1.277 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/0.9045, allocations: 346.1 kB / 1.13 GB, free: 0.957 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.9066, allocations: 0.8663 MB / 1.131 GB, free: 64 kB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006825/0.9074, allocations: 0.8306 MB / 1.132 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of SimCode: time 9.52e-07/0.9074, allocations: 0 / 1.132 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of Templates: time 0.02051/0.9279, allocations: 8.014 MB / 1.14 GB, free: 7.324 MB / 0.7448 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)