Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 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.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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009757/0.009757, allocations: 99.52 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.001543/0.001543, allocations: 200.8 kB / 16.68 MB, free: 5.965 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.678/1.678, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.189/3.189, allocations: 472.6 MB / 0.7453 GB, free: 4.516 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002668/0.002668, allocations: 64.12 kB / 1.07 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4039/0.4066, allocations: 159.9 MB / 1.226 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.002776/0.4094, allocations: 1.743 MB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.4108, allocations: 0.6207 MB / 1.228 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.747e-05/0.4108, allocations: 4 kB / 1.228 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.411, allocations: 11.86 kB / 1.228 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.4111, allocations: 27.8 kB / 1.228 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008408/0.412, allocations: 366.2 kB / 1.228 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005917/0.4126, allocations: 0.6282 MB / 1.229 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.4127, allocations: 40.98 kB / 1.229 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003661/0.4131, allocations: 307.6 kB / 1.229 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002885/0.4134, allocations: 151.5 kB / 1.229 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.4135, allocations: 40 kB / 1.23 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.532e-05/0.4136, allocations: 44 kB / 1.23 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.4137, allocations: 131.6 kB / 1.23 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.4139, allocations: 215 kB / 1.23 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005565/0.4145, allocations: 0.6032 MB / 1.23 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.4145, allocations: 0 / 1.23 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.944e-06/0.4145, allocations: 0 / 1.23 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.4145, allocations: 4 kB / 1.23 GB, free: 4.148 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.001239/0.4158, allocations: 0.9248 MB / 1.231 GB, free: 3.133 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.4158, allocations: 8.031 kB / 1.231 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.4159, allocations: 56.66 kB / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.4163, allocations: 338.5 kB / 1.232 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.426e-05/0.4164, allocations: 24.36 kB / 1.232 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/0.4164, allocations: 28.36 kB / 1.232 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009716/0.4174, allocations: 239.9 kB / 1.232 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.4174, allocations: 192 / 1.232 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.4175, allocations: 7.938 kB / 1.232 GB, free: 2.402 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.4175, allocations: 4 kB / 1.232 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007349/0.4182, allocations: 111.9 kB / 1.232 GB, free: 2.289 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.4195, allocations: 0.6759 MB / 1.233 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.4205, allocations: 186.5 kB / 1.233 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007242/0.4212, allocations: 117 kB / 1.233 GB, free: 1.254 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.4213, allocations: 0 / 1.233 GB, free: 1.254 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009655/0.4222, allocations: 239.1 kB / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.4223, allocations: 0 / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.00251/0.4248, allocations: 497.3 kB / 1.234 GB, free: 0.5156 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.4248, allocations: 63.39 kB / 1.234 GB, free: 452 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000509/0.4254, allocations: 441.9 kB / 1.234 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.174e-05/0.4254, allocations: 37.7 kB / 1.234 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.4256, allocations: 105.3 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.4257, allocations: 47.59 kB / 1.234 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.4259, allocations: 137.5 kB / 1.235 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4261, allocations: 330.8 kB / 1.235 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.4264, allocations: 135.9 kB / 1.235 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.4267, allocations: 198.4 kB / 1.235 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.4271, allocations: 294.9 kB / 1.236 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4271, allocations: 0 / 1.236 GB, free: 14.66 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008793/0.428, allocations: 0.5242 MB / 1.236 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.597e-05/0.4281, allocations: 99.41 kB / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4281, allocations: 0 / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.4282, allocations: 4 kB / 1.236 GB, free: 14 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.4283, allocations: 23.98 kB / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.4284, allocations: 3.938 kB / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004699/0.4288, allocations: 63.78 kB / 1.236 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.861e-05/0.4289, allocations: 59.97 kB / 1.236 GB, free: 13.86 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.0003172/0.4293, allocations: 228.1 kB / 1.236 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.4293, allocations: 43.7 kB / 1.237 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.142e-05/0.4294, allocations: 43.78 kB / 1.237 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.4294, allocations: 0 / 1.237 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.4294, allocations: 0 / 1.237 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.4294, allocations: 0 / 1.237 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.4315, allocations: 0.7899 MB / 1.237 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.4316, allocations: 4 kB / 1.237 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.862e-05/0.4316, allocations: 7.938 kB / 1.237 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4316, allocations: 0 / 1.237 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/0.4316, allocations: 19.97 kB / 1.237 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4317, allocations: 3.938 kB / 1.237 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4317, allocations: 4 kB / 1.237 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.4334, allocations: 479.4 kB / 1.238 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/0.4337, allocations: 244.7 kB / 1.238 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.599e-05/0.4338, allocations: 19.98 kB / 1.238 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.4342, allocations: 35.91 kB / 1.238 GB, free: 11.86 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.385e-05/0.4343, allocations: 7.984 kB / 1.238 GB, free: 11.85 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/0.4344, allocations: 59.97 kB / 1.238 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003838/0.4348, allocations: 315.1 kB / 1.238 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4348, allocations: 0 / 1.238 GB, free: 11.49 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005628/0.4354, allocations: 79.88 kB / 1.239 GB, free: 11.41 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.0002738/0.4356, allocations: 135.1 kB / 1.239 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001439/0.4371, allocations: 466.5 kB / 1.239 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.867e-05/0.4371, allocations: 384 / 1.239 GB, free: 10.79 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007352/0.4379, allocations: 130.3 kB / 1.239 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004603/0.4383, allocations: 48.89 kB / 1.239 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.4399, allocations: 0.6014 MB / 1.24 GB, free: 9.988 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.4403, allocations: 0.7903 MB / 1.241 GB, free: 9.172 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.45e-05/0.4404, allocations: 9.438 kB / 1.241 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.366e-05/0.4404, allocations: 15.42 kB / 1.241 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of SimCode: time 1.122e-06/0.4404, allocations: 7.938 kB / 1.241 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of Templates: time 0.01333/0.4538, allocations: 5.411 MB / 1.246 GB, free: 3.633 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches