Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.315/1.315, allocations: 285.5 MB / 292.8 MB, free: 10.41 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.0009222/0.0009222, allocations: 181.3 kB / 361.1 MB, free: 7.09 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.041/1.041, allocations: 205.1 MB / 0.6195 GB, free: 10.32 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.0007461/0.0007461, allocations: 89.3 kB / 0.7325 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.221e-05/1.223e-05, allocations: 4 kB / 0.8511 GB, free: 2.984 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4301/0.4301, allocations: 115.3 MB / 0.9637 GB, free: 78.27 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.5585, allocations: 136.8 MB / 1.097 GB, free: 3.234 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001612/0.5587, allocations: 63.97 kB / 1.097 GB, free: 3.172 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.05185/0.6105, allocations: 21.45 MB / 1.118 GB, free: 13.82 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.6106, allocations: 4 kB / 1.118 GB, free: 13.81 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.0008344/0.6114, allocations: 0.6084 MB / 1.119 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.6115, allocations: 8.594 kB / 1.119 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/0.6115, allocations: 31.72 kB / 1.119 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.6118, allocations: 239.2 kB / 1.119 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.6119, allocations: 15.84 kB / 1.119 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.234e-05/0.6119, allocations: 16.52 kB / 1.119 GB, free: 12.79 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003597/0.6123, allocations: 319.2 kB / 1.119 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.6128, allocations: 439.2 kB / 1.12 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.6128, allocations: 0 / 1.12 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.6128, allocations: 5.438 kB / 1.12 GB, free: 12.03 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.6128, allocations: 4 kB / 1.12 GB, free: 12.03 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.6134, allocations: 0.5234 MB / 1.12 GB, free: 11.46 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.6144, allocations: 1.03 MB / 1.121 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006286/0.615, allocations: 0.6516 MB / 1.122 GB, free: 9.738 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.6151, allocations: 8 kB / 1.122 GB, free: 9.73 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004622/0.6155, allocations: 475.3 kB / 1.123 GB, free: 9.246 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.894e-06/0.6156, allocations: 0 / 1.123 GB, free: 9.246 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0008699/0.6164, allocations: 0.7626 MB / 1.123 GB, free: 8.48 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.6165, allocations: 136.5 kB / 1.123 GB, free: 8.316 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.6167, allocations: 219.9 kB / 1.124 GB, free: 8.098 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.6167, allocations: 29.7 kB / 1.124 GB, free: 8.062 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.482e-05/0.6168, allocations: 96.91 kB / 1.124 GB, free: 7.961 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.669e-05/0.6168, allocations: 75.06 kB / 1.124 GB, free: 7.887 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.389e-05/0.6169, allocations: 0 / 1.124 GB, free: 7.887 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.617, allocations: 346.8 kB / 1.124 GB, free: 7.539 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.6174, allocations: 324.7 kB / 1.124 GB, free: 7.223 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.6177, allocations: 421.5 kB / 1.125 GB, free: 6.777 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.6181, allocations: 355.9 kB / 1.125 GB, free: 6.43 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.6181, allocations: 0 / 1.125 GB, free: 6.43 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009037/0.619, allocations: 0.8045 MB / 1.126 GB, free: 5.621 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.6191, allocations: 4 kB / 1.126 GB, free: 5.617 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.6191, allocations: 4 kB / 1.126 GB, free: 5.613 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.6191, allocations: 4 kB / 1.126 GB, free: 5.609 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.6192, allocations: 47.89 kB / 1.126 GB, free: 5.562 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.6193, allocations: 4 kB / 1.126 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.6195, allocations: 11.91 kB / 1.126 GB, free: 5.547 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002339/0.6197, allocations: 210 kB / 1.126 GB, free: 5.344 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.0001162/0.6198, allocations: 140.8 kB / 1.126 GB, free: 5.199 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.383e-05/0.6199, allocations: 31.61 kB / 1.126 GB, free: 5.168 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.244e-05/0.62, allocations: 36.16 kB / 1.126 GB, free: 5.137 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.62, allocations: 4 kB / 1.126 GB, free: 5.133 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.62, allocations: 0 / 1.126 GB, free: 5.133 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.62, allocations: 3.984 kB / 1.126 GB, free: 5.129 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.6216, allocations: 1.637 MB / 1.128 GB, free: 3.445 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.6217, allocations: 0 / 1.128 GB, free: 3.445 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-05/0.6217, allocations: 23.91 kB / 1.128 GB, free: 3.422 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.6217, allocations: 5.5 kB / 1.128 GB, free: 3.418 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.6217, allocations: 15.98 kB / 1.128 GB, free: 3.402 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.6218, allocations: 11.92 kB / 1.128 GB, free: 3.391 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6218, allocations: 2.656 kB / 1.128 GB, free: 3.391 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009148/0.6227, allocations: 1.118 MB / 1.129 GB, free: 2.238 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.6228, allocations: 100.7 kB / 1.129 GB, free: 2.121 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.6228, allocations: 11.98 kB / 1.129 GB, free: 2.109 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.623, allocations: 0 / 1.129 GB, free: 2.109 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.077e-05/0.6231, allocations: 51.84 kB / 1.129 GB, free: 2.059 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000222/0.6234, allocations: 216.9 kB / 1.13 GB, free: 1.848 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001228/0.6235, allocations: 164.5 kB / 1.13 GB, free: 1.684 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004146/0.6239, allocations: 48 kB / 1.13 GB, free: 1.637 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.0001548/0.6241, allocations: 142.7 kB / 1.13 GB, free: 1.488 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007669/0.6248, allocations: 0.7184 MB / 1.131 GB, free: 0.7695 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.6249, allocations: 4 kB / 1.131 GB, free: 0.7656 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004323/0.6253, allocations: 399.8 kB / 1.131 GB, free: 384 kB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.6266, allocations: 354.1 kB / 1.131 GB, free: 52 kB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.6278, allocations: 0.8632 MB / 1.132 GB, free: 15.16 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004205/0.6282, allocations: 0.835 MB / 1.133 GB, free: 14.3 MB / 0.7448 GB Notification: Performance of SimCode: time 2.5e-07/0.6282, allocations: 0 / 1.133 GB, free: 14.3 MB / 0.7448 GB Notification: Performance of Templates: time 0.01103/0.6392, allocations: 8.006 MB / 1.141 GB, free: 6.445 MB / 0.7448 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)