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.001762/0.001762, allocations: 105 kB / 15.99 MB, free: 6.344 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.00203/0.00203, allocations: 195.5 kB / 16.91 MB, free: 6.184 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.401/1.401, allocations: 222.9 MB / 240.6 MB, free: 13.74 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.18/2.18, allocations: 390.2 MB / 0.665 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 71.47 kB / 0.8127 GB, free: 32.49 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2907, allocations: 140.4 MB / 0.9498 GB, free: 9.18 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.003409/0.2942, allocations: 1.786 MB / 0.9516 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2958, allocations: 0.6206 MB / 0.9522 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.2959, allocations: 0 / 0.9522 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.2961, allocations: 11.86 kB / 0.9522 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.2962, allocations: 31.84 kB / 0.9522 GB, free: 6.715 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.2974, allocations: 331.4 kB / 0.9525 GB, free: 6.395 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0008567/0.2982, allocations: 0.6437 MB / 0.9531 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.2984, allocations: 33.08 kB / 0.9532 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000644/0.299, allocations: 382.9 kB / 0.9535 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004052/0.2994, allocations: 171.4 kB / 0.9537 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.2996, allocations: 44 kB / 0.9537 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.86e-05/0.2997, allocations: 40 kB / 0.9538 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.2999, allocations: 135.4 kB / 0.9539 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002811/0.3001, allocations: 226.8 kB / 0.9541 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004776/0.3006, allocations: 487.2 kB / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.3006, allocations: 0 / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3006, allocations: 0 / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.792e-05/0.3007, allocations: 4 kB / 0.9546 GB, free: 4.254 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.001722/0.3024, allocations: 0.9053 MB / 0.9555 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3025, allocations: 11.97 kB / 0.9555 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001974/0.3027, allocations: 56.38 kB / 0.9555 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004827/0.3032, allocations: 346.1 kB / 0.9559 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-05/0.3032, allocations: 20.52 kB / 0.9559 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.3034, allocations: 32.36 kB / 0.9559 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.3045, allocations: 231.9 kB / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.3045, allocations: 7.875 kB / 0.9562 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.3045, allocations: 4 kB / 0.9562 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3045, allocations: 4 kB / 0.9562 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008137/0.3054, allocations: 115.9 kB / 0.9563 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.3068, allocations: 0.672 MB / 0.9569 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.3078, allocations: 186.3 kB / 0.9571 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007925/0.3087, allocations: 120.8 kB / 0.9572 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.3087, allocations: 3.984 kB / 0.9572 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.3098, allocations: 227.2 kB / 0.9574 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.705e-06/0.3098, allocations: 4 kB / 0.9574 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.00276/0.3125, allocations: 0.489 MB / 0.9579 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.3126, allocations: 63.41 kB / 0.958 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005862/0.3132, allocations: 437.8 kB / 0.9584 GB, free: 128 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.3133, allocations: 45.69 kB / 0.9584 GB, free: 76 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.3135, allocations: 105.3 kB / 0.9585 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.397e-05/0.3136, allocations: 35.56 kB / 0.9586 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.3139, allocations: 137.3 kB / 0.9587 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.314, allocations: 330.8 kB / 0.959 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.3144, allocations: 135.9 kB / 0.9592 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003712/0.3147, allocations: 205.4 kB / 0.9594 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004574/0.3152, allocations: 302.4 kB / 0.9596 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3152, allocations: 0 / 0.9596 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009473/0.3162, allocations: 0.5263 MB / 0.9602 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.3163, allocations: 91.38 kB / 0.9602 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3163, allocations: 4 kB / 0.9602 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.3163, allocations: 4.188 kB / 0.9603 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.3165, allocations: 31.91 kB / 0.9603 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.3166, allocations: 7.984 kB / 0.9603 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005435/0.3171, allocations: 55.8 kB / 0.9603 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.209e-05/0.3172, allocations: 59.92 kB / 0.9604 GB, free: 13.98 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.000306/0.3175, allocations: 224.3 kB / 0.9606 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.567e-05/0.3176, allocations: 35.53 kB / 0.9606 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.354e-05/0.3177, allocations: 43.8 kB / 0.9607 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3177, allocations: 4 kB / 0.9607 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.3177, allocations: 3.984 kB / 0.9607 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3177, allocations: 0 / 0.9607 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3201, allocations: 0.7939 MB / 0.9615 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3201, allocations: 3.938 kB / 0.9615 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.748e-05/0.3202, allocations: 4 kB / 0.9615 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.3202, allocations: 0 / 0.9615 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.585e-05/0.3202, allocations: 23.91 kB / 0.9615 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3202, allocations: 0 / 0.9615 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3202, allocations: 3.938 kB / 0.9615 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.3221, allocations: 490.7 kB / 0.962 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/0.3224, allocations: 236.5 kB / 0.9622 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.532e-05/0.3225, allocations: 27.92 kB / 0.9622 GB, free: 12 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.3231, allocations: 31.97 kB / 0.9623 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.3231, allocations: 7.984 kB / 0.9623 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.423e-05/0.3232, allocations: 59.98 kB / 0.9623 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003874/0.3236, allocations: 319.1 kB / 0.9626 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3236, allocations: 0 / 0.9626 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004746/0.3241, allocations: 64 kB / 0.9627 GB, free: 11.53 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.0002315/0.3243, allocations: 127.2 kB / 0.9628 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001508/0.3258, allocations: 482.4 kB / 0.9633 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.3258, allocations: 0 / 0.9633 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008144/0.3267, allocations: 128.2 kB / 0.9634 GB, free: 10.78 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.3271, allocations: 43.72 kB / 0.9634 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.3289, allocations: 0.7643 MB / 0.9642 GB, free: 9.941 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.3294, allocations: 0.7977 MB / 0.965 GB, free: 9.117 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.99e-05/0.3294, allocations: 15.44 kB / 0.965 GB, free: 9.102 MB / 0.7481 GB Notification: Performance of SimCode: time 6.31e-07/0.3294, allocations: 0 / 0.965 GB, free: 9.102 MB / 0.7481 GB Notification: Performance of Templates: time 0.0072/0.3366, allocations: 4.088 MB / 0.969 GB, free: 4.961 MB / 0.7481 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.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