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.002496/0.002496, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.003086/0.003086, allocations: 187 kB / 17.34 MB, free: 5.719 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.517/2.517, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 63.91 kB / 1.055 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8815/0.8833, 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.CalendarTimeMonths): time 0.003032/0.8863, allocations: 1.732 MB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001346/0.8877, allocations: 0.6304 MB / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.706e-05/0.8878, allocations: 0 / 1.211 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.8879, allocations: 15.86 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.8881, allocations: 35.78 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008939/0.889, allocations: 358.7 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007241/0.8898, allocations: 0.6399 MB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.8899, allocations: 37.09 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004847/0.8904, allocations: 311.6 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003235/0.8907, allocations: 159.3 kB / 1.212 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.8908, allocations: 44 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.138e-05/0.8909, allocations: 40 kB / 1.212 GB, free: 9.641 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.8911, allocations: 123.7 kB / 1.212 GB, free: 9.52 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.8913, allocations: 219 kB / 1.213 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005558/0.8919, allocations: 0.5936 MB / 1.213 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.8919, allocations: 4 kB / 1.213 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8919, allocations: 0 / 1.213 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.186e-05/0.8919, allocations: 0 / 1.213 GB, free: 8.711 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.001354/0.8933, allocations: 0.9131 MB / 1.214 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.8933, allocations: 8.031 kB / 1.214 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.8934, allocations: 52.47 kB / 1.214 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003892/0.8938, allocations: 338 kB / 1.215 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.625e-05/0.8939, allocations: 20.36 kB / 1.215 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.982e-05/0.894, allocations: 36.36 kB / 1.215 GB, free: 7.223 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.8951, allocations: 235.4 kB / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.8951, allocations: 192 / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.8951, allocations: 7.875 kB / 1.215 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.8952, allocations: 4 kB / 1.215 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008319/0.896, allocations: 111.9 kB / 1.215 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.8973, allocations: 0.6681 MB / 1.216 GB, free: 6.148 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.8984, allocations: 186.5 kB / 1.216 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008163/0.8993, allocations: 112.8 kB / 1.216 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.8993, allocations: 0 / 1.216 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.9004, allocations: 243 kB / 1.216 GB, free: 5.594 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.924e-06/0.9004, allocations: 0 / 1.216 GB, free: 5.594 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.002714/0.9031, allocations: 0.4903 MB / 1.217 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.9031, allocations: 63.39 kB / 1.217 GB, free: 5.023 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004636/0.9036, allocations: 437.9 kB / 1.217 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 7.489e-05/0.9037, allocations: 41.69 kB / 1.217 GB, free: 4.539 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.9038, allocations: 105.3 kB / 1.217 GB, free: 4.434 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.936e-05/0.9039, allocations: 35.55 kB / 1.217 GB, free: 4.398 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002147/0.9041, allocations: 141.2 kB / 1.217 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.9042, allocations: 330.8 kB / 1.218 GB, free: 3.922 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.9045, allocations: 131.9 kB / 1.218 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.9048, allocations: 191.1 kB / 1.218 GB, free: 3.586 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004117/0.9052, allocations: 303.6 kB / 1.218 GB, free: 3.258 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.9052, allocations: 0 / 1.218 GB, free: 3.258 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008761/0.9061, allocations: 0.5242 MB / 1.219 GB, free: 2.715 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.755e-05/0.9062, allocations: 95.38 kB / 1.219 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.9062, allocations: 0 / 1.219 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.9063, allocations: 4 kB / 1.219 GB, free: 2.605 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.9064, allocations: 23.97 kB / 1.219 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.9065, allocations: 3.938 kB / 1.219 GB, free: 2.578 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.907, allocations: 60.05 kB / 1.219 GB, free: 2.52 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.307e-05/0.9071, allocations: 59.98 kB / 1.219 GB, free: 2.461 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.0002732/0.9073, allocations: 216.3 kB / 1.219 GB, free: 2.242 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.315e-05/0.9074, allocations: 47.45 kB / 1.219 GB, free: 2.195 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.077e-05/0.9075, allocations: 35.8 kB / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.9075, allocations: 0 / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.9075, allocations: 0 / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.9075, allocations: 7.938 kB / 1.219 GB, free: 2.148 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002308/0.9098, allocations: 0.7873 MB / 1.22 GB, free: 1.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.9099, allocations: 0 / 1.22 GB, free: 1.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.222e-05/0.9099, allocations: 19.86 kB / 1.22 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.9099, allocations: 3.984 kB / 1.22 GB, free: 1.277 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.422e-05/0.91, allocations: 23.98 kB / 1.22 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.91, allocations: 3.938 kB / 1.22 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.91, allocations: 0 / 1.22 GB, free: 1.25 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.9118, allocations: 478 kB / 1.221 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.9121, allocations: 248.4 kB / 1.221 GB, free: 0.5078 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.338e-05/0.9122, allocations: 16 kB / 1.221 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005039/0.9127, allocations: 35.89 kB / 1.221 GB, free: 468 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.135e-05/0.9128, allocations: 8 kB / 1.221 GB, free: 460 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-05/0.9128, allocations: 55.97 kB / 1.221 GB, free: 404 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003163/0.9132, allocations: 319.1 kB / 1.221 GB, free: 88 kB / 0.9356 GB Notification: Performance of sort global known variables: time 2.61e-07/0.9132, allocations: 4 kB / 1.221 GB, free: 84 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003951/0.9136, allocations: 71.89 kB / 1.221 GB, free: 12 kB / 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.0002112/0.9138, allocations: 127.7 kB / 1.221 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001363/0.9151, allocations: 470.9 kB / 1.222 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.9152, allocations: 0 / 1.222 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.916, allocations: 123.8 kB / 1.222 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.9164, allocations: 39.64 kB / 1.222 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.9181, allocations: 0.6389 MB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.9185, allocations: 0.7904 MB / 1.223 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.159e-05/0.9185, allocations: 19.42 kB / 1.223 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of SimCode: time 1.814e-06/0.9185, allocations: 3.938 kB / 1.223 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of Templates: time 0.006388/0.9249, allocations: 4.104 MB / 1.227 GB, free: 9.578 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