Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 112.2 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.001777/0.001777, allocations: 185 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.387/1.387, 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 9.1.3-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 67.89 kB / 0.9516 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8245/0.826, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.0029/0.8289, allocations: 1.736 MB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.8303, allocations: 0.6236 MB / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.869e-05/0.8304, allocations: 0 / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.8305, allocations: 10.95 kB / 1.091 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.8306, allocations: 35.83 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009454/0.8316, allocations: 367.9 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006874/0.8323, allocations: 0.6321 MB / 1.092 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.8324, allocations: 26.64 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004276/0.8329, allocations: 319.3 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003195/0.8332, allocations: 156.2 kB / 1.092 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.8333, allocations: 41.31 kB / 1.093 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.8334, allocations: 41.03 kB / 1.093 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.8336, allocations: 128.8 kB / 1.093 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002227/0.8339, allocations: 216.2 kB / 1.093 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007082/0.8346, allocations: 0.5932 MB / 1.093 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.8346, allocations: 0.8125 kB / 1.093 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8346, allocations: 0 / 1.093 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.8346, allocations: 0.9375 kB / 1.093 GB, free: 2.797 MB / 0.8575 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.001254/0.8359, allocations: 0.9034 MB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.8359, allocations: 10 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.8361, allocations: 56.75 kB / 1.094 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.8364, allocations: 337.3 kB / 1.095 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.382e-05/0.8365, allocations: 23.06 kB / 1.095 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.8366, allocations: 31.03 kB / 1.095 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.8378, allocations: 234.3 kB / 1.095 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.8378, allocations: 0.7969 kB / 1.095 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.924e-05/0.8378, allocations: 14.2 kB / 1.095 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.8378, allocations: 6.906 kB / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000886/0.8387, allocations: 112 kB / 1.095 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.8401, allocations: 0.6642 MB / 1.096 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.8412, allocations: 190.5 kB / 1.096 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008138/0.8421, allocations: 121.1 kB / 1.096 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.8421, allocations: 7.188 kB / 1.096 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.8431, allocations: 230.2 kB / 1.096 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.255e-06/0.8431, allocations: 0 / 1.096 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002848/0.846, allocations: 0.4924 MB / 1.097 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.846, allocations: 58.36 kB / 1.097 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000484/0.8465, allocations: 443.7 kB / 1.097 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.84e-05/0.8466, allocations: 41.22 kB / 1.097 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.992e-05/0.8467, allocations: 101 kB / 1.097 GB, free: 472 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.8467, allocations: 33.88 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.847, allocations: 136.1 kB / 1.098 GB, free: 384 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.04e-05/0.847, allocations: 330.1 kB / 1.098 GB, free: 52 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.8473, allocations: 135.1 kB / 1.098 GB, free: 8 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003499/0.8477, allocations: 196.5 kB / 1.098 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.8481, allocations: 305.2 kB / 1.098 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.8481, allocations: 0.5938 kB / 1.098 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009017/0.849, allocations: 0.5165 MB / 1.099 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-05/0.8491, allocations: 94.2 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.8491, allocations: 9.984 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.8491, allocations: 2.812 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.8493, allocations: 28.22 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.8493, allocations: 3.5 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/0.8499, allocations: 54.17 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.565e-05/0.85, allocations: 61.91 kB / 1.099 GB, free: 15.33 MB / 0.8731 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.0003123/0.8503, allocations: 232.4 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.031e-05/0.8504, allocations: 37.28 kB / 1.099 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.205e-05/0.8505, allocations: 42.59 kB / 1.1 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.8505, allocations: 1.875 kB / 1.1 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.8505, allocations: 2.109 kB / 1.1 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.8505, allocations: 0.6562 kB / 1.1 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.8529, allocations: 0.7925 MB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.8529, allocations: 0.6562 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.8529, allocations: 5.219 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.853, allocations: 0.875 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/0.853, allocations: 19.06 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.853, allocations: 4.875 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.853, allocations: 4.703 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.8549, allocations: 482.7 kB / 1.101 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.8553, allocations: 247.5 kB / 1.101 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.022e-05/0.8554, allocations: 19.48 kB / 1.101 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.8559, allocations: 32.52 kB / 1.101 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.856, allocations: 8.031 kB / 1.101 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.546e-05/0.8561, allocations: 63.89 kB / 1.101 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000444/0.8565, allocations: 319.7 kB / 1.101 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8565, allocations: 0 / 1.101 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004975/0.857, allocations: 66.83 kB / 1.102 GB, free: 14.13 MB / 0.8731 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.0001958/0.8572, allocations: 132.3 kB / 1.102 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001414/0.8587, allocations: 471.7 kB / 1.102 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8587, allocations: 0 / 1.102 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008368/0.8595, allocations: 132 kB / 1.102 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004424/0.86, allocations: 36.92 kB / 1.102 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.8616, allocations: 0.6455 MB / 1.103 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/0.862, allocations: 0.7871 MB / 1.104 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.212e-05/0.862, allocations: 17.48 kB / 1.104 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of SimCode: time 4.71e-07/0.862, allocations: 0 / 1.104 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of Templates: time 0.007311/0.8694, allocations: 4.082 MB / 1.108 GB, free: 12.08 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.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