Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007083/0.007083, allocations: 98.52 kB / 15.73 MB, free: 6.004 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.001384/0.001384, allocations: 193.1 kB / 16.67 MB, free: 5.934 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.881/2.881, allocations: 472.6 MB / 0.7453 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.00128, allocations: 64.12 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4141, allocations: 159.9 MB / 1.226 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.00328/0.4175, allocations: 1.734 MB / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.4191, allocations: 0.6302 MB / 1.228 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.283e-05/0.4192, allocations: 4 kB / 1.228 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.4193, allocations: 11.86 kB / 1.228 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.4195, allocations: 35.78 kB / 1.228 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009228/0.4204, allocations: 362.8 kB / 1.228 GB, free: 6.355 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0006645/0.4211, allocations: 0.636 MB / 1.229 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.4212, allocations: 37 kB / 1.229 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003841/0.4216, allocations: 315.6 kB / 1.229 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003019/0.4219, allocations: 163.5 kB / 1.229 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.4221, allocations: 40 kB / 1.229 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.4222, allocations: 40 kB / 1.23 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.4223, allocations: 123.6 kB / 1.23 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002121/0.4225, allocations: 211 kB / 1.23 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006192/0.4232, allocations: 0.5994 MB / 1.23 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.4232, allocations: 4 kB / 1.23 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4232, allocations: 0 / 1.23 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.4232, allocations: 4 kB / 1.23 GB, free: 4.199 MB / 0.9825 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.001343/0.4245, allocations: 0.917 MB / 1.231 GB, free: 3.191 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.4246, allocations: 8.031 kB / 1.231 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.4247, allocations: 64.64 kB / 1.231 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000442/0.4252, allocations: 342.5 kB / 1.232 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.578e-05/0.4252, allocations: 20.36 kB / 1.232 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.01e-05/0.4253, allocations: 28.38 kB / 1.232 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009626/0.4263, allocations: 230 kB / 1.232 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.4263, allocations: 192 / 1.232 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.4264, allocations: 11.92 kB / 1.232 GB, free: 2.457 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.4264, allocations: 4 kB / 1.232 GB, free: 2.453 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007261/0.4271, allocations: 119.8 kB / 1.232 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.4283, allocations: 0.6759 MB / 1.233 GB, free: 1.609 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009939/0.4294, allocations: 186.4 kB / 1.233 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007201/0.4301, allocations: 113 kB / 1.233 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.4301, allocations: 4 kB / 1.233 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009484/0.4311, allocations: 231.2 kB / 1.233 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.804e-06/0.4311, allocations: 0 / 1.233 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.002496/0.4336, allocations: 0.4895 MB / 1.234 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.4337, allocations: 59.39 kB / 1.234 GB, free: 0.4961 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004759/0.4341, allocations: 445.9 kB / 1.234 GB, free: 48 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.568e-05/0.4342, allocations: 41.69 kB / 1.234 GB, free: 0 / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.4343, allocations: 109.3 kB / 1.234 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.4344, allocations: 35.64 kB / 1.234 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.4346, allocations: 145.4 kB / 1.235 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.4347, allocations: 330.8 kB / 1.235 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002948/0.435, allocations: 139.9 kB / 1.235 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.4354, allocations: 186.8 kB / 1.235 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003987/0.4358, allocations: 298.8 kB / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4358, allocations: 0 / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008795/0.4367, allocations: 0.5261 MB / 1.236 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.4368, allocations: 95.38 kB / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.4368, allocations: 4 kB / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.4368, allocations: 0 / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.437, allocations: 23.92 kB / 1.236 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.437, allocations: 7.984 kB / 1.236 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004598/0.4375, allocations: 59.78 kB / 1.236 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.33e-05/0.4376, allocations: 60.02 kB / 1.236 GB, free: 13.91 MB / 0.9981 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.0002746/0.4378, allocations: 220.8 kB / 1.236 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.74e-05/0.4379, allocations: 35.77 kB / 1.236 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.567e-05/0.438, allocations: 47.77 kB / 1.237 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.438, allocations: 4 kB / 1.237 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.438, allocations: 0 / 1.237 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.438, allocations: 0 / 1.237 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.4402, allocations: 0.7939 MB / 1.237 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4402, allocations: 0 / 1.237 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.501e-05/0.4403, allocations: 4 kB / 1.237 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.4403, allocations: 0 / 1.237 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.493e-05/0.4403, allocations: 27.97 kB / 1.237 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.4404, allocations: 7.938 kB / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4404, allocations: 0 / 1.237 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.4421, allocations: 487.4 kB / 1.238 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002838/0.4424, allocations: 240.7 kB / 1.238 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.16e-05/0.4425, allocations: 20 kB / 1.238 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004565/0.4429, allocations: 31.91 kB / 1.238 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.443, allocations: 7.984 kB / 1.238 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.371e-05/0.4431, allocations: 63.97 kB / 1.238 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003808/0.4435, allocations: 315.1 kB / 1.238 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4435, allocations: 0 / 1.238 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003897/0.4439, allocations: 75.88 kB / 1.239 GB, free: 11.46 MB / 0.9981 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.0002548/0.4441, allocations: 131.2 kB / 1.239 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001325/0.4454, allocations: 472.5 kB / 1.239 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4455, allocations: 384 / 1.239 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000746/0.4462, allocations: 135.8 kB / 1.239 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.4466, allocations: 35.36 kB / 1.239 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.4481, allocations: 0.6015 MB / 1.24 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.4486, allocations: 0.7902 MB / 1.241 GB, free: 9.23 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.995e-05/0.4487, allocations: 17.41 kB / 1.241 GB, free: 9.215 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.416e-05/0.4488, allocations: 15.44 kB / 1.241 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.4488, allocations: 0 / 1.241 GB, free: 9.199 MB / 0.9981 GB Notification: Performance of Templates: time 0.009421/0.4582, allocations: 5.419 MB / 1.246 GB, free: 3.695 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches