Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001737/0.001737, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001961/0.001961, allocations: 193.6 kB / 16.26 MB, free: 6.152 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.412/1.412, allocations: 222.9 MB / 239.9 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.626/2.626, allocations: 437 MB / 0.71 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.91 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6878/0.6891, allocations: 151.6 MB / 1.017 GB, free: 2.883 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003802/0.6929, allocations: 1.798 MB / 1.019 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.6944, allocations: 0.613 MB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.931e-05/0.6945, allocations: 0 / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.6946, allocations: 11.92 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001373/0.6948, allocations: 35.78 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008413/0.6957, allocations: 339.4 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0006454/0.6963, allocations: 0.636 MB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.6964, allocations: 28.89 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004488/0.6969, allocations: 371.1 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002616/0.6972, allocations: 183.1 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.008e-05/0.6973, allocations: 40 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.909e-05/0.6974, allocations: 44 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.6975, allocations: 131.6 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.6977, allocations: 230.7 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005428/0.6983, allocations: 0.6094 MB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.6983, allocations: 0 / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6983, allocations: 3.938 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.6983, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 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.001336/0.6997, allocations: 0.9015 MB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.6997, allocations: 11.98 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.6999, allocations: 64.36 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004078/0.7003, allocations: 330.1 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.833e-05/0.7004, allocations: 20.55 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.161e-05/0.7004, allocations: 32.31 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.7015, allocations: 239.9 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.7015, allocations: 7.922 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.7015, allocations: 4 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.7016, allocations: 4 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00079/0.7023, allocations: 107.9 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.7037, allocations: 0.6837 MB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.7047, allocations: 178.5 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007546/0.7055, allocations: 120.8 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.7055, allocations: 4 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009897/0.7065, allocations: 235 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.224e-06/0.7065, allocations: 4 kB / 1.025 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002628/0.7092, allocations: 495.5 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.7092, allocations: 59.41 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004539/0.7097, allocations: 445.8 kB / 1.026 GB, free: 9.699 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.916e-05/0.7098, allocations: 41.69 kB / 1.026 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.746e-05/0.7099, allocations: 105.3 kB / 1.026 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.949e-05/0.7099, allocations: 39.55 kB / 1.026 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.7102, allocations: 137.3 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.7103, allocations: 322.8 kB / 1.026 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.7106, allocations: 147.8 kB / 1.026 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.7109, allocations: 193.9 kB / 1.026 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004037/0.7113, allocations: 299 kB / 1.027 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.7113, allocations: 0 / 1.027 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008472/0.7122, allocations: 0.5278 MB / 1.027 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.728e-05/0.7123, allocations: 99.38 kB / 1.027 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.7123, allocations: 4.172 kB / 1.027 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.7123, allocations: 8 kB / 1.027 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.7125, allocations: 19.92 kB / 1.027 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.7125, allocations: 4 kB / 1.027 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/0.713, allocations: 59.84 kB / 1.027 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.502e-05/0.7131, allocations: 63.86 kB / 1.028 GB, free: 7.547 MB / 0.7794 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.0002423/0.7134, allocations: 224.8 kB / 1.028 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.889e-05/0.7134, allocations: 35.53 kB / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.63e-05/0.7135, allocations: 51.72 kB / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.7135, allocations: 0 / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.7135, allocations: 0 / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.7136, allocations: 0 / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.7159, allocations: 0.7909 MB / 1.029 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.7159, allocations: 4 kB / 1.029 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/0.716, allocations: 0 / 1.029 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.716, allocations: 4 kB / 1.029 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.382e-05/0.716, allocations: 27.91 kB / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.716, allocations: 0 / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.716, allocations: 0 / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.7179, allocations: 476.1 kB / 1.029 GB, free: 5.863 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003062/0.7182, allocations: 248.4 kB / 1.029 GB, free: 5.602 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.505e-05/0.7183, allocations: 23.94 kB / 1.029 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004916/0.7188, allocations: 27.97 kB / 1.029 GB, free: 5.551 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.003e-05/0.7188, allocations: 7.984 kB / 1.029 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.7189, allocations: 63.97 kB / 1.029 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003398/0.7193, allocations: 323 kB / 1.03 GB, free: 5.168 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7193, allocations: 0 / 1.03 GB, free: 5.168 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003859/0.7197, allocations: 67.98 kB / 1.03 GB, free: 5.102 MB / 0.7794 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.0001988/0.7199, allocations: 127.2 kB / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00139/0.7213, allocations: 474.7 kB / 1.03 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.7213, allocations: 0 / 1.03 GB, free: 4.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008226/0.7221, allocations: 136.9 kB / 1.031 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.7225, allocations: 45.03 kB / 1.031 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.7242, allocations: 0.7155 MB / 1.031 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.7245, allocations: 0.7902 MB / 1.032 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.15e-05/0.7246, allocations: 13.42 kB / 1.032 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.7247, allocations: 15.44 kB / 1.032 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of SimCode: time 4.71e-07/0.7247, allocations: 0 / 1.032 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of Templates: time 0.0101/0.7348, allocations: 5.615 MB / 1.038 GB, free: 13.01 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches