Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 106.9 kB / 15.99 MB, free: 6.355 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.001627/0.001627, allocations: 195.3 kB / 16.91 MB, free: 6.195 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.334/1.334, 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 9.1.3-maint.9.1.x/package.mo): time 2.189/2.189, allocations: 390.2 MB / 0.665 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 64.72 kB / 0.8127 GB, free: 33.32 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2781, allocations: 140.4 MB / 0.9498 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.003417/0.2816, allocations: 1.791 MB / 0.9516 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.2831, allocations: 0.6244 MB / 0.9522 GB, free: 6.777 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.2832, allocations: 0 / 0.9522 GB, free: 6.777 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.2833, allocations: 3.938 kB / 0.9522 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.2835, allocations: 27.84 kB / 0.9522 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000945/0.2845, allocations: 347.1 kB / 0.9525 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007373/0.2852, allocations: 0.636 MB / 0.9531 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.2854, allocations: 41.08 kB / 0.9532 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005711/0.286, allocations: 371 kB / 0.9535 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003303/0.2863, allocations: 179.3 kB / 0.9537 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.2864, allocations: 40 kB / 0.9537 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.26e-05/0.2865, allocations: 44 kB / 0.9538 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.2867, allocations: 131.4 kB / 0.9539 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002414/0.2869, allocations: 226.8 kB / 0.9541 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004379/0.2874, allocations: 487.2 kB / 0.9546 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2874, allocations: 4 kB / 0.9546 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2874, allocations: 0 / 0.9546 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.553e-05/0.2874, allocations: 0 / 0.9546 GB, free: 4.277 MB / 0.7325 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.001495/0.2889, allocations: 0.917 MB / 0.9555 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.289, allocations: 8.031 kB / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.2891, allocations: 56.38 kB / 0.9556 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.2895, allocations: 326.2 kB / 0.9559 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.361e-05/0.2896, allocations: 24.55 kB / 0.9559 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.501e-05/0.2897, allocations: 36.36 kB / 0.9559 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.2908, allocations: 239.1 kB / 0.9562 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2908, allocations: 7.922 kB / 0.9562 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.2909, allocations: 4 kB / 0.9562 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.2909, allocations: 4 kB / 0.9562 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00082/0.2917, allocations: 115.9 kB / 0.9563 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.2931, allocations: 0.6759 MB / 0.9569 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.2942, allocations: 182.5 kB / 0.9571 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008062/0.295, allocations: 112.8 kB / 0.9572 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.295, allocations: 7.938 kB / 0.9572 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/0.2961, allocations: 227.2 kB / 0.9574 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.355e-06/0.2961, allocations: 0 / 0.9574 GB, free: 1.152 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002737/0.2988, allocations: 0.4914 MB / 0.9579 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.817e-05/0.2989, allocations: 59.39 kB / 0.958 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004887/0.2994, allocations: 445.8 kB / 0.9584 GB, free: 152 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.2995, allocations: 41.7 kB / 0.9584 GB, free: 104 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.2996, allocations: 105.4 kB / 0.9585 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.501e-05/0.2997, allocations: 35.55 kB / 0.9586 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002464/0.2999, allocations: 145.2 kB / 0.9587 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3001, allocations: 322.8 kB / 0.959 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.3004, allocations: 139.9 kB / 0.9592 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.3007, allocations: 197.9 kB / 0.9593 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.3012, allocations: 299.1 kB / 0.9596 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3012, allocations: 7.938 kB / 0.9596 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008866/0.3021, allocations: 0.5303 MB / 0.9602 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.483e-05/0.3022, allocations: 95.38 kB / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3022, allocations: 0 / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.3022, allocations: 4 kB / 0.9603 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.3024, allocations: 19.92 kB / 0.9603 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.3024, allocations: 11.98 kB / 0.9603 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.3029, allocations: 67.92 kB / 0.9604 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.687e-05/0.303, allocations: 63.92 kB / 0.9604 GB, free: 13.99 MB / 0.7481 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.0002594/0.3033, allocations: 218.7 kB / 0.9606 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.3034, allocations: 43.52 kB / 0.9607 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.3034, allocations: 39.8 kB / 0.9607 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3034, allocations: 4 kB / 0.9607 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3035, allocations: 0 / 0.9607 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3035, allocations: 0 / 0.9607 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.3057, allocations: 0.7909 MB / 0.9615 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3057, allocations: 0 / 0.9615 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-05/0.3058, allocations: 11.98 kB / 0.9615 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.3058, allocations: 0 / 0.9615 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.165e-05/0.3058, allocations: 19.92 kB / 0.9615 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3058, allocations: 0 / 0.9615 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3058, allocations: 0 / 0.9615 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.3077, allocations: 485.4 kB / 0.962 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.308, allocations: 248.4 kB / 0.9622 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.902e-05/0.308, allocations: 19.94 kB / 0.9622 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005234/0.3086, allocations: 31.97 kB / 0.9623 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/0.3086, allocations: 11.98 kB / 0.9623 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.718e-05/0.3087, allocations: 55.97 kB / 0.9623 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003394/0.3091, allocations: 319.1 kB / 0.9626 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3091, allocations: 0 / 0.9626 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004048/0.3095, allocations: 67.98 kB / 0.9627 GB, free: 11.55 MB / 0.7481 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.0002117/0.3097, allocations: 131.2 kB / 0.9628 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0014/0.3111, allocations: 482.4 kB / 0.9633 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3111, allocations: 0 / 0.9633 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008122/0.3119, allocations: 119.9 kB / 0.9634 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.3124, allocations: 37.91 kB / 0.9634 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.3141, allocations: 0.7735 MB / 0.9642 GB, free: 9.969 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.3145, allocations: 0.7937 MB / 0.965 GB, free: 9.148 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.899e-05/0.3145, allocations: 19.42 kB / 0.965 GB, free: 9.129 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.3145, allocations: 0 / 0.965 GB, free: 9.129 MB / 0.7481 GB Notification: Performance of Templates: time 0.006719/0.3213, allocations: 4.084 MB / 0.969 GB, free: 4.988 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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