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 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.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.001269/0.001269, allocations: 113.8 kB / 16.41 MB, free: 6.008 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.001192/0.001192, allocations: 185.1 kB / 17.34 MB, free: 5.629 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.28/1.28, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.433/2.433, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 71.84 kB / 1.055 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7043/0.7057, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.002619/0.7083, allocations: 1.738 MB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.7096, allocations: 0.6307 MB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.059e-05/0.7097, allocations: 0 / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.848e-05/0.7098, allocations: 15.81 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.7099, allocations: 31.78 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007397/0.7107, allocations: 370.2 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005915/0.7113, allocations: 0.6321 MB / 1.212 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.7114, allocations: 37.09 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003703/0.7118, allocations: 307.6 kB / 1.212 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002751/0.712, allocations: 163.3 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.74e-05/0.7121, allocations: 40 kB / 1.212 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.548e-05/0.7122, allocations: 40 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.7124, allocations: 123.7 kB / 1.212 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.7126, allocations: 219 kB / 1.213 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.7131, allocations: 0.5897 MB / 1.213 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.7131, allocations: 4 kB / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7131, allocations: 7.938 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.7131, allocations: 0 / 1.213 GB, free: 8.648 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001256/0.7144, allocations: 0.9092 MB / 1.214 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.7144, allocations: 8.031 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.7145, allocations: 52.47 kB / 1.214 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.7149, allocations: 334.2 kB / 1.215 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.586e-05/0.715, allocations: 24.36 kB / 1.215 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.981e-05/0.7151, allocations: 32.36 kB / 1.215 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.7162, allocations: 233.9 kB / 1.215 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.7162, allocations: 192 / 1.215 GB, free: 6.934 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.7162, allocations: 11.88 kB / 1.215 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.7162, allocations: 4 kB / 1.215 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008335/0.7171, allocations: 119.9 kB / 1.215 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.7183, allocations: 0.6603 MB / 1.216 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.7194, allocations: 182.5 kB / 1.216 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008058/0.7202, allocations: 116.8 kB / 1.216 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.7203, allocations: 3.984 kB / 1.216 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009878/0.7213, allocations: 235 kB / 1.216 GB, free: 5.539 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.7213, allocations: 0 / 1.216 GB, free: 5.539 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002684/0.724, allocations: 0.4914 MB / 1.217 GB, free: 5.043 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.724, allocations: 63.34 kB / 1.217 GB, free: 4.969 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004274/0.7245, allocations: 441.9 kB / 1.217 GB, free: 4.527 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.971e-05/0.7245, allocations: 41.69 kB / 1.217 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.353e-05/0.7246, allocations: 101.3 kB / 1.217 GB, free: 4.379 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.7247, allocations: 35.55 kB / 1.217 GB, free: 4.344 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002004/0.7249, allocations: 145.2 kB / 1.217 GB, free: 4.195 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.725, allocations: 326.8 kB / 1.218 GB, free: 3.867 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.7253, allocations: 135.9 kB / 1.218 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.7256, allocations: 191.2 kB / 1.218 GB, free: 3.527 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.726, allocations: 303.4 kB / 1.218 GB, free: 3.199 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.726, allocations: 0 / 1.218 GB, free: 3.199 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000818/0.7268, allocations: 0.5225 MB / 1.219 GB, free: 2.66 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.052e-05/0.7269, allocations: 91.38 kB / 1.219 GB, free: 2.559 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.7269, allocations: 4 kB / 1.219 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.7269, allocations: 0 / 1.219 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.7271, allocations: 31.91 kB / 1.219 GB, free: 2.523 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.7271, allocations: 4 kB / 1.219 GB, free: 2.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.7276, allocations: 56.05 kB / 1.219 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-05/0.7277, allocations: 55.98 kB / 1.219 GB, free: 2.41 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.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.0002493/0.728, allocations: 232.2 kB / 1.219 GB, free: 2.176 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.728, allocations: 39.53 kB / 1.219 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.731e-05/0.7281, allocations: 39.8 kB / 1.219 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.7281, allocations: 4 kB / 1.219 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.7281, allocations: 0 / 1.219 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.7281, allocations: 7.922 kB / 1.219 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.7303, allocations: 0.7872 MB / 1.22 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.7304, allocations: 0 / 1.22 GB, free: 1.234 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.588e-05/0.7304, allocations: 7.984 kB / 1.22 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7304, allocations: 0 / 1.22 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/0.7304, allocations: 19.98 kB / 1.22 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.7305, allocations: 7.922 kB / 1.22 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7305, allocations: 0 / 1.22 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.7322, allocations: 480.8 kB / 1.221 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/0.7325, allocations: 244.4 kB / 1.221 GB, free: 468 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.112e-05/0.7326, allocations: 16 kB / 1.221 GB, free: 452 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.7331, allocations: 39.89 kB / 1.221 GB, free: 412 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.644e-05/0.7331, allocations: 4 kB / 1.221 GB, free: 408 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.546e-05/0.7332, allocations: 59.97 kB / 1.221 GB, free: 348 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002858/0.7335, allocations: 319.1 kB / 1.221 GB, free: 32 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7335, allocations: 4 kB / 1.221 GB, free: 28 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003558/0.7338, allocations: 71.95 kB / 1.221 GB, free: 15.95 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.000182/0.734, allocations: 131.6 kB / 1.221 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001325/0.7354, allocations: 478.8 kB / 1.222 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7354, allocations: 0 / 1.222 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008342/0.7362, allocations: 126.4 kB / 1.222 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.7366, allocations: 33.53 kB / 1.222 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.7381, allocations: 0.635 MB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.7385, allocations: 0.7865 MB / 1.223 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.7385, allocations: 23.42 kB / 1.223 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of SimCode: time 2.4e-07/0.7385, allocations: 3.938 kB / 1.223 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of Templates: time 0.005285/0.7438, allocations: 4.094 MB / 1.227 GB, free: 9.527 MB / 0.9512 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/jenkins1/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