Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Controls.OBC.CDL.Continuous.Sources.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009411/0.009417, allocations: 101 kB / 15.73 MB, free: 6.039 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.00134/0.00134, allocations: 193.8 kB / 16.68 MB, free: 5.953 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.533/1.533, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.426/2.426, allocations: 390.2 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 68.14 kB / 0.9509 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032/1.034, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths): time 0.00339/1.037, allocations: 1.736 MB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00175/1.039, allocations: 0.6254 MB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.509e-05/1.039, allocations: 0 / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000135/1.039, allocations: 11.47 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001785/1.04, allocations: 36.41 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001053/1.041, allocations: 365.9 kB / 1.091 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009246/1.042, allocations: 0.6325 MB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/1.042, allocations: 30.91 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005533/1.042, allocations: 315.4 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/1.043, allocations: 151.6 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001041/1.043, allocations: 41.31 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.521e-05/1.043, allocations: 40.59 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00019/1.043, allocations: 128.1 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000259/1.043, allocations: 220.8 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009032/1.044, allocations: 0.5979 MB / 1.093 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/1.044, allocations: 0 / 1.093 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.603e-06/1.044, allocations: 0.6562 kB / 1.093 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.477e-05/1.044, allocations: 0 / 1.093 GB, free: 2.805 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001552/1.046, allocations: 0.9048 MB / 1.094 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 7.908e-05/1.046, allocations: 9.062 kB / 1.094 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002177/1.046, allocations: 52.89 kB / 1.094 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006222/1.047, allocations: 341 kB / 1.094 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.181e-05/1.047, allocations: 19.69 kB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/1.047, allocations: 30.17 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/1.048, allocations: 232.1 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/1.048, allocations: 1.406 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.975e-05/1.048, allocations: 6.312 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/1.048, allocations: 6.25 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008601/1.049, allocations: 118.3 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/1.051, allocations: 0.6724 MB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/1.053, allocations: 189.6 kB / 1.095 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008262/1.053, allocations: 114.1 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.843e-05/1.054, allocations: 7.156 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/1.055, allocations: 234.2 kB / 1.096 GB, free: 1 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.024e-06/1.055, allocations: 0 / 1.096 GB, free: 1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002714/1.057, allocations: 498.5 kB / 1.096 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/1.058, allocations: 61.78 kB / 1.096 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007373/1.058, allocations: 444.9 kB / 1.097 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.296e-05/1.058, allocations: 43.66 kB / 1.097 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/1.059, allocations: 100.9 kB / 1.097 GB, free: 484 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/1.059, allocations: 34.34 kB / 1.097 GB, free: 460 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/1.059, allocations: 136.1 kB / 1.097 GB, free: 396 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001038/1.059, allocations: 330.6 kB / 1.097 GB, free: 64 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/1.059, allocations: 134.9 kB / 1.097 GB, free: 20 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004516/1.06, allocations: 203.8 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005403/1.06, allocations: 298.5 kB / 1.098 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.06, allocations: 4 kB / 1.098 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00111/1.062, allocations: 0.5212 MB / 1.098 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001211/1.062, allocations: 93.59 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/1.062, allocations: 2.188 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/1.062, allocations: 2.188 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/1.062, allocations: 24.28 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/1.062, allocations: 7.953 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005234/1.062, allocations: 58.25 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/1.063, allocations: 61.03 kB / 1.099 GB, free: 15.34 MB / 0.8731 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.calTim.firstDaySampling,$PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstHourSampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.hourSampleTrigger,$whenCondition1,calTim.calTim.daySampleTrigger,$whenCondition2,calTim.calTim.epochLastMonth,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.yearIndex,$PRE.calTim.calTim.yearIndex,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,$PRE.calTim.calTim.weekDay,calTim.calTim.hour,$PRE.calTim.calTim.hour,calTim.calTim.day,$PRE.calTim.calTim.day,calTim.calTim.month,$PRE.calTim.calTim.month,calTim.calTim.year,$PRE.calTim.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.0003328/1.063, allocations: 225.2 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.644e-05/1.063, allocations: 37.47 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/1.063, allocations: 43.12 kB / 1.099 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/1.063, allocations: 6.156 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/1.063, allocations: 0 / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/1.063, allocations: 1.359 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/1.066, allocations: 0.783 MB / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/1.066, allocations: 4 kB / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.43e-05/1.066, allocations: 8.438 kB / 1.1 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.066, allocations: 1.688 kB / 1.1 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.059e-05/1.066, allocations: 22.91 kB / 1.1 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/1.066, allocations: 4.469 kB / 1.1 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.066, allocations: 4.641 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/1.068, allocations: 478.8 kB / 1.1 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/1.068, allocations: 249.4 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.419e-05/1.068, allocations: 16.91 kB / 1.1 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000449/1.068, allocations: 36.75 kB / 1.1 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/1.069, allocations: 11.23 kB / 1.1 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/1.069, allocations: 56.02 kB / 1.1 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005433/1.069, allocations: 323.7 kB / 1.101 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/1.069, allocations: 0 / 1.101 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007442/1.07, allocations: 67.52 kB / 1.101 GB, free: 14.14 MB / 0.8731 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.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.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.0002494/1.07, allocations: 130.2 kB / 1.101 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001437/1.072, allocations: 472.5 kB / 1.101 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.072, allocations: 1.375 kB / 1.101 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007432/1.072, allocations: 117.9 kB / 1.101 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004258/1.073, allocations: 41.83 kB / 1.102 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/1.075, allocations: 0.6128 MB / 1.102 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/1.075, allocations: 0.7833 MB / 1.103 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.296e-05/1.075, allocations: 16.53 kB / 1.103 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.16e-05/1.075, allocations: 16.5 kB / 1.103 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/1.075, allocations: 0 / 1.103 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.01473/1.09, allocations: 5.42 MB / 1.108 GB, free: 11.79 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches