Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.conf.json 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/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths") translateModel(Buildings.Utilities.Time.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001167, allocations: 107.7 kB / 16.41 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 189.7 kB / 17.35 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.658/2.658, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001477, allocations: 63.89 kB / 1.055 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8306/0.832, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonths): time 0.003015/0.8351, allocations: 1.519 MB / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.8365, allocations: 0.5519 MB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.902e-05/0.8367, allocations: 3.938 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.8368, allocations: 11.88 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.837, allocations: 27.84 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009816/0.838, allocations: 306.6 kB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006423/0.8386, allocations: 0.4995 MB / 1.211 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.704e-05/0.8387, allocations: 15.94 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005144/0.8392, allocations: 267.6 kB / 1.211 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.8396, allocations: 143.6 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.8397, allocations: 28 kB / 1.212 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.8398, allocations: 24 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.84, allocations: 111.7 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.8402, allocations: 187 kB / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005114/0.8407, allocations: 428.4 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.8408, allocations: 0 / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8408, allocations: 4 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.8408, allocations: 0 / 1.212 GB, free: 9.578 MB / 0.9356 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.001659/0.8425, allocations: 0.8664 MB / 1.213 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.8425, allocations: 8.031 kB / 1.213 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.8427, allocations: 52.47 kB / 1.213 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.8431, allocations: 302.3 kB / 1.214 GB, free: 8.227 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.293e-05/0.8431, allocations: 20.36 kB / 1.214 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.885e-05/0.8432, allocations: 24.38 kB / 1.214 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.8443, allocations: 218 kB / 1.214 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.8443, allocations: 192 / 1.214 GB, free: 7.965 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.8444, allocations: 3.938 kB / 1.214 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.8444, allocations: 3.938 kB / 1.214 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008831/0.8453, allocations: 111.8 kB / 1.214 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005235/0.8458, allocations: 393.1 kB / 1.214 GB, free: 7.414 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.847, allocations: 178.4 kB / 1.214 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008358/0.8478, allocations: 112.8 kB / 1.215 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.8479, allocations: 4 kB / 1.215 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.849, allocations: 222.1 kB / 1.215 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 2.856e-06/0.849, allocations: 0 / 1.215 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002855/0.8519, allocations: 488.7 kB / 1.215 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.8519, allocations: 63.39 kB / 1.215 GB, free: 6.328 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005064/0.8524, allocations: 405.9 kB / 1.216 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 8.606e-05/0.8525, allocations: 45.69 kB / 1.216 GB, free: 5.871 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.8527, allocations: 93.44 kB / 1.216 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.8527, allocations: 39.45 kB / 1.216 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.853, allocations: 133.3 kB / 1.216 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.8531, allocations: 318.8 kB / 1.216 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.8534, allocations: 119.9 kB / 1.216 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.8537, allocations: 167.2 kB / 1.217 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004193/0.8542, allocations: 278.8 kB / 1.217 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.8542, allocations: 0 / 1.217 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008558/0.855, allocations: 487.1 kB / 1.217 GB, free: 4.184 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.995e-05/0.8551, allocations: 99.25 kB / 1.217 GB, free: 4.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.8551, allocations: 4.188 kB / 1.217 GB, free: 4.07 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.8552, allocations: 4 kB / 1.217 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.8554, allocations: 23.92 kB / 1.217 GB, free: 4.043 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.8554, allocations: 4 kB / 1.217 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005468/0.8559, allocations: 63.78 kB / 1.218 GB, free: 3.977 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-05/0.856, allocations: 59.98 kB / 1.218 GB, free: 3.918 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (calTim.firstHourSampling,$PRE.calTim.firstHourSampling,calTim.firstDaySampling,$PRE.calTim.firstDaySampling,calTim.daySampleTrigger,$whenCondition1,calTim.hourSampleTrigger,$whenCondition2,calTim.epochLastMonth,$PRE.calTim.epochLastMonth,calTim.yearIndex,$PRE.calTim.yearIndex,calTim.daysSinceEpoch,$PRE.calTim.daysSinceEpoch,calTim.weekDay,$PRE.calTim.weekDay,calTim.hour,$PRE.calTim.hour,calTim.day,$PRE.calTim.day,calTim.month,$PRE.calTim.month,calTim.year,$PRE.calTim.year) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002478/0.8563, allocations: 192 kB / 1.218 GB, free: 3.723 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.772e-05/0.8563, allocations: 39.47 kB / 1.218 GB, free: 3.684 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.994e-05/0.8564, allocations: 47.73 kB / 1.218 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.8564, allocations: 0 / 1.218 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.8564, allocations: 0 / 1.218 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.8565, allocations: 0 / 1.218 GB, free: 3.637 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.8589, allocations: 0.7482 MB / 1.219 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.8589, allocations: 0 / 1.219 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.156e-05/0.8589, allocations: 7.984 kB / 1.219 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.8589, allocations: 0 / 1.219 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.859, allocations: 15.98 kB / 1.219 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.859, allocations: 3.984 kB / 1.219 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.859, allocations: 3.938 kB / 1.219 GB, free: 2.797 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.8609, allocations: 476.5 kB / 1.219 GB, free: 2.316 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.8612, allocations: 208.4 kB / 1.219 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.574e-05/0.8613, allocations: 15.98 kB / 1.219 GB, free: 2.078 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005397/0.8619, allocations: 31.97 kB / 1.219 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/0.8619, allocations: 7.984 kB / 1.219 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.648e-05/0.862, allocations: 59.95 kB / 1.219 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003348/0.8623, allocations: 299.1 kB / 1.22 GB, free: 1.691 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8623, allocations: 0 / 1.22 GB, free: 1.691 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000408/0.8627, allocations: 64 kB / 1.22 GB, free: 1.629 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calTim.hourSampleTrigger,calTim.daySampleTrigger,$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.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,calTim.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001608/0.8629, allocations: 115.2 kB / 1.22 GB, free: 1.504 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001548/0.8645, allocations: 441.5 kB / 1.22 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.8645, allocations: 0 / 1.22 GB, free: 1.051 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0008937/0.8654, allocations: 132.2 kB / 1.22 GB, free: 0.9219 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.8658, allocations: 25.48 kB / 1.22 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.8674, allocations: 0.5885 MB / 1.221 GB, free: 284 kB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.8678, allocations: 0.7708 MB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.202e-05/0.8679, allocations: 15.44 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of SimCode: time 7.01e-07/0.8679, allocations: 4 kB / 1.222 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of Templates: time 0.006682/0.8746, allocations: 3.683 MB / 1.225 GB, free: 11.73 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Validation_CalendarTimeMonths.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches