Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus") translateModel(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus") [: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.8748/0.8748, allocations: 141.8 MB / 149.1 MB, free: 4.664 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.001126/0.001126, allocations: 178.7 kB / 181.9 MB, free: 300 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.431/1.431, 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.0009837/0.0009837, allocations: 93.86 kB / 0.507 GB, free: 24.24 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001911/0.001911, allocations: 281.8 kB / 0.5884 GB, free: 12.43 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 6.893e-06/7.404e-06, allocations: 3.938 kB / 0.6759 GB, free: 2.789 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4424/0.4424, allocations: 82.75 MB / 0.7567 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.5628, allocations: 109.8 MB / 0.8639 GB, free: 3.105 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.5631, allocations: 73.38 kB / 0.864 GB, free: 3.035 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.01234/0.5755, allocations: 4.147 MB / 0.868 GB, free: 14.93 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.471e-05/0.5755, allocations: 4 kB / 0.868 GB, free: 14.92 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.0008722/0.5764, allocations: 0.571 MB / 0.8686 GB, free: 14.28 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.5765, allocations: 11.97 kB / 0.8686 GB, free: 14.27 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.988e-05/0.5766, allocations: 35.62 kB / 0.8686 GB, free: 14.23 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003404/0.5769, allocations: 259.2 kB / 0.8689 GB, free: 13.94 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.5769, allocations: 4 kB / 0.8689 GB, free: 13.93 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.577, allocations: 19.98 kB / 0.8689 GB, free: 13.91 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000119/0.5771, allocations: 39.94 kB / 0.8689 GB, free: 13.88 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.5774, allocations: 137.5 kB / 0.8691 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.5774, allocations: 0 / 0.8691 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.5774, allocations: 0 / 0.8691 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.5774, allocations: 5.688 kB / 0.8691 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003538/0.5778, allocations: 309.8 kB / 0.8694 GB, free: 13.39 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.578, allocations: 114.7 kB / 0.8695 GB, free: 13.27 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.5781, allocations: 52.84 kB / 0.8695 GB, free: 13.21 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.5781, allocations: 3.984 kB / 0.8695 GB, free: 13.21 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000322/0.5785, allocations: 175.2 kB / 0.8697 GB, free: 13.03 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.5785, allocations: 0 / 0.8697 GB, free: 13.03 MB / 0.5419 GB Notification: Performance of matching and sorting (n=18): time 0.000372/0.5789, allocations: 169.2 kB / 0.8699 GB, free: 12.86 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.5789, allocations: 63.39 kB / 0.8699 GB, free: 12.78 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.5792, allocations: 255.3 kB / 0.8702 GB, free: 12.52 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 5.547e-05/0.5792, allocations: 33.7 kB / 0.8702 GB, free: 12.48 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.5793, allocations: 85.14 kB / 0.8703 GB, free: 12.4 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.5793, allocations: 39.52 kB / 0.8703 GB, free: 12.36 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.769e-05/0.5794, allocations: 8 kB / 0.8703 GB, free: 12.35 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.5795, allocations: 318.8 kB / 0.8706 GB, free: 12.03 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.5797, allocations: 92.14 kB / 0.8707 GB, free: 11.94 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.58, allocations: 138.2 kB / 0.8709 GB, free: 11.78 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.5802, allocations: 72.72 kB / 0.8709 GB, free: 11.71 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.5802, allocations: 4 kB / 0.8709 GB, free: 11.71 MB / 0.5419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005125/0.5807, allocations: 290.6 kB / 0.8712 GB, free: 11.42 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.5807, allocations: 4 kB / 0.8712 GB, free: 11.42 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.5807, allocations: 3.359 kB / 0.8712 GB, free: 11.42 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.5808, allocations: 4 kB / 0.8712 GB, free: 11.41 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.5809, allocations: 31.91 kB / 0.8712 GB, free: 11.38 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.5809, allocations: 4 kB / 0.8712 GB, free: 11.38 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003851/0.5813, allocations: 48.06 kB / 0.8713 GB, free: 11.33 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.171e-05/0.5814, allocations: 47.98 kB / 0.8713 GB, free: 11.29 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.0001321/0.5816, allocations: 131.5 kB / 0.8715 GB, free: 11.15 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.5816, allocations: 27.62 kB / 0.8715 GB, free: 11.12 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.336e-05/0.5817, allocations: 29.97 kB / 0.8715 GB, free: 11.1 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.5817, allocations: 4 kB / 0.8715 GB, free: 11.09 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.5817, allocations: 0 / 0.8715 GB, free: 11.09 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.5817, allocations: 0 / 0.8715 GB, free: 11.09 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006422/0.5824, allocations: 490.7 kB / 0.872 GB, free: 10.57 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.5824, allocations: 0 / 0.872 GB, free: 10.57 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.494e-05/0.5824, allocations: 11.98 kB / 0.872 GB, free: 10.56 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.5825, allocations: 4 kB / 0.872 GB, free: 10.55 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.5825, allocations: 15.89 kB / 0.872 GB, free: 10.54 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.5825, allocations: 4 kB / 0.872 GB, free: 10.54 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5825, allocations: 4 kB / 0.872 GB, free: 10.53 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002897/0.5828, allocations: 267 kB / 0.8723 GB, free: 10.25 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.583, allocations: 152.6 kB / 0.8724 GB, free: 10.09 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.317e-05/0.5831, allocations: 9.219 kB / 0.8724 GB, free: 10.08 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.5832, allocations: 11.98 kB / 0.8725 GB, free: 10.07 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.824e-05/0.5833, allocations: 19.98 kB / 0.8725 GB, free: 10.05 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.753e-05/0.5834, allocations: 31.97 kB / 0.8725 GB, free: 10.02 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001667/0.5835, allocations: 195.1 kB / 0.8727 GB, free: 9.824 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0003206/0.5839, allocations: 40 kB / 0.8727 GB, free: 9.785 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.0001559/0.584, allocations: 116.2 kB / 0.8728 GB, free: 9.66 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0004392/0.5845, allocations: 264.6 kB / 0.8731 GB, free: 9.391 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.5845, allocations: 384 / 0.8731 GB, free: 9.391 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.5846, allocations: 75.91 kB / 0.8732 GB, free: 9.316 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002493/0.5849, allocations: 11.05 kB / 0.8732 GB, free: 9.305 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005822/0.5855, allocations: 276.8 kB / 0.8734 GB, free: 9.016 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004503/0.5859, allocations: 0.7937 MB / 0.8742 GB, free: 8.195 MB / 0.5419 GB Notification: Performance of SimCode: time 1.503e-06/0.5859, allocations: 0 / 0.8742 GB, free: 8.195 MB / 0.5419 GB Notification: Performance of Templates: time 0.007336/0.5933, allocations: 4.312 MB / 0.8784 GB, free: 3.93 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe 2>&1)