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: "" <> buildModelFMU(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonths",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonths",fmuType="me",version="2.0",platforms={"static"}) [: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.7455/0.7455, allocations: 141.8 MB / 149.1 MB, free: 3.133 MB / 114.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 188.1 kB / 181.9 MB, free: 4.27 MB / 146.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 221.4 MB / 436 MB, free: 4.223 MB / 338.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009785/0.0009785, allocations: 95.73 kB / 0.507 GB, free: 2.324 MB / 386.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001764/0.001764, allocations: 262.2 kB / 0.5884 GB, free: 14.93 MB / 482.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2671/0.2689, allocations: 89.64 MB / 0.676 GB, free: 138.8 MB / 498.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.3957, allocations: 82.78 MB / 0.7568 GB, free: 56.48 MB / 498.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3709/0.7667, allocations: 109.7 MB / 0.8639 GB, free: 1.621 MB / 498.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.7669, allocations: 76.25 kB / 0.864 GB, free: 1.582 MB / 498.9 MB 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.01345/0.7804, allocations: 4.722 MB / 0.8686 GB, free: 13.44 MB / 0.5028 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.7805, allocations: 8 kB / 0.8686 GB, free: 13.43 MB / 0.5028 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.7806, allocations: 39.61 kB / 0.8687 GB, free: 13.39 MB / 0.5028 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.781, allocations: 249.1 kB / 0.8689 GB, free: 13.12 MB / 0.5028 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.781, allocations: 4 kB / 0.8689 GB, free: 13.11 MB / 0.5028 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.568e-05/0.7811, allocations: 19.25 kB / 0.8689 GB, free: 13.1 MB / 0.5028 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001157/0.7812, allocations: 46.36 kB / 0.869 GB, free: 13.06 MB / 0.5028 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.7814, allocations: 140.3 kB / 0.8691 GB, free: 12.94 MB / 0.5028 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.7815, allocations: 0 / 0.8691 GB, free: 12.94 MB / 0.5028 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.7815, allocations: 2.5 kB / 0.8691 GB, free: 12.94 MB / 0.5028 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.7815, allocations: 4 kB / 0.8691 GB, free: 12.94 MB / 0.5028 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.7818, allocations: 298.8 kB / 0.8694 GB, free: 12.66 MB / 0.5028 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.782, allocations: 117 kB / 0.8695 GB, free: 12.56 MB / 0.5028 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.074e-05/0.7821, allocations: 53.03 kB / 0.8696 GB, free: 12.52 MB / 0.5028 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.7822, allocations: 0 / 0.8696 GB, free: 12.52 MB / 0.5028 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003138/0.7825, allocations: 176.6 kB / 0.8697 GB, free: 12.36 MB / 0.5028 GB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.7825, allocations: 0 / 0.8697 GB, free: 12.36 MB / 0.5028 GB Notification: Performance of matching and sorting (n=18): time 0.0003566/0.7829, allocations: 180 kB / 0.8699 GB, free: 12.2 MB / 0.5028 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.7829, allocations: 58.84 kB / 0.87 GB, free: 12.14 MB / 0.5028 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.7831, allocations: 244.3 kB / 0.8702 GB, free: 11.93 MB / 0.5028 GB Notification: Performance of collectPreVariables (initialization): time 5.036e-05/0.7832, allocations: 37.27 kB / 0.8702 GB, free: 11.89 MB / 0.5028 GB Notification: Performance of collectInitialEqns (initialization): time 9.35e-05/0.7833, allocations: 89.12 kB / 0.8703 GB, free: 11.8 MB / 0.5028 GB Notification: Performance of collectInitialBindings (initialization): time 5.054e-05/0.7833, allocations: 50.08 kB / 0.8704 GB, free: 11.76 MB / 0.5028 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.7834, allocations: 4 kB / 0.8704 GB, free: 11.76 MB / 0.5028 GB Notification: Performance of setup shared object (initialization): time 8.748e-05/0.7835, allocations: 318.5 kB / 0.8707 GB, free: 11.44 MB / 0.5028 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.7837, allocations: 93.95 kB / 0.8708 GB, free: 11.38 MB / 0.5028 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.7839, allocations: 133 kB / 0.8709 GB, free: 11.26 MB / 0.5028 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.784, allocations: 77.12 kB / 0.871 GB, free: 11.2 MB / 0.5028 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.784, allocations: 4 kB / 0.871 GB, free: 11.2 MB / 0.5028 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005313/0.7846, allocations: 276.1 kB / 0.8712 GB, free: 10.97 MB / 0.5028 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.7846, allocations: 4 kB / 0.8712 GB, free: 10.97 MB / 0.5028 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.7846, allocations: 4.188 kB / 0.8712 GB, free: 10.96 MB / 0.5028 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.7846, allocations: 7.938 kB / 0.8712 GB, free: 10.96 MB / 0.5028 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.7848, allocations: 27.03 kB / 0.8713 GB, free: 10.93 MB / 0.5028 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.7848, allocations: 7.938 kB / 0.8713 GB, free: 10.93 MB / 0.5028 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.7852, allocations: 47.88 kB / 0.8713 GB, free: 10.88 MB / 0.5028 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.201e-05/0.7853, allocations: 54.34 kB / 0.8714 GB, free: 10.83 MB / 0.5028 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.0001153/0.7854, allocations: 118.7 kB / 0.8715 GB, free: 10.71 MB / 0.5028 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.011e-05/0.7855, allocations: 31.56 kB / 0.8715 GB, free: 10.68 MB / 0.5028 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.796e-05/0.7855, allocations: 31.22 kB / 0.8715 GB, free: 10.66 MB / 0.5028 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.7855, allocations: 4 kB / 0.8715 GB, free: 10.66 MB / 0.5028 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.7855, allocations: 7.938 kB / 0.8716 GB, free: 10.65 MB / 0.5028 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.7856, allocations: 3.984 kB / 0.8716 GB, free: 10.64 MB / 0.5028 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005995/0.7862, allocations: 482.8 kB / 0.872 GB, free: 10.19 MB / 0.5028 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.7862, allocations: 0 / 0.872 GB, free: 10.19 MB / 0.5028 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.166e-05/0.7862, allocations: 4 kB / 0.872 GB, free: 10.18 MB / 0.5028 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.7862, allocations: 7.938 kB / 0.872 GB, free: 10.18 MB / 0.5028 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.7863, allocations: 19.12 kB / 0.8721 GB, free: 10.16 MB / 0.5028 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.7863, allocations: 0 / 0.8721 GB, free: 10.16 MB / 0.5028 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7863, allocations: 4 kB / 0.8721 GB, free: 10.16 MB / 0.5028 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003016/0.7866, allocations: 263.2 kB / 0.8723 GB, free: 9.91 MB / 0.5028 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004346/0.7871, allocations: 0.6385 MB / 0.8729 GB, free: 9.281 MB / 0.5028 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.7873, allocations: 153.9 kB / 0.8731 GB, free: 9.125 MB / 0.5028 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.185e-05/0.7873, allocations: 11.92 kB / 0.8731 GB, free: 9.117 MB / 0.5028 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.7875, allocations: 12 kB / 0.8731 GB, free: 9.105 MB / 0.5028 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.679e-05/0.7876, allocations: 19.78 kB / 0.8731 GB, free: 9.09 MB / 0.5028 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/0.7877, allocations: 31.92 kB / 0.8731 GB, free: 9.059 MB / 0.5028 GB Notification: Performance of sort global known variables: time 0.0001731/0.7879, allocations: 205.2 kB / 0.8733 GB, free: 8.891 MB / 0.5028 GB Notification: Performance of remove unused functions: time 0.0009786/0.7888, allocations: 40 kB / 0.8734 GB, free: 8.852 MB / 0.5028 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.0001642/0.789, allocations: 119.4 kB / 0.8735 GB, free: 8.727 MB / 0.5028 GB Notification: Performance of simCode: created initialization part: time 0.0004576/0.7895, allocations: 272.7 kB / 0.8738 GB, free: 8.508 MB / 0.5028 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7895, allocations: 0 / 0.8738 GB, free: 8.508 MB / 0.5028 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.7896, allocations: 67.03 kB / 0.8738 GB, free: 8.457 MB / 0.5028 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.7899, allocations: 12.47 kB / 0.8738 GB, free: 8.445 MB / 0.5028 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005623/0.7904, allocations: 279 kB / 0.8741 GB, free: 8.184 MB / 0.5028 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005151/0.791, allocations: 0.7989 MB / 0.8749 GB, free: 7.363 MB / 0.5028 GB Notification: Performance of SimCode: time 2.61e-07/0.791, allocations: 0 / 0.8749 GB, free: 7.363 MB / 0.5028 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonths_fmu --startTime=172800 --stopTime=345600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonths.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonths.pipe 2>&1)