Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json 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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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 7.0.1/package.mo): time 2.333/2.333, allocations: 253.1 MB / 260.4 MB, free: 7.465 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001593/0.001593, allocations: 189.2 kB / 319.6 MB, free: 3.293 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.028/2.028, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001831/0.00183, allocations: 87.34 kB / 0.6746 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.268e-05/1.282e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2487, allocations: 106.2 MB / 0.8881 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6981/0.9469, allocations: 131.6 MB / 1.017 GB, free: 6.699 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.9472, allocations: 68.88 kB / 1.017 GB, free: 6.664 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.1417/1.089, allocations: 21.51 MB / 1.038 GB, free: 5.488 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.478e-05/1.089, allocations: 4 kB / 1.038 GB, free: 5.484 MB / 0.6511 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.00133/1.09, allocations: 0.6039 MB / 1.038 GB, free: 4.824 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/1.09, allocations: 8.031 kB / 1.038 GB, free: 4.816 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/1.091, allocations: 35.61 kB / 1.038 GB, free: 4.781 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/1.091, allocations: 246.2 kB / 1.039 GB, free: 4.516 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/1.091, allocations: 4 kB / 1.039 GB, free: 4.512 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.505e-05/1.091, allocations: 12 kB / 1.039 GB, free: 4.5 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006366/1.092, allocations: 315.7 kB / 1.039 GB, free: 4.246 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008142/1.093, allocations: 448.8 kB / 1.039 GB, free: 3.859 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/1.093, allocations: 0 / 1.039 GB, free: 3.859 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.441e-05/1.093, allocations: 4 kB / 1.039 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/1.093, allocations: 3.906 kB / 1.039 GB, free: 3.852 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009163/1.094, allocations: 0.5245 MB / 1.04 GB, free: 3.348 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/1.096, allocations: 1.019 MB / 1.041 GB, free: 2.457 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/1.097, allocations: 0.6581 MB / 1.041 GB, free: 1.902 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/1.097, allocations: 11.94 kB / 1.041 GB, free: 1.891 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009035/1.098, allocations: 465.7 kB / 1.042 GB, free: 1.484 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 3.065e-06/1.098, allocations: 0 / 1.042 GB, free: 1.484 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.00171/1.099, allocations: 0.7643 MB / 1.043 GB, free: 0.832 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.427e-05/1.1, allocations: 144.4 kB / 1.043 GB, free: 0.6641 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003376/1.1, allocations: 223.1 kB / 1.043 GB, free: 484 kB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.045e-05/1.1, allocations: 25.7 kB / 1.043 GB, free: 452 kB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/1.1, allocations: 100.5 kB / 1.043 GB, free: 356 kB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/1.1, allocations: 70.2 kB / 1.043 GB, free: 296 kB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/1.1, allocations: 0 / 1.043 GB, free: 296 kB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001554/1.1, allocations: 341.5 kB / 1.044 GB, free: 15.96 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006169/1.101, allocations: 325.6 kB / 1.044 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007443/1.102, allocations: 416.4 kB / 1.044 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000756/1.103, allocations: 365 kB / 1.045 GB, free: 15.03 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/1.103, allocations: 0 / 1.045 GB, free: 15.03 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001744/1.104, allocations: 0.7968 MB / 1.045 GB, free: 14.35 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/1.104, allocations: 4 kB / 1.045 GB, free: 14.35 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/1.104, allocations: 7.938 kB / 1.045 GB, free: 14.34 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/1.104, allocations: 12.06 kB / 1.045 GB, free: 14.33 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/1.105, allocations: 47.44 kB / 1.045 GB, free: 14.29 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/1.105, allocations: 4 kB / 1.045 GB, free: 14.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004244/1.105, allocations: 11.98 kB / 1.045 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004211/1.106, allocations: 206.9 kB / 1.046 GB, free: 14.07 MB / 0.6667 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.0002174/1.106, allocations: 141.1 kB / 1.046 GB, free: 13.93 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.684e-05/1.106, allocations: 31.66 kB / 1.046 GB, free: 13.9 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/1.106, allocations: 37.08 kB / 1.046 GB, free: 13.89 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/1.106, allocations: 7.906 kB / 1.046 GB, free: 13.88 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/1.106, allocations: 4 kB / 1.046 GB, free: 13.88 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/1.106, allocations: 3.984 kB / 1.046 GB, free: 13.87 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003192/1.109, allocations: 1.632 MB / 1.047 GB, free: 12.39 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/1.109, allocations: 4 kB / 1.047 GB, free: 12.39 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.938e-05/1.109, allocations: 19.73 kB / 1.047 GB, free: 12.37 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-05/1.11, allocations: 4 kB / 1.047 GB, free: 12.37 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.507e-05/1.11, allocations: 15.97 kB / 1.047 GB, free: 12.35 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/1.11, allocations: 4 kB / 1.047 GB, free: 12.35 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/1.11, allocations: 0 / 1.047 GB, free: 12.35 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001731/1.111, allocations: 1.121 MB / 1.049 GB, free: 11.32 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/1.111, allocations: 100.8 kB / 1.049 GB, free: 11.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.783e-05/1.112, allocations: 7.344 kB / 1.049 GB, free: 11.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004217/1.112, allocations: 11.94 kB / 1.049 GB, free: 11.18 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/1.112, allocations: 48.36 kB / 1.049 GB, free: 11.15 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004189/1.113, allocations: 223.2 kB / 1.049 GB, free: 10.93 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0002457/1.113, allocations: 159.7 kB / 1.049 GB, free: 10.8 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007841/1.114, allocations: 52 kB / 1.049 GB, free: 10.75 MB / 0.6667 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.0002555/1.114, allocations: 126.9 kB / 1.049 GB, free: 10.62 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001563/1.116, allocations: 0.7219 MB / 1.05 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.116, allocations: 0 / 1.05 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008528/1.116, allocations: 407.5 kB / 1.05 GB, free: 9.684 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002909/1.119, allocations: 350.9 kB / 1.051 GB, free: 9.375 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/1.122, allocations: 0.8683 MB / 1.052 GB, free: 8.586 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007371/1.122, allocations: 0.8323 MB / 1.052 GB, free: 7.742 MB / 0.6667 GB Notification: Performance of SimCode: time 1.463e-06/1.122, allocations: 0 / 1.052 GB, free: 7.742 MB / 0.6667 GB Notification: Performance of Templates: time 0.02149/1.144, allocations: 8.021 MB / 1.06 GB, free: 15.81 MB / 0.6823 GB