Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Sources.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.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.258/2.258, allocations: 253.1 MB / 260.4 MB, free: 7.555 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.002206/0.002205, allocations: 177.3 kB / 319.6 MB, free: 3.32 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 1.902/1.902, 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.001853/0.001852, allocations: 95.33 kB / 0.6746 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.006e-05/1.023e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.222, allocations: 106.2 MB / 0.888 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7035/0.9255, allocations: 132.3 MB / 1.017 GB, free: 5.992 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.9259, allocations: 70.95 kB / 1.017 GB, free: 5.953 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.08448/1.01, allocations: 18.16 MB / 1.035 GB, free: 7.496 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.347e-05/1.011, allocations: 4 kB / 1.035 GB, free: 7.492 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.001351/1.012, allocations: 0.5901 MB / 1.036 GB, free: 6.844 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/1.012, allocations: 8.031 kB / 1.036 GB, free: 6.836 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/1.012, allocations: 27.62 kB / 1.036 GB, free: 6.809 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/1.013, allocations: 253.5 kB / 1.036 GB, free: 6.535 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/1.013, allocations: 4 kB / 1.036 GB, free: 6.531 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.029e-05/1.013, allocations: 12 kB / 1.036 GB, free: 6.52 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006495/1.013, allocations: 322.7 kB / 1.036 GB, free: 6.262 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008145/1.014, allocations: 446 kB / 1.037 GB, free: 5.875 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/1.014, allocations: 0 / 1.037 GB, free: 5.875 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/1.014, allocations: 1.219 kB / 1.037 GB, free: 5.875 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/1.014, allocations: 7.906 kB / 1.037 GB, free: 5.867 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009778/1.015, allocations: 0.5208 MB / 1.037 GB, free: 5.367 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001847/1.017, allocations: 1.022 MB / 1.038 GB, free: 4.477 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/1.018, allocations: 0.6528 MB / 1.039 GB, free: 3.922 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 8.582e-05/1.018, allocations: 4 kB / 1.039 GB, free: 3.918 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008675/1.019, allocations: 479.2 kB / 1.039 GB, free: 3.5 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.866e-06/1.019, allocations: 0 / 1.039 GB, free: 3.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001681/1.021, allocations: 0.7543 MB / 1.04 GB, free: 2.859 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.522e-05/1.021, allocations: 144.2 kB / 1.04 GB, free: 2.691 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/1.022, allocations: 222.7 kB / 1.04 GB, free: 2.496 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.98e-05/1.022, allocations: 29.2 kB / 1.04 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/1.022, allocations: 103.8 kB / 1.04 GB, free: 2.367 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/1.022, allocations: 73.27 kB / 1.041 GB, free: 2.305 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.572e-05/1.022, allocations: 0 / 1.041 GB, free: 2.305 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001543/1.022, allocations: 340.6 kB / 1.041 GB, free: 1.977 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006533/1.023, allocations: 323.5 kB / 1.041 GB, free: 1.719 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006997/1.023, allocations: 413 kB / 1.042 GB, free: 1.348 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000726/1.024, allocations: 358.7 kB / 1.042 GB, free: 1.059 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/1.024, allocations: 7.984 kB / 1.042 GB, free: 1.051 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001666/1.026, allocations: 0.792 MB / 1.043 GB, free: 384 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/1.026, allocations: 4 kB / 1.043 GB, free: 380 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/1.026, allocations: 4 kB / 1.043 GB, free: 376 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.786e-05/1.026, allocations: 4 kB / 1.043 GB, free: 372 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/1.026, allocations: 54.11 kB / 1.043 GB, free: 324 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/1.026, allocations: 8 kB / 1.043 GB, free: 316 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004688/1.027, allocations: 11.88 kB / 1.043 GB, free: 304 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/1.027, allocations: 206.5 kB / 1.043 GB, free: 100 kB / 0.6511 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.0002892/1.027, allocations: 151.9 kB / 1.043 GB, free: 15.95 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.348e-05/1.028, allocations: 23.72 kB / 1.043 GB, free: 15.93 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/1.028, allocations: 33.77 kB / 1.043 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/1.028, allocations: 7.906 kB / 1.043 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/1.028, allocations: 4 kB / 1.043 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/1.028, allocations: 4 kB / 1.043 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003043/1.031, allocations: 1.625 MB / 1.045 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/1.031, allocations: 4 kB / 1.045 GB, free: 14.42 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.846e-05/1.031, allocations: 27.28 kB / 1.045 GB, free: 14.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.33e-05/1.031, allocations: 4 kB / 1.045 GB, free: 14.39 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.924e-05/1.031, allocations: 19.53 kB / 1.045 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/1.031, allocations: 4 kB / 1.045 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/1.031, allocations: 4 kB / 1.045 GB, free: 14.37 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001686/1.033, allocations: 1.114 MB / 1.046 GB, free: 13.34 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/1.033, allocations: 100.8 kB / 1.046 GB, free: 13.23 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.693e-05/1.033, allocations: 11.34 kB / 1.046 GB, free: 13.22 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/1.034, allocations: 4 kB / 1.046 GB, free: 13.21 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/1.034, allocations: 53.88 kB / 1.046 GB, free: 13.18 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004249/1.034, allocations: 222.8 kB / 1.046 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0002436/1.034, allocations: 159.1 kB / 1.046 GB, free: 12.83 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007829/1.035, allocations: 52 kB / 1.047 GB, free: 12.78 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.0002654/1.035, allocations: 132.6 kB / 1.047 GB, free: 12.64 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0016/1.037, allocations: 0.7232 MB / 1.047 GB, free: 12.04 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.037, allocations: 8.188 kB / 1.047 GB, free: 12.03 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008432/1.038, allocations: 399.6 kB / 1.048 GB, free: 11.71 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002837/1.041, allocations: 301.6 kB / 1.048 GB, free: 11.45 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/1.043, allocations: 0.8681 MB / 1.049 GB, free: 10.66 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006484/1.044, allocations: 0.8232 MB / 1.05 GB, free: 9.82 MB / 0.6667 GB Notification: Performance of SimCode: time 1.193e-06/1.044, allocations: 0 / 1.05 GB, free: 9.82 MB / 0.6667 GB Notification: Performance of Templates: time 0.02069/1.064, allocations: 7.814 MB / 1.057 GB, free: 2.094 MB / 0.6667 GB