Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Sources.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.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.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.33/1.33, allocations: 289.8 MB / 297.1 MB, free: 6.652 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.0009516/0.0009515, allocations: 177.3 kB / 366.3 MB, free: 1.969 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.038/1.038, allocations: 205.1 MB / 0.6256 GB, free: 5.805 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.0007642/0.0007641, allocations: 96.47 kB / 0.7396 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.37e-06/5.4e-06, allocations: 0 / 0.859 GB, free: 13.35 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4217, allocations: 116.3 MB / 0.9726 GB, free: 68.45 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.5555, allocations: 138.8 MB / 1.108 GB, free: 9.793 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001894/0.5558, allocations: 71.95 kB / 1.108 GB, free: 9.723 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.04333/0.5991, allocations: 18.15 MB / 1.126 GB, free: 7.566 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.405e-05/0.5992, allocations: 4 kB / 1.126 GB, free: 7.562 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.000745/0.5999, allocations: 0.5919 MB / 1.126 GB, free: 6.898 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.6, allocations: 16.02 kB / 1.126 GB, free: 6.883 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.506e-05/0.6, allocations: 29.06 kB / 1.126 GB, free: 6.855 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.6003, allocations: 237.9 kB / 1.127 GB, free: 6.582 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.6004, allocations: 15.91 kB / 1.127 GB, free: 6.566 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/0.6004, allocations: 8 kB / 1.127 GB, free: 6.559 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003303/0.6008, allocations: 316.3 kB / 1.127 GB, free: 6.25 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004342/0.6012, allocations: 446.5 kB / 1.127 GB, free: 5.797 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.6012, allocations: 8 kB / 1.127 GB, free: 5.789 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.6012, allocations: 0 / 1.127 GB, free: 5.789 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.6013, allocations: 7.938 kB / 1.127 GB, free: 5.781 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005229/0.6018, allocations: 0.524 MB / 1.128 GB, free: 5.211 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009542/0.6027, allocations: 1.023 MB / 1.129 GB, free: 4.152 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006144/0.6034, allocations: 0.6517 MB / 1.13 GB, free: 3.488 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.6034, allocations: 4 kB / 1.13 GB, free: 3.484 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004754/0.6039, allocations: 474.4 kB / 1.13 GB, free: 2.996 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.483e-06/0.6039, allocations: 0 / 1.13 GB, free: 2.996 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0008585/0.6048, allocations: 0.7574 MB / 1.131 GB, free: 2.234 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.6048, allocations: 140.5 kB / 1.131 GB, free: 2.066 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.605, allocations: 220 kB / 1.131 GB, free: 1.848 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.605, allocations: 37.7 kB / 1.131 GB, free: 1.805 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.927e-05/0.6051, allocations: 92.91 kB / 1.131 GB, free: 1.707 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.35e-05/0.6052, allocations: 71.08 kB / 1.131 GB, free: 1.637 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.415e-05/0.6052, allocations: 0 / 1.131 GB, free: 1.637 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.6053, allocations: 346.8 kB / 1.132 GB, free: 1.289 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.6056, allocations: 320.7 kB / 1.132 GB, free: 0.9766 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.606, allocations: 417.6 kB / 1.132 GB, free: 0.5273 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003627/0.6064, allocations: 355.9 kB / 1.133 GB, free: 184 kB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.6064, allocations: 4 kB / 1.133 GB, free: 180 kB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008787/0.6073, allocations: 0.8063 MB / 1.134 GB, free: 15.36 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.6073, allocations: 11.94 kB / 1.134 GB, free: 15.35 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.6073, allocations: 0 / 1.134 GB, free: 15.35 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.6073, allocations: 8 kB / 1.134 GB, free: 15.34 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.6074, allocations: 35.91 kB / 1.134 GB, free: 15.31 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.6075, allocations: 11.98 kB / 1.134 GB, free: 15.3 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.6077, allocations: 15.91 kB / 1.134 GB, free: 15.28 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/0.6079, allocations: 203.6 kB / 1.134 GB, free: 15.08 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.0001087/0.608, allocations: 132.9 kB / 1.134 GB, free: 14.95 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.347e-05/0.6081, allocations: 32.84 kB / 1.134 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.222e-05/0.6081, allocations: 33.89 kB / 1.134 GB, free: 14.89 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.6081, allocations: 7.984 kB / 1.134 GB, free: 14.88 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.6082, allocations: 4.062 kB / 1.134 GB, free: 14.88 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.6082, allocations: 7.984 kB / 1.134 GB, free: 14.87 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.6097, allocations: 1.636 MB / 1.136 GB, free: 13.19 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.6097, allocations: 0 / 1.136 GB, free: 13.19 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-05/0.6098, allocations: 23.92 kB / 1.136 GB, free: 13.16 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.6098, allocations: 3.984 kB / 1.136 GB, free: 13.16 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.6098, allocations: 19.98 kB / 1.136 GB, free: 13.14 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.6098, allocations: 4.844 kB / 1.136 GB, free: 13.14 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.6098, allocations: 0 / 1.136 GB, free: 13.14 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000866/0.6107, allocations: 1.115 MB / 1.137 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.006e-05/0.6108, allocations: 104.7 kB / 1.137 GB, free: 11.86 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.6108, allocations: 8 kB / 1.137 GB, free: 11.86 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.6111, allocations: 3.984 kB / 1.137 GB, free: 11.85 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.39e-05/0.6112, allocations: 51.84 kB / 1.137 GB, free: 11.8 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002163/0.6114, allocations: 219.7 kB / 1.137 GB, free: 11.59 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0001081/0.6115, allocations: 168.5 kB / 1.137 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004076/0.6119, allocations: 48.75 kB / 1.137 GB, free: 11.38 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.0001335/0.6121, allocations: 122.3 kB / 1.137 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007393/0.6128, allocations: 0.7258 MB / 1.138 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.6128, allocations: 0 / 1.138 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000425/0.6132, allocations: 407.9 kB / 1.139 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.6145, allocations: 289.7 kB / 1.139 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.6156, allocations: 0.8705 MB / 1.14 GB, free: 8.949 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003978/0.616, allocations: 0.8306 MB / 1.14 GB, free: 8.09 MB / 0.7448 GB Notification: Performance of SimCode: time 1.893e-06/0.616, allocations: 0 / 1.14 GB, free: 8.09 MB / 0.7448 GB Notification: Performance of Templates: time 0.01032/0.6263, allocations: 7.808 MB / 1.148 GB, free: 416 kB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)