Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths") translateModel(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7903/0.7903, allocations: 141.8 MB / 149.1 MB, free: 4.559 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 177.6 kB / 181.9 MB, free: 200 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.3 MB / 436 MB, free: 9.395 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009425/0.0009425, allocations: 94.05 kB / 0.507 GB, free: 24.23 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001889/0.001889, allocations: 279.2 kB / 0.5884 GB, free: 12.37 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 5.491e-06/5.521e-06, allocations: 0 / 0.6759 GB, free: 2.742 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4412, allocations: 82.76 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.118/0.5592, allocations: 109.7 MB / 0.8638 GB, free: 3.105 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.5595, allocations: 75.94 kB / 0.8639 GB, free: 3.031 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.01213/0.5716, allocations: 4.148 MB / 0.868 GB, free: 14.91 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.425e-05/0.5717, allocations: 4 kB / 0.868 GB, free: 14.91 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009066/0.5726, allocations: 0.5749 MB / 0.8685 GB, free: 14.26 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.5727, allocations: 9.281 kB / 0.8685 GB, free: 14.25 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.5728, allocations: 39.56 kB / 0.8686 GB, free: 14.21 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.5732, allocations: 251.2 kB / 0.8688 GB, free: 13.93 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.5732, allocations: 4 kB / 0.8688 GB, free: 13.93 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.534e-05/0.5733, allocations: 15.98 kB / 0.8688 GB, free: 13.91 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001303/0.5734, allocations: 43.98 kB / 0.8689 GB, free: 13.87 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002209/0.5737, allocations: 133.5 kB / 0.869 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.5737, allocations: 0 / 0.869 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.5737, allocations: 8 kB / 0.869 GB, free: 13.72 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.5737, allocations: 4 kB / 0.869 GB, free: 13.72 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003617/0.5741, allocations: 309.7 kB / 0.8693 GB, free: 13.38 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.5743, allocations: 110.9 kB / 0.8694 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.197e-05/0.5744, allocations: 49.09 kB / 0.8695 GB, free: 13.21 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.5744, allocations: 6.344 kB / 0.8695 GB, free: 13.21 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/0.5748, allocations: 179.2 kB / 0.8696 GB, free: 13.02 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=18): time 3.386e-06/0.5748, allocations: 4 kB / 0.8696 GB, free: 13.02 MB / 0.5419 GB Notification: Performance of matching and sorting (n=18): time 0.0003806/0.5752, allocations: 169.2 kB / 0.8698 GB, free: 12.84 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.5752, allocations: 59.41 kB / 0.8699 GB, free: 12.77 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.5755, allocations: 251.3 kB / 0.8701 GB, free: 12.52 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 5.879e-05/0.5755, allocations: 33.69 kB / 0.8701 GB, free: 12.48 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.5756, allocations: 89.14 kB / 0.8702 GB, free: 12.39 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 5.341e-05/0.5756, allocations: 43.5 kB / 0.8703 GB, free: 12.35 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.5757, allocations: 4 kB / 0.8703 GB, free: 12.34 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.5758, allocations: 318.8 kB / 0.8706 GB, free: 12.02 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.576, allocations: 96.2 kB / 0.8707 GB, free: 11.93 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.5762, allocations: 130.2 kB / 0.8708 GB, free: 11.78 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.5764, allocations: 78.31 kB / 0.8709 GB, free: 11.7 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.5764, allocations: 7.938 kB / 0.8709 GB, free: 11.69 MB / 0.5419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005261/0.5769, allocations: 283.7 kB / 0.8711 GB, free: 11.41 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.577, allocations: 4 kB / 0.8711 GB, free: 11.41 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.577, allocations: 0 / 0.8711 GB, free: 11.41 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.577, allocations: 4 kB / 0.8711 GB, free: 11.4 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.5772, allocations: 23.97 kB / 0.8712 GB, free: 11.38 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.5772, allocations: 7.938 kB / 0.8712 GB, free: 11.37 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/0.5776, allocations: 48.06 kB / 0.8712 GB, free: 11.32 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/0.5777, allocations: 51.98 kB / 0.8713 GB, free: 11.27 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calTim.firstHourSampling,calTim.firstHourSampling,$PRE.calTim.firstDaySampling,calTim.firstDaySampling,$whenCondition1,calTim.daySampleTrigger,$whenCondition2,calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calTim.year,calTim.year,$PRE.calTim.month,calTim.month,$PRE.calTim.day,calTim.day,$PRE.calTim.hour,calTim.hour,$PRE.calTim.weekDay,calTim.weekDay,$PRE.calTim.daysSinceEpoch,calTim.daysSinceEpoch,$PRE.calTim.yearIndex,calTim.yearIndex,$PRE.calTim.epochLastMonth,calTim.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.0001301/0.5778, allocations: 131.5 kB / 0.8714 GB, free: 11.14 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.272e-05/0.5779, allocations: 31.61 kB / 0.8714 GB, free: 11.11 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.774e-05/0.5779, allocations: 27.19 kB / 0.8715 GB, free: 11.09 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.578, allocations: 4 kB / 0.8715 GB, free: 11.08 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.578, allocations: 0 / 0.8715 GB, free: 11.08 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.578, allocations: 4 kB / 0.8715 GB, free: 11.08 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006551/0.5786, allocations: 489.5 kB / 0.8719 GB, free: 10.56 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.5787, allocations: 4 kB / 0.8719 GB, free: 10.55 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.731e-05/0.5787, allocations: 11.92 kB / 0.8719 GB, free: 10.54 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.5787, allocations: 4 kB / 0.8719 GB, free: 10.54 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.5788, allocations: 11.89 kB / 0.872 GB, free: 10.53 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.5788, allocations: 4 kB / 0.872 GB, free: 10.52 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5788, allocations: 0 / 0.872 GB, free: 10.52 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003242/0.5791, allocations: 263.1 kB / 0.8722 GB, free: 10.25 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.5793, allocations: 156.6 kB / 0.8724 GB, free: 10.08 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.5793, allocations: 14.89 kB / 0.8724 GB, free: 10.07 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.5795, allocations: 15.98 kB / 0.8724 GB, free: 10.05 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.109e-05/0.5796, allocations: 11.98 kB / 0.8724 GB, free: 10.04 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/0.5796, allocations: 31.97 kB / 0.8724 GB, free: 10.01 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001591/0.5798, allocations: 195.1 kB / 0.8726 GB, free: 9.816 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0003256/0.5801, allocations: 44 kB / 0.8727 GB, free: 9.773 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calTim.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.firstHourSampling,calTim.hour,calTim.yearIndex,calTim.epochLastMonth,calTim.month,calTim.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0001455/0.5803, allocations: 120.1 kB / 0.8728 GB, free: 9.645 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0004409/0.5807, allocations: 263.4 kB / 0.873 GB, free: 9.375 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.5808, allocations: 0 / 0.873 GB, free: 9.375 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.5809, allocations: 63.92 kB / 0.8731 GB, free: 9.312 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.5811, allocations: 16.97 kB / 0.8731 GB, free: 9.293 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006082/0.5818, allocations: 269.2 kB / 0.8734 GB, free: 9.012 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005656/0.5823, allocations: 0.8054 MB / 0.8741 GB, free: 8.18 MB / 0.5419 GB Notification: Performance of SimCode: time 2.51e-07/0.5823, allocations: 0 / 0.8741 GB, free: 8.18 MB / 0.5419 GB Notification: Performance of Templates: time 0.007397/0.5897, allocations: 4.299 MB / 0.8783 GB, free: 3.918 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.pipe 2>&1)