Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007163/0.007163, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.001497/0.001498, allocations: 191 kB / 16.67 MB, free: 5.969 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.544/1.544, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.467/2.467, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.91 kB / 0.9509 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.295/1.296, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.004175/1.3, allocations: 1.739 MB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002038/1.302, allocations: 0.6259 MB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/1.302, allocations: 0 / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001619/1.302, allocations: 10.92 kB / 1.09 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002061/1.303, allocations: 31.92 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001175/1.304, allocations: 365.9 kB / 1.091 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009591/1.305, allocations: 0.6331 MB / 1.091 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/1.305, allocations: 30.53 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005162/1.306, allocations: 315.1 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003397/1.306, allocations: 155.5 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001081/1.306, allocations: 41 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/1.306, allocations: 40.97 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002113/1.306, allocations: 124.5 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002931/1.307, allocations: 224.9 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008576/1.308, allocations: 0.5974 MB / 1.093 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/1.308, allocations: 5.062 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.924e-06/1.308, allocations: 0 / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.395e-06/1.308, allocations: 0 / 1.093 GB, free: 2.777 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.001625/1.309, allocations: 0.8965 MB / 1.094 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 7.476e-05/1.309, allocations: 9.562 kB / 1.094 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/1.309, allocations: 52.89 kB / 1.094 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005365/1.31, allocations: 345.3 kB / 1.094 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.603e-05/1.31, allocations: 18.84 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/1.31, allocations: 34.61 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/1.311, allocations: 228.2 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/1.311, allocations: 0.9375 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/1.311, allocations: 10.47 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/1.312, allocations: 6.156 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007966/1.312, allocations: 117 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/1.314, allocations: 0.6723 MB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/1.315, allocations: 185.4 kB / 1.095 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007523/1.316, allocations: 114 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.438e-05/1.316, allocations: 2.984 kB / 1.095 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/1.317, allocations: 234 kB / 1.096 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 3.296e-06/1.317, allocations: 0.5 kB / 1.096 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.003065/1.32, allocations: 0.4906 MB / 1.096 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/1.32, allocations: 59.23 kB / 1.096 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/1.321, allocations: 443.2 kB / 1.097 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002186/1.321, allocations: 40.56 kB / 1.097 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/1.321, allocations: 104.9 kB / 1.097 GB, free: 464 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.944e-05/1.322, allocations: 37.02 kB / 1.097 GB, free: 436 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003757/1.322, allocations: 137.9 kB / 1.097 GB, free: 372 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001276/1.322, allocations: 325.8 kB / 1.097 GB, free: 44 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005458/1.323, allocations: 142.5 kB / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005524/1.323, allocations: 189.1 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007106/1.324, allocations: 307.7 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.324, allocations: 0 / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001405/1.325, allocations: 0.5203 MB / 1.098 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.000157/1.326, allocations: 98.81 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/1.326, allocations: 1.312 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/1.326, allocations: 2.984 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/1.326, allocations: 23.81 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/1.326, allocations: 3.406 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/1.326, allocations: 59.2 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/1.327, allocations: 60.88 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.0006685/1.327, allocations: 226.4 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.705e-05/1.327, allocations: 36.81 kB / 1.099 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.843e-05/1.328, allocations: 43.84 kB / 1.099 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/1.328, allocations: 1.438 kB / 1.099 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/1.328, allocations: 0 / 1.099 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/1.328, allocations: 6.234 kB / 1.099 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/1.33, allocations: 0.7861 MB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/1.33, allocations: 0.6875 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.046e-05/1.33, allocations: 4.844 kB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/1.33, allocations: 5.188 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.202e-05/1.33, allocations: 23.56 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/1.33, allocations: 3.938 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.33, allocations: 0.8438 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/1.333, allocations: 482.8 kB / 1.1 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005072/1.333, allocations: 245.2 kB / 1.1 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.425e-05/1.333, allocations: 20.52 kB / 1.1 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004675/1.334, allocations: 32.78 kB / 1.1 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/1.334, allocations: 7.016 kB / 1.1 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/1.334, allocations: 64.48 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0007064/1.335, allocations: 323.8 kB / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.8e-07/1.335, allocations: 0 / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008734/1.335, allocations: 67.33 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.0003137/1.336, allocations: 127.5 kB / 1.101 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001603/1.337, allocations: 476.8 kB / 1.101 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/1.337, allocations: 0 / 1.101 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007624/1.338, allocations: 122.1 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.0005319/1.339, allocations: 41.23 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.002073/1.341, allocations: 0.6148 MB / 1.102 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005886/1.341, allocations: 0.7831 MB / 1.103 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001036/1.341, allocations: 11.75 kB / 1.103 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.616e-05/1.342, allocations: 20.86 kB / 1.103 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of SimCode: time 9.72e-07/1.342, allocations: 0 / 1.103 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of Templates: time 0.01729/1.359, allocations: 5.416 MB / 1.108 GB, free: 11.78 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches