Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001644, allocations: 102.4 kB / 16.35 MB, free: 5.824 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.002064/0.002063, allocations: 196.8 kB / 17.3 MB, free: 5.48 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.429/1.429, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.518/2.518, allocations: 437.1 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 59.56 kB / 0.8707 GB, free: 1.398 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3798, allocations: 151.6 MB / 1.019 GB, free: 9.809 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003458/0.3833, allocations: 1.746 MB / 1.021 GB, free: 8.047 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001474/0.3848, allocations: 0.6284 MB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.918e-05/0.3849, allocations: 0 / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.385, allocations: 11.88 kB / 1.021 GB, free: 7.41 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.3852, allocations: 35.78 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008762/0.3861, allocations: 375.4 kB / 1.022 GB, free: 7.012 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0006674/0.3868, allocations: 0.6281 MB / 1.022 GB, free: 6.383 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.3869, allocations: 29.11 kB / 1.022 GB, free: 6.352 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004001/0.3873, allocations: 311.5 kB / 1.022 GB, free: 6.047 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002853/0.3876, allocations: 159.3 kB / 1.023 GB, free: 5.891 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 8.375e-05/0.3877, allocations: 40 kB / 1.023 GB, free: 5.852 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.23e-05/0.3878, allocations: 44 kB / 1.023 GB, free: 5.809 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.388, allocations: 131.5 kB / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002418/0.3882, allocations: 215 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006127/0.3888, allocations: 0.5919 MB / 1.024 GB, free: 4.875 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3888, allocations: 0 / 1.024 GB, free: 4.875 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3888, allocations: 0 / 1.024 GB, free: 4.875 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.625e-06/0.3889, allocations: 0 / 1.024 GB, free: 4.875 MB / 0.795 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.001426/0.3903, allocations: 0.9171 MB / 1.024 GB, free: 3.867 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3903, allocations: 12.88 kB / 1.025 GB, free: 3.855 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.3905, allocations: 52.47 kB / 1.025 GB, free: 3.805 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.391, allocations: 338.1 kB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.874e-05/0.3911, allocations: 20.36 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.741e-05/0.3912, allocations: 32.36 kB / 1.025 GB, free: 3.383 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009421/0.3921, allocations: 238 kB / 1.025 GB, free: 3.145 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.3921, allocations: 8.109 kB / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.3922, allocations: 3.938 kB / 1.025 GB, free: 3.133 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3922, allocations: 4 kB / 1.025 GB, free: 3.129 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006927/0.3929, allocations: 111.9 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.3942, allocations: 0.6758 MB / 1.026 GB, free: 2.293 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009576/0.3952, allocations: 174.5 kB / 1.026 GB, free: 2.113 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000679/0.3958, allocations: 128.8 kB / 1.026 GB, free: 1.984 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.3959, allocations: 3.984 kB / 1.026 GB, free: 1.98 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008887/0.3968, allocations: 231.1 kB / 1.026 GB, free: 1.742 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.3968, allocations: 0 / 1.026 GB, free: 1.742 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002315/0.3991, allocations: 499.2 kB / 1.027 GB, free: 1.25 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.3992, allocations: 59.41 kB / 1.027 GB, free: 1.18 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004325/0.3996, allocations: 441.8 kB / 1.027 GB, free: 0.7461 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.3997, allocations: 41.69 kB / 1.027 GB, free: 0.6992 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3998, allocations: 105.3 kB / 1.028 GB, free: 0.5898 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/0.3998, allocations: 39.55 kB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.4, allocations: 133.3 kB / 1.028 GB, free: 424 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4002, allocations: 334.7 kB / 1.028 GB, free: 80 kB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.4005, allocations: 143.9 kB / 1.028 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.4008, allocations: 198.9 kB / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.4012, allocations: 295 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.4012, allocations: 0 / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008131/0.402, allocations: 0.5162 MB / 1.029 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.271e-05/0.4021, allocations: 95.38 kB / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4021, allocations: 8.172 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.4021, allocations: 4 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.4023, allocations: 27.92 kB / 1.029 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.4023, allocations: 0 / 1.029 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004382/0.4028, allocations: 59.73 kB / 1.029 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.572e-05/0.4029, allocations: 59.98 kB / 1.029 GB, free: 14.61 MB / 0.8106 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.0002706/0.4031, allocations: 228.2 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.433e-05/0.4032, allocations: 35.53 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.117e-05/0.4033, allocations: 43.8 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4033, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4033, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.4033, allocations: 3.984 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.4053, allocations: 0.7911 MB / 1.03 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4054, allocations: 0 / 1.03 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.079e-05/0.4054, allocations: 4 kB / 1.03 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.4054, allocations: 4 kB / 1.03 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.4055, allocations: 19.97 kB / 1.03 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/0.4055, allocations: 7.938 kB / 1.03 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4055, allocations: 3.938 kB / 1.03 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.4071, allocations: 475.3 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003381/0.4074, allocations: 244.5 kB / 1.031 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.528e-05/0.4075, allocations: 20 kB / 1.031 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/0.4079, allocations: 39.89 kB / 1.031 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.928e-05/0.408, allocations: 11.92 kB / 1.031 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.717e-05/0.4081, allocations: 51.98 kB / 1.031 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000328/0.4084, allocations: 323.1 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4084, allocations: 0 / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003658/0.4088, allocations: 71.94 kB / 1.032 GB, free: 12.15 MB / 0.8106 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.0002403/0.409, allocations: 133.8 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001217/0.4103, allocations: 480.7 kB / 1.032 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4103, allocations: 0 / 1.032 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006825/0.411, allocations: 116.3 kB / 1.032 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.4114, allocations: 41.28 kB / 1.032 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.4129, allocations: 0.5945 MB / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/0.4132, allocations: 0.7825 MB / 1.034 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.557e-05/0.4133, allocations: 21.41 kB / 1.034 GB, free: 9.922 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.741e-05/0.4134, allocations: 15.42 kB / 1.034 GB, free: 9.906 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.4134, allocations: 4 kB / 1.034 GB, free: 9.902 MB / 0.8106 GB Notification: Performance of Templates: time 0.009015/0.4224, allocations: 5.409 MB / 1.039 GB, free: 4.406 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches