Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.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.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus") translateModel(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus") [: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.9007/0.9007, allocations: 141.8 MB / 149.1 MB, free: 0.6914 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.001134/0.001134, allocations: 184.6 kB / 182 MB, free: 12.86 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 221.3 MB / 436 MB, free: 5.672 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.0009705/0.0009705, allocations: 95.2 kB / 0.507 GB, free: 19.18 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.004762/0.004761, allocations: 281.6 kB / 0.5885 GB, free: 6.793 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.055e-06/8.096e-06, allocations: 1.438 kB / 0.6759 GB, free: 140 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1769, allocations: 82.78 MB / 0.7567 GB, free: 88.8 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.3012, allocations: 109.8 MB / 0.8639 GB, free: 10.88 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.3014, allocations: 71.95 kB / 0.864 GB, free: 10.81 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.01332/0.3148, allocations: 4.161 MB / 0.8681 GB, free: 6.641 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.386e-05/0.3148, allocations: 0 / 0.8681 GB, free: 6.641 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.0009559/0.3158, allocations: 0.5788 MB / 0.8686 GB, free: 5.992 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.3159, allocations: 8.031 kB / 0.8686 GB, free: 5.984 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.316, allocations: 35.62 kB / 0.8687 GB, free: 5.949 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.3164, allocations: 251.2 kB / 0.8689 GB, free: 5.664 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.3164, allocations: 4 kB / 0.8689 GB, free: 5.66 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-05/0.3165, allocations: 19.92 kB / 0.8689 GB, free: 5.641 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001319/0.3167, allocations: 39.98 kB / 0.869 GB, free: 5.602 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.3169, allocations: 137.5 kB / 0.8691 GB, free: 5.461 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3169, allocations: 0 / 0.8691 GB, free: 5.461 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.3169, allocations: 3.984 kB / 0.8691 GB, free: 5.457 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.317, allocations: 7.938 kB / 0.8691 GB, free: 5.449 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004202/0.3174, allocations: 305.8 kB / 0.8694 GB, free: 5.113 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002028/0.3176, allocations: 114.7 kB / 0.8695 GB, free: 4.992 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.594e-05/0.3177, allocations: 48.86 kB / 0.8696 GB, free: 4.941 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.3177, allocations: 3.984 kB / 0.8696 GB, free: 4.938 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003326/0.3181, allocations: 172.9 kB / 0.8697 GB, free: 4.758 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.3181, allocations: 0 / 0.8697 GB, free: 4.758 MB / 0.5419 GB Notification: Performance of matching and sorting (n=18): time 0.0003899/0.3185, allocations: 173.2 kB / 0.8699 GB, free: 4.582 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.3185, allocations: 63.33 kB / 0.87 GB, free: 4.508 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.3188, allocations: 247.3 kB / 0.8702 GB, free: 4.258 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/0.3189, allocations: 33.7 kB / 0.8702 GB, free: 4.219 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 6.306e-05/0.3189, allocations: 97.12 kB / 0.8703 GB, free: 4.121 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 9.931e-05/0.319, allocations: 47.44 kB / 0.8704 GB, free: 4.074 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.3191, allocations: 4 kB / 0.8704 GB, free: 4.07 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3192, allocations: 322.8 kB / 0.8707 GB, free: 3.746 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.3194, allocations: 92.22 kB / 0.8708 GB, free: 3.652 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.3196, allocations: 138.2 kB / 0.8709 GB, free: 3.496 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.3198, allocations: 68.7 kB / 0.871 GB, free: 3.426 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3198, allocations: 0 / 0.871 GB, free: 3.426 MB / 0.5419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000559/0.3203, allocations: 283.7 kB / 0.8712 GB, free: 3.145 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3204, allocations: 6.969 kB / 0.8712 GB, free: 3.141 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3204, allocations: 0 / 0.8712 GB, free: 3.141 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3204, allocations: 4 kB / 0.8712 GB, free: 3.137 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3206, allocations: 27.91 kB / 0.8713 GB, free: 3.109 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.3206, allocations: 4 kB / 0.8713 GB, free: 3.105 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004031/0.321, allocations: 48 kB / 0.8713 GB, free: 3.059 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.778e-05/0.3211, allocations: 55.98 kB / 0.8714 GB, free: 3.004 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.0001354/0.3212, allocations: 127.5 kB / 0.8715 GB, free: 2.875 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.396e-05/0.3213, allocations: 27.62 kB / 0.8715 GB, free: 2.848 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.475e-05/0.3214, allocations: 29.97 kB / 0.8715 GB, free: 2.82 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3214, allocations: 4 kB / 0.8715 GB, free: 2.816 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3214, allocations: 4 kB / 0.8716 GB, free: 2.812 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3214, allocations: 0 / 0.8716 GB, free: 2.812 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006515/0.322, allocations: 490.7 kB / 0.872 GB, free: 2.289 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3221, allocations: 4 kB / 0.872 GB, free: 2.285 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.502e-05/0.3221, allocations: 7.984 kB / 0.872 GB, free: 2.277 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3221, allocations: 4 kB / 0.872 GB, free: 2.273 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.3222, allocations: 11.89 kB / 0.872 GB, free: 2.262 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3222, allocations: 0 / 0.872 GB, free: 2.262 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3222, allocations: 0 / 0.872 GB, free: 2.262 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002989/0.3225, allocations: 271 kB / 0.8723 GB, free: 1.98 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/0.3227, allocations: 164.5 kB / 0.8725 GB, free: 1.801 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.617e-05/0.3227, allocations: 12 kB / 0.8725 GB, free: 1.789 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.3229, allocations: 11.98 kB / 0.8725 GB, free: 1.777 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.644e-05/0.323, allocations: 15.97 kB / 0.8725 GB, free: 1.762 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.3231, allocations: 27.98 kB / 0.8725 GB, free: 1.734 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.000179/0.3232, allocations: 199.1 kB / 0.8727 GB, free: 1.535 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0003388/0.3236, allocations: 47.98 kB / 0.8728 GB, free: 1.488 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.0001601/0.3238, allocations: 117.5 kB / 0.8729 GB, free: 1.363 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0004645/0.3242, allocations: 270.4 kB / 0.8731 GB, free: 1.09 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3242, allocations: 4 kB / 0.8731 GB, free: 1.086 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.3244, allocations: 63.92 kB / 0.8732 GB, free: 1.023 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.3247, allocations: 16.97 kB / 0.8732 GB, free: 1.004 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00062/0.3253, allocations: 269.2 kB / 0.8735 GB, free: 0.7227 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2297/0.555, allocations: 0.7957 MB / 0.8742 GB, free: 165.6 MB / 0.5419 GB Notification: Performance of SimCode: time 1.483e-06/0.555, allocations: 0 / 0.8742 GB, free: 165.6 MB / 0.5419 GB Notification: Performance of Templates: time 0.007475/0.5625, allocations: 4.281 MB / 0.8784 GB, free: 165.4 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe 2>&1)