Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001548/0.001548, allocations: 110 kB / 15.99 MB, free: 5.91 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.001689/0.001689, allocations: 192.5 kB / 16.91 MB, free: 5.754 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.371/1.371, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.81/2.81, allocations: 469.4 MB / 0.7423 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002415/0.002415, allocations: 61.41 kB / 0.9083 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.322, allocations: 159.1 MB / 1.064 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003348/0.3254, allocations: 1.793 MB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.3268, allocations: 0.6206 MB / 1.066 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.962e-05/0.3269, allocations: 0 / 1.066 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.3271, allocations: 3.938 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001542/0.3273, allocations: 35.84 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009295/0.3282, allocations: 337.3 kB / 1.066 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007402/0.329, allocations: 0.636 MB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.3291, allocations: 37.09 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006063/0.3297, allocations: 378.9 kB / 1.067 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003609/0.3301, allocations: 183.1 kB / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.3302, allocations: 40 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.794e-05/0.3303, allocations: 44 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001591/0.3305, allocations: 127.6 kB / 1.068 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.3307, allocations: 230.7 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004945/0.3312, allocations: 491.3 kB / 1.069 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3313, allocations: 0 / 1.069 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.987e-06/0.3313, allocations: 0 / 1.069 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.292e-05/0.3313, allocations: 3.938 kB / 1.069 GB, free: 10.39 MB / 0.8419 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.001511/0.3328, allocations: 0.9092 MB / 1.069 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3328, allocations: 8.625 kB / 1.069 GB, free: 9.383 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.333, allocations: 52.47 kB / 1.07 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/0.3334, allocations: 330.2 kB / 1.07 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.235e-05/0.3335, allocations: 20.55 kB / 1.07 GB, free: 8.953 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.372e-05/0.3336, allocations: 36.3 kB / 1.07 GB, free: 8.918 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.3347, allocations: 239.5 kB / 1.07 GB, free: 8.68 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.3347, allocations: 3.938 kB / 1.07 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.3347, allocations: 0 / 1.07 GB, free: 8.676 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3348, allocations: 4 kB / 1.07 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008291/0.3356, allocations: 115.9 kB / 1.07 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.337, allocations: 0.6836 MB / 1.071 GB, free: 7.824 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3381, allocations: 182.5 kB / 1.071 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000831/0.3389, allocations: 112.8 kB / 1.071 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.339, allocations: 4 kB / 1.071 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.34, allocations: 234 kB / 1.071 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 2.565e-06/0.34, allocations: 0 / 1.071 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002764/0.3428, allocations: 0.489 MB / 1.072 GB, free: 6.785 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.3429, allocations: 67.39 kB / 1.072 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005142/0.3434, allocations: 437.9 kB / 1.072 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 8.007e-05/0.3435, allocations: 37.7 kB / 1.072 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.743e-05/0.3436, allocations: 101.3 kB / 1.072 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.761e-05/0.3436, allocations: 47.47 kB / 1.073 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.3439, allocations: 141.3 kB / 1.073 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.344, allocations: 330.8 kB / 1.073 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.3443, allocations: 139.9 kB / 1.073 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.3446, allocations: 197.9 kB / 1.073 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000406/0.345, allocations: 291 kB / 1.074 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3451, allocations: 4 kB / 1.074 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009244/0.346, allocations: 0.5258 MB / 1.074 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.126e-05/0.3461, allocations: 95.38 kB / 1.074 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.3461, allocations: 0 / 1.074 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.3461, allocations: 4 kB / 1.074 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.3463, allocations: 27.97 kB / 1.074 GB, free: 4.246 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.3463, allocations: 3.938 kB / 1.074 GB, free: 4.242 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00053/0.3469, allocations: 59.8 kB / 1.074 GB, free: 4.184 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.847e-05/0.347, allocations: 63.98 kB / 1.074 GB, free: 4.121 MB / 0.8419 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.0002691/0.3472, allocations: 212.4 kB / 1.075 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.451e-05/0.3473, allocations: 39.53 kB / 1.075 GB, free: 3.863 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.876e-05/0.3474, allocations: 43.78 kB / 1.075 GB, free: 3.82 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3474, allocations: 3.938 kB / 1.075 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3474, allocations: 4 kB / 1.075 GB, free: 3.812 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3474, allocations: 7.922 kB / 1.075 GB, free: 3.805 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.3497, allocations: 0.7832 MB / 1.075 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3498, allocations: 0 / 1.075 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.199e-05/0.3498, allocations: 11.98 kB / 1.075 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3498, allocations: 3.938 kB / 1.075 GB, free: 2.949 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.3499, allocations: 23.92 kB / 1.075 GB, free: 2.926 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3499, allocations: 0 / 1.075 GB, free: 2.926 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3499, allocations: 3.984 kB / 1.075 GB, free: 2.922 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.3517, allocations: 485.5 kB / 1.076 GB, free: 2.434 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.3521, allocations: 236.5 kB / 1.076 GB, free: 2.184 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.298e-05/0.3522, allocations: 23.94 kB / 1.076 GB, free: 2.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005201/0.3527, allocations: 32.58 kB / 1.076 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.873e-05/0.3527, allocations: 4 kB / 1.076 GB, free: 2.125 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.3528, allocations: 59.97 kB / 1.076 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000324/0.3531, allocations: 319.1 kB / 1.077 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3532, allocations: 4 kB / 1.077 GB, free: 1.754 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003931/0.3536, allocations: 67.98 kB / 1.077 GB, free: 1.688 MB / 0.8419 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.0002128/0.3538, allocations: 131.9 kB / 1.077 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001465/0.3552, allocations: 482.9 kB / 1.077 GB, free: 1.051 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3553, allocations: 4.125 kB / 1.077 GB, free: 1.047 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008477/0.3561, allocations: 119.9 kB / 1.077 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.3566, allocations: 41.27 kB / 1.077 GB, free: 0.8945 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.3584, allocations: 0.7751 MB / 1.078 GB, free: 92 kB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4308/0.7892, allocations: 0.7811 MB / 1.079 GB, free: 22.17 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.922e-05/0.7893, allocations: 20.81 kB / 1.079 GB, free: 22.16 MB / 0.8419 GB Notification: Performance of SimCode: time 9.32e-07/0.7893, allocations: 0 / 1.079 GB, free: 22.16 MB / 0.8419 GB Notification: Performance of Templates: time 0.007524/0.7969, allocations: 4.081 MB / 1.083 GB, free: 21.73 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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