Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 105.7 kB / 16.41 MB, free: 6.488 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.001625/0.001625, allocations: 187 kB / 17.34 MB, free: 5.73 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.14 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.207/2.207, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 59.91 kB / 0.9516 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8463/0.8477, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths): time 0.003816/0.8516, allocations: 1.747 MB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001754/0.8533, allocations: 0.6212 MB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.069e-05/0.8535, allocations: 1.094 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.8536, allocations: 15.25 kB / 1.091 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.8538, allocations: 31.91 kB / 1.091 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.8548, allocations: 362.2 kB / 1.091 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008716/0.8557, allocations: 0.6292 MB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.8559, allocations: 30.22 kB / 1.092 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005361/0.8564, allocations: 315.4 kB / 1.092 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003523/0.8568, allocations: 151.3 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.8569, allocations: 41 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.857, allocations: 44.44 kB / 1.093 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.8573, allocations: 128.8 kB / 1.093 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003063/0.8576, allocations: 220.4 kB / 1.093 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009247/0.8585, allocations: 0.5937 MB / 1.093 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.8585, allocations: 0 / 1.093 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.024e-06/0.8585, allocations: 0.75 kB / 1.093 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.078e-05/0.8586, allocations: 0 / 1.093 GB, free: 2.781 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.001622/0.8602, allocations: 0.9048 MB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.8603, allocations: 13.88 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.8604, allocations: 52.17 kB / 1.094 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.8609, allocations: 337.1 kB / 1.095 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.8609, allocations: 23.86 kB / 1.095 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.399e-05/0.861, allocations: 26.66 kB / 1.095 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.8622, allocations: 236.2 kB / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.8622, allocations: 192 / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.8622, allocations: 14.69 kB / 1.095 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.8623, allocations: 2.344 kB / 1.095 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000861/0.8631, allocations: 112.1 kB / 1.095 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.8646, allocations: 0.6688 MB / 1.096 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.8658, allocations: 185.8 kB / 1.096 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000814/0.8666, allocations: 122.5 kB / 1.096 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.8666, allocations: 1.344 kB / 1.096 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001084/0.8677, allocations: 231.7 kB / 1.096 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.053e-06/0.8677, allocations: 0 / 1.096 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002911/0.8707, allocations: 0.4905 MB / 1.097 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.8707, allocations: 62.02 kB / 1.097 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007222/0.8714, allocations: 448.9 kB / 1.097 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001493/0.8716, allocations: 40 kB / 1.097 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.8717, allocations: 101.6 kB / 1.097 GB, free: 460 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.8718, allocations: 36.97 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/0.8721, allocations: 136.9 kB / 1.098 GB, free: 368 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.498e-05/0.8721, allocations: 325.6 kB / 1.098 GB, free: 40 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003416/0.8725, allocations: 138.8 kB / 1.098 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003697/0.8729, allocations: 196.9 kB / 1.098 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004551/0.8733, allocations: 303 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.8734, allocations: 0.5 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001003/0.8744, allocations: 0.5203 MB / 1.099 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.8745, allocations: 93.92 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.8745, allocations: 2.656 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.8745, allocations: 3.031 kB / 1.099 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.8747, allocations: 27.56 kB / 1.099 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.8748, allocations: 11.11 kB / 1.099 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005938/0.8754, allocations: 55.53 kB / 1.099 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.8755, allocations: 56.77 kB / 1.099 GB, free: 15.32 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.0003658/0.8759, allocations: 221.8 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.876, allocations: 42.48 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.226e-05/0.876, allocations: 46.3 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.8761, allocations: 1.781 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.8761, allocations: 1.609 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.8761, allocations: 0.6094 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/0.8786, allocations: 0.7904 MB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.8786, allocations: 0 / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.098e-05/0.8787, allocations: 5.766 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.8787, allocations: 1.844 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.673e-05/0.8787, allocations: 18.3 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.8787, allocations: 8.969 kB / 1.1 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.8788, allocations: 0 / 1.1 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.8807, allocations: 475.4 kB / 1.101 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004221/0.8811, allocations: 249.9 kB / 1.101 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.295e-05/0.8812, allocations: 17.44 kB / 1.101 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005181/0.8817, allocations: 39.5 kB / 1.101 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.905e-05/0.8818, allocations: 11.69 kB / 1.101 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.784e-05/0.8819, allocations: 55.98 kB / 1.101 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005172/0.8824, allocations: 319.3 kB / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8824, allocations: 0.5625 kB / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005751/0.883, allocations: 71.23 kB / 1.101 GB, free: 14.12 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.0002409/0.8832, allocations: 130.9 kB / 1.102 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001556/0.8848, allocations: 478.5 kB / 1.102 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.8848, allocations: 0 / 1.102 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008397/0.8857, allocations: 120.4 kB / 1.102 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004613/0.8861, allocations: 40.11 kB / 1.102 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.888, allocations: 0.6517 MB / 1.103 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.8884, allocations: 0.7838 MB / 1.104 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.348e-05/0.8885, allocations: 20.02 kB / 1.104 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.8885, allocations: 0 / 1.104 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of Templates: time 0.009587/0.8981, allocations: 4.082 MB / 1.108 GB, free: 12.07 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches