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: "" <> buildModelFMU(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonthsPlus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonthsPlus",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 1.076/1.076, allocations: 141.8 MB / 149.1 MB, free: 1.738 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.001142/0.001142, allocations: 185.2 kB / 182 MB, free: 1.148 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.219/1.219, allocations: 221.3 MB / 436 MB, free: 5.824 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.0009468/0.0009468, allocations: 92.55 kB / 0.507 GB, free: 2.5 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002785/0.002785, allocations: 281.4 kB / 0.5885 GB, free: 47.51 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2938/0.2967, allocations: 89.62 MB / 0.676 GB, free: 59.76 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.4218, allocations: 82.79 MB / 0.7568 GB, free: 0.8555 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.5544, allocations: 109.8 MB / 0.864 GB, free: 2.938 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.5546, allocations: 73.98 kB / 0.8641 GB, free: 2.867 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.2345/0.7891, allocations: 4.735 MB / 0.8687 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.7892, allocations: 12 kB / 0.8687 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.094e-05/0.7892, allocations: 30.88 kB / 0.8687 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.7895, allocations: 253.5 kB / 0.869 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.7895, allocations: 3.875 kB / 0.869 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.116e-05/0.7896, allocations: 12.38 kB / 0.869 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001005/0.7897, allocations: 45.06 kB / 0.869 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000189/0.7899, allocations: 142.6 kB / 0.8692 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.7899, allocations: 3.719 kB / 0.8692 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.79, allocations: 7.938 kB / 0.8692 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.79, allocations: 0 / 0.8692 GB, free: 109.1 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002602/0.7902, allocations: 298.5 kB / 0.8695 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.7904, allocations: 114.2 kB / 0.8696 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.494e-05/0.7905, allocations: 46.17 kB / 0.8696 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.7905, allocations: 3.562 kB / 0.8696 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.7908, allocations: 182.3 kB / 0.8698 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=18): time 1.693e-06/0.7908, allocations: 5.219 kB / 0.8698 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of matching and sorting (n=18): time 0.0003017/0.7911, allocations: 167.7 kB / 0.87 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.894e-05/0.7911, allocations: 56.97 kB / 0.87 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.7913, allocations: 250.4 kB / 0.8703 GB, free: 108.6 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.7914, allocations: 32.7 kB / 0.8703 GB, free: 108.6 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 4.303e-05/0.7914, allocations: 96.06 kB / 0.8704 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.7915, allocations: 49.75 kB / 0.8704 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/0.7915, allocations: 0 / 0.8704 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 4.884e-05/0.7916, allocations: 322 kB / 0.8707 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.7917, allocations: 92.11 kB / 0.8708 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.792, allocations: 129.7 kB / 0.8709 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.7921, allocations: 78.81 kB / 0.871 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.7921, allocations: 0.5938 kB / 0.871 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005537/0.7927, allocations: 287.7 kB / 0.8713 GB, free: 108 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.7927, allocations: 4.938 kB / 0.8713 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.7927, allocations: 1.344 kB / 0.8713 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.7928, allocations: 4.562 kB / 0.8713 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.7929, allocations: 27.69 kB / 0.8713 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.7929, allocations: 6.828 kB / 0.8713 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.7933, allocations: 46.66 kB / 0.8714 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/0.7934, allocations: 55.81 kB / 0.8714 GB, free: 108 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.0001045/0.7936, allocations: 127.3 kB / 0.8716 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.7936, allocations: 32.77 kB / 0.8716 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.253e-05/0.7937, allocations: 31.88 kB / 0.8716 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.7937, allocations: 2.219 kB / 0.8716 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.7937, allocations: 0 / 0.8716 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.7937, allocations: 1.406 kB / 0.8716 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005859/0.7943, allocations: 479.9 kB / 0.8721 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.7943, allocations: 4.703 kB / 0.8721 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.725e-05/0.7944, allocations: 14.48 kB / 0.8721 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.7944, allocations: 2.125 kB / 0.8721 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.7944, allocations: 13.55 kB / 0.8721 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.7944, allocations: 4.766 kB / 0.8721 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7944, allocations: 0 / 0.8721 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002672/0.7947, allocations: 264.2 kB / 0.8724 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000298/0.795, allocations: 0.6421 MB / 0.873 GB, free: 106.9 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.7952, allocations: 160.6 kB / 0.8732 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.259e-05/0.7952, allocations: 9.125 kB / 0.8732 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.7954, allocations: 9.141 kB / 0.8732 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.805e-05/0.7955, allocations: 13.22 kB / 0.8732 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.7955, allocations: 31.64 kB / 0.8732 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001557/0.7957, allocations: 202.1 kB / 0.8734 GB, free: 106.7 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008877/0.7966, allocations: 45.22 kB / 0.8734 GB, free: 106.7 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.0001193/0.7967, allocations: 114.9 kB / 0.8736 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0004129/0.7971, allocations: 264.7 kB / 0.8738 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.7972, allocations: 0 / 0.8738 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.7973, allocations: 73.06 kB / 0.8739 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002245/0.7975, allocations: 24.84 kB / 0.8739 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005444/0.7981, allocations: 265.4 kB / 0.8742 GB, free: 106.4 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003287/0.7984, allocations: 0.8018 MB / 0.8749 GB, free: 105.7 MB / 0.5419 GB Notification: Performance of SimCode: time 2.71e-07/0.7984, allocations: 0 / 0.8749 GB, free: 105.7 MB / 0.5419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonthsPlus_fmu --startTime=172801 --stopTime=345601 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Validation_CalendarTimeMonthsPlus.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe 2>&1)