Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 100.8 kB / 19.74 MB, free: 2.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 208.5 kB / 23.04 MB, free: 4.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.539/1.539, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.105/3.105, allocations: 0.49 GB / 0.7959 GB, free: 35.56 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 70.33 kB / 1.155 GB, free: 25.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3062, allocations: 176.1 MB / 1.327 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.002955/0.3092, allocations: 1.726 MB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.3105, allocations: 0.6035 MB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.322e-05/0.3105, allocations: 0 / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 9.183e-05/0.3106, allocations: 11.88 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.3107, allocations: 35.78 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008094/0.3116, allocations: 367.1 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006531/0.3122, allocations: 0.6087 MB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3123, allocations: 25.23 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004147/0.3127, allocations: 327.5 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.313, allocations: 139.4 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.3131, allocations: 40 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.3132, allocations: 44 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.3134, allocations: 127.6 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001901/0.3135, allocations: 171.2 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006018/0.3142, allocations: 0.6073 MB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3142, allocations: 0 / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3142, allocations: 0 / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.3142, allocations: 7.938 kB / 1.332 GB, free: 12.14 MB / 1.029 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.00127/0.3154, allocations: 0.8456 MB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.3155, allocations: 8.031 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.3156, allocations: 60.64 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.316, allocations: 276.7 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.623e-05/0.316, allocations: 20.38 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.131e-05/0.3161, allocations: 28.36 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009942/0.3171, allocations: 259.1 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3171, allocations: 192 / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.3172, allocations: 7.938 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.3172, allocations: 4 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007675/0.3179, allocations: 131.9 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.3191, allocations: 0.5314 MB / 1.334 GB, free: 9.855 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.3202, allocations: 198.4 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007228/0.3209, allocations: 120.8 kB / 1.334 GB, free: 9.531 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.3209, allocations: 8 kB / 1.334 GB, free: 9.523 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009297/0.3218, allocations: 241.6 kB / 1.335 GB, free: 9.277 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.3218, allocations: 0 / 1.335 GB, free: 9.277 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002812/0.3247, allocations: 0.5363 MB / 1.335 GB, free: 8.734 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.3247, allocations: 67.38 kB / 1.335 GB, free: 8.656 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000483/0.3252, allocations: 441.9 kB / 1.336 GB, free: 8.211 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.413e-05/0.3253, allocations: 41.7 kB / 1.336 GB, free: 8.164 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3254, allocations: 105.3 kB / 1.336 GB, free: 8.059 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.527e-05/0.3254, allocations: 43.73 kB / 1.336 GB, free: 8.016 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.3256, allocations: 141.4 kB / 1.336 GB, free: 7.871 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3258, allocations: 326.8 kB / 1.336 GB, free: 7.543 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000357/0.3261, allocations: 223.3 kB / 1.336 GB, free: 7.312 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000474/0.3266, allocations: 277.2 kB / 1.337 GB, free: 7.008 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004336/0.327, allocations: 298.6 kB / 1.337 GB, free: 6.684 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.327, allocations: 0 / 1.337 GB, free: 6.684 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009786/0.328, allocations: 0.5991 MB / 1.338 GB, free: 6.055 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.486e-05/0.3281, allocations: 83.38 kB / 1.338 GB, free: 5.961 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3281, allocations: 4 kB / 1.338 GB, free: 5.957 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.3281, allocations: 4 kB / 1.338 GB, free: 5.953 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.3283, allocations: 23.92 kB / 1.338 GB, free: 5.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.3283, allocations: 7.984 kB / 1.338 GB, free: 5.922 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005352/0.3289, allocations: 72.02 kB / 1.338 GB, free: 5.852 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.922e-05/0.3289, allocations: 59.92 kB / 1.338 GB, free: 5.793 MB / 1.029 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.0002676/0.3292, allocations: 220.8 kB / 1.338 GB, free: 5.566 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.097e-05/0.3293, allocations: 39.72 kB / 1.338 GB, free: 5.527 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.253e-05/0.3294, allocations: 47.72 kB / 1.338 GB, free: 5.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3294, allocations: 0 / 1.338 GB, free: 5.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3294, allocations: 7.938 kB / 1.338 GB, free: 5.473 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3294, allocations: 0 / 1.338 GB, free: 5.473 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.3317, allocations: 0.7497 MB / 1.339 GB, free: 4.684 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3317, allocations: 0 / 1.339 GB, free: 4.684 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.78e-05/0.3317, allocations: 4 kB / 1.339 GB, free: 4.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3317, allocations: 7.984 kB / 1.339 GB, free: 4.672 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/0.3318, allocations: 19.97 kB / 1.339 GB, free: 4.652 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3318, allocations: 0 / 1.339 GB, free: 4.652 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3318, allocations: 4 kB / 1.339 GB, free: 4.648 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/0.3337, allocations: 0.5111 MB / 1.339 GB, free: 4.121 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000426/0.3341, allocations: 181.5 kB / 1.34 GB, free: 3.945 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.714e-05/0.3342, allocations: 16 kB / 1.34 GB, free: 3.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004929/0.3347, allocations: 43.95 kB / 1.34 GB, free: 3.887 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.121e-05/0.3347, allocations: 11.92 kB / 1.34 GB, free: 3.875 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.003e-05/0.3348, allocations: 55.98 kB / 1.34 GB, free: 3.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003996/0.3352, allocations: 323.1 kB / 1.34 GB, free: 3.504 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3352, allocations: 0 / 1.34 GB, free: 3.504 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005244/0.3357, allocations: 71.92 kB / 1.34 GB, free: 3.434 MB / 1.029 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.0002208/0.336, allocations: 135.8 kB / 1.34 GB, free: 3.289 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001433/0.3374, allocations: 0.5119 MB / 1.341 GB, free: 2.742 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3374, allocations: 7.938 kB / 1.341 GB, free: 2.734 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007709/0.3382, allocations: 132.2 kB / 1.341 GB, free: 2.605 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.3386, allocations: 35.92 kB / 1.341 GB, free: 2.574 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.3402, allocations: 0.6543 MB / 1.341 GB, free: 1.883 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.3404, allocations: 186.7 kB / 1.342 GB, free: 1.68 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.377e-05/0.3405, allocations: 15.44 kB / 1.342 GB, free: 1.664 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.3405, allocations: 0 / 1.342 GB, free: 1.664 MB / 1.029 GB Notification: Performance of Templates: time 0.00641/0.3469, allocations: 4.128 MB / 1.346 GB, free: 13.49 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" 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 [Calling sys.exit(0), Time elapsed: 11.195682579884306]