Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 108.6 kB / 16.41 MB, free: 6.496 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.001271/0.001271, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.262/1.262, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.415/2.415, allocations: 469.4 MB / 0.7428 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 68.11 kB / 1.066 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7383/0.7397, allocations: 159.1 MB / 1.221 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002985/0.7427, allocations: 1.744 MB / 1.223 GB, free: 0.6211 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00131/0.744, allocations: 0.6247 MB / 1.223 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.071e-05/0.7441, allocations: 4 kB / 1.223 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.7442, allocations: 11.86 kB / 1.223 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.7444, allocations: 35.7 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008404/0.7452, allocations: 358.7 kB / 1.224 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006501/0.7459, allocations: 0.636 MB / 1.224 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.746, allocations: 33.09 kB / 1.224 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004301/0.7464, allocations: 315.6 kB / 1.225 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003395/0.7468, allocations: 167.3 kB / 1.225 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.7469, allocations: 40 kB / 1.225 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.747, allocations: 40 kB / 1.225 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.7472, allocations: 123.7 kB / 1.225 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.7474, allocations: 218.9 kB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005064/0.7479, allocations: 0.5975 MB / 1.226 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7479, allocations: 4 kB / 1.226 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.041e-06/0.7479, allocations: 0 / 1.226 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.927e-06/0.7479, allocations: 4 kB / 1.226 GB, free: 13.44 MB / 0.9512 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.001309/0.7493, allocations: 0.9053 MB / 1.227 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.7493, allocations: 8.625 kB / 1.227 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.7494, allocations: 56.45 kB / 1.227 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.7499, allocations: 334.1 kB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.7499, allocations: 20.36 kB / 1.227 GB, free: 12 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.558e-05/0.75, allocations: 28.38 kB / 1.227 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.751, allocations: 236.2 kB / 1.227 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.7511, allocations: 4.125 kB / 1.227 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.7511, allocations: 7.922 kB / 1.227 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.7511, allocations: 4 kB / 1.227 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007991/0.7519, allocations: 111.9 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.7532, allocations: 0.6758 MB / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.7542, allocations: 182.5 kB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007656/0.755, allocations: 112.8 kB / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.7551, allocations: 0 / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009758/0.756, allocations: 247 kB / 1.229 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 2.505e-06/0.756, allocations: 0 / 1.229 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16): time 0.00262/0.7587, allocations: 495.8 kB / 1.229 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/0.7587, allocations: 67.38 kB / 1.229 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004501/0.7592, allocations: 441.8 kB / 1.23 GB, free: 9.316 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 7.335e-05/0.7593, allocations: 45.69 kB / 1.23 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.728e-05/0.7594, allocations: 97.44 kB / 1.23 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.614e-05/0.7594, allocations: 35.47 kB / 1.23 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/0.7597, allocations: 137.3 kB / 1.23 GB, free: 8.992 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.7598, allocations: 334.8 kB / 1.23 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.7601, allocations: 135.9 kB / 1.23 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.7604, allocations: 193.9 kB / 1.23 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.7608, allocations: 302.6 kB / 1.231 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.7608, allocations: 0 / 1.231 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008055/0.7616, allocations: 0.5204 MB / 1.231 GB, free: 7.445 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.7617, allocations: 96.94 kB / 1.231 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.7617, allocations: 4 kB / 1.231 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.7617, allocations: 0 / 1.231 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.7619, allocations: 23.92 kB / 1.231 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.7619, allocations: 4 kB / 1.231 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000487/0.7624, allocations: 59.83 kB / 1.231 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.09e-05/0.7625, allocations: 67.95 kB / 1.232 GB, free: 7.184 MB / 0.9512 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.0002616/0.7628, allocations: 224.8 kB / 1.232 GB, free: 6.957 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.182e-05/0.7629, allocations: 35.53 kB / 1.232 GB, free: 6.922 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.922e-05/0.7629, allocations: 39.78 kB / 1.232 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.763, allocations: 4 kB / 1.232 GB, free: 6.883 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.892e-06/0.763, allocations: 3.938 kB / 1.232 GB, free: 6.879 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.763, allocations: 0 / 1.232 GB, free: 6.879 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/0.7652, allocations: 0.7873 MB / 1.233 GB, free: 6.031 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.7652, allocations: 0 / 1.233 GB, free: 6.031 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.669e-05/0.7653, allocations: 7.938 kB / 1.233 GB, free: 6.023 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.7653, allocations: 4 kB / 1.233 GB, free: 6.02 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.534e-05/0.7653, allocations: 23.97 kB / 1.233 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.7653, allocations: 7.938 kB / 1.233 GB, free: 5.988 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7653, allocations: 0 / 1.233 GB, free: 5.988 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.7671, allocations: 481.1 kB / 1.233 GB, free: 5.504 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003088/0.7674, allocations: 248.3 kB / 1.233 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.688e-05/0.7675, allocations: 16 kB / 1.233 GB, free: 5.227 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004798/0.768, allocations: 31.91 kB / 1.233 GB, free: 5.195 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.19e-05/0.7681, allocations: 15.97 kB / 1.233 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.245e-05/0.7681, allocations: 59.97 kB / 1.233 GB, free: 5.121 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003214/0.7685, allocations: 315.1 kB / 1.234 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.323e-06/0.7685, allocations: 0 / 1.234 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004105/0.7689, allocations: 75.92 kB / 1.234 GB, free: 4.738 MB / 0.9512 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.0001947/0.7691, allocations: 127.2 kB / 1.234 GB, free: 4.602 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001388/0.7705, allocations: 470.5 kB / 1.234 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7705, allocations: 384 / 1.234 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007872/0.7713, allocations: 127.9 kB / 1.235 GB, free: 3.992 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.7717, allocations: 35.19 kB / 1.235 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.7733, allocations: 0.6478 MB / 1.235 GB, free: 3.285 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.7737, allocations: 0.7903 MB / 1.236 GB, free: 2.469 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.974e-05/0.7738, allocations: 23.36 kB / 1.236 GB, free: 2.449 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.7738, allocations: 0 / 1.236 GB, free: 2.449 MB / 0.9512 GB Notification: Performance of Templates: time 0.006598/0.7804, allocations: 4.082 MB / 1.24 GB, free: 14.32 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time