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.001293/0.001293, allocations: 106.3 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.001304/0.001304, allocations: 185.5 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.29/1.29, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.453/2.453, allocations: 461.9 MB / 0.7354 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 64.11 kB / 1.055 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7418/0.7431, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003891/0.7471, allocations: 1.747 MB / 1.21 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.7485, allocations: 0.626 MB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.297e-05/0.7486, allocations: 0 / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.7487, allocations: 11.86 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.7488, allocations: 35.78 kB / 1.211 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007731/0.7496, allocations: 358.6 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005911/0.7502, allocations: 0.6438 MB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.7504, allocations: 29.11 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003727/0.7507, allocations: 307.6 kB / 1.212 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00028/0.751, allocations: 163.3 kB / 1.212 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.7511, allocations: 47.94 kB / 1.212 GB, free: 9.664 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.7512, allocations: 40 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.7514, allocations: 123.7 kB / 1.212 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.7516, allocations: 219 kB / 1.213 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000494/0.7521, allocations: 0.5858 MB / 1.213 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.7521, allocations: 0 / 1.213 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.156e-06/0.7521, allocations: 4 kB / 1.213 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.293e-06/0.7521, allocations: 3.938 kB / 1.213 GB, free: 8.699 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.001234/0.7533, allocations: 0.9132 MB / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.7534, allocations: 8.031 kB / 1.214 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.7535, allocations: 52.47 kB / 1.214 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.7539, allocations: 334.1 kB / 1.215 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.392e-05/0.7539, allocations: 20.36 kB / 1.215 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.926e-05/0.754, allocations: 28.38 kB / 1.215 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.7551, allocations: 245.9 kB / 1.215 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.7551, allocations: 192 / 1.215 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.7551, allocations: 3.938 kB / 1.215 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.7552, allocations: 4 kB / 1.215 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008354/0.756, allocations: 115.9 kB / 1.215 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.7572, allocations: 0.672 MB / 1.216 GB, free: 6.133 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.7584, allocations: 182.5 kB / 1.216 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008009/0.7592, allocations: 116.7 kB / 1.216 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.7592, allocations: 0 / 1.216 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001062/0.7603, allocations: 239 kB / 1.216 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 2.003e-06/0.7603, allocations: 0 / 1.216 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002622/0.7629, allocations: 0.4912 MB / 1.217 GB, free: 5.086 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.763, allocations: 59.41 kB / 1.217 GB, free: 5.016 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/0.7634, allocations: 437.9 kB / 1.217 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 6.567e-05/0.7635, allocations: 49.62 kB / 1.217 GB, free: 4.523 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.047e-05/0.7636, allocations: 101.3 kB / 1.217 GB, free: 4.422 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.7636, allocations: 39.53 kB / 1.217 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.7638, allocations: 141.2 kB / 1.217 GB, free: 4.238 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.7639, allocations: 330.8 kB / 1.218 GB, free: 3.906 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.7642, allocations: 135.9 kB / 1.218 GB, free: 3.773 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.7645, allocations: 183.2 kB / 1.218 GB, free: 3.574 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.7649, allocations: 307.4 kB / 1.218 GB, free: 3.242 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.7649, allocations: 0 / 1.218 GB, free: 3.242 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008306/0.7658, allocations: 0.5225 MB / 1.219 GB, free: 2.703 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 8.77e-05/0.7659, allocations: 95.38 kB / 1.219 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.7659, allocations: 0 / 1.219 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.7659, allocations: 4 kB / 1.219 GB, free: 2.594 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.7661, allocations: 27.91 kB / 1.219 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.7661, allocations: 0 / 1.219 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004994/0.7666, allocations: 60.05 kB / 1.219 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.408e-05/0.7667, allocations: 59.98 kB / 1.219 GB, free: 2.449 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.0002605/0.7669, allocations: 224.2 kB / 1.219 GB, free: 2.223 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.042e-05/0.767, allocations: 43.52 kB / 1.219 GB, free: 2.18 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.713e-05/0.7671, allocations: 35.8 kB / 1.219 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.7671, allocations: 3.938 kB / 1.219 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.7671, allocations: 0 / 1.219 GB, free: 2.137 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.7671, allocations: 4 kB / 1.219 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.7694, allocations: 0.7911 MB / 1.22 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.7694, allocations: 0 / 1.22 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.103e-05/0.7695, allocations: 7.984 kB / 1.22 GB, free: 1.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.7695, allocations: 0 / 1.22 GB, free: 1.273 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.067e-05/0.7695, allocations: 23.98 kB / 1.22 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.7696, allocations: 3.938 kB / 1.22 GB, free: 1.246 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7696, allocations: 0 / 1.22 GB, free: 1.246 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.7714, allocations: 477.1 kB / 1.221 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.7717, allocations: 252.3 kB / 1.221 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.088e-05/0.7718, allocations: 16 kB / 1.221 GB, free: 496 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005047/0.7723, allocations: 35.84 kB / 1.221 GB, free: 460 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.498e-05/0.7724, allocations: 11.98 kB / 1.221 GB, free: 448 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/0.7724, allocations: 55.97 kB / 1.221 GB, free: 392 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000304/0.7727, allocations: 319.1 kB / 1.221 GB, free: 76 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7727, allocations: 4 kB / 1.221 GB, free: 72 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003916/0.7731, allocations: 71.89 kB / 1.221 GB, free: 0 / 0.9356 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.0002441/0.7734, allocations: 123.7 kB / 1.221 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001351/0.7748, allocations: 473 kB / 1.222 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.7748, allocations: 4.125 kB / 1.222 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008019/0.7756, allocations: 127.8 kB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.776, allocations: 43.55 kB / 1.222 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.7777, allocations: 0.635 MB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.778, allocations: 0.7905 MB / 1.223 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/0.7781, allocations: 19.42 kB / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of SimCode: time 3e-07/0.7781, allocations: 0 / 1.223 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of Templates: time 0.00629/0.7844, allocations: 4.097 MB / 1.227 GB, free: 9.574 MB / 0.9512 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