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.001361/0.001361, allocations: 104.3 kB / 16.27 MB, free: 6.414 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.001388/0.001388, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.223/2.223, allocations: 390.3 MB / 0.6653 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 67.45 kB / 0.8132 GB, free: 32.97 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2956, allocations: 140.4 MB / 0.9503 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.003369/0.299, allocations: 1.746 MB / 0.952 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.3005, allocations: 0.6205 MB / 0.9526 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.3006, allocations: 0 / 0.9526 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.3008, allocations: 19.8 kB / 0.9526 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.301, allocations: 27.8 kB / 0.9527 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.302, allocations: 371.1 kB / 0.953 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007495/0.3028, allocations: 0.6282 MB / 0.9536 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.3029, allocations: 45.06 kB / 0.9537 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004915/0.3034, allocations: 299.6 kB / 0.9539 GB, free: 5.109 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.3038, allocations: 151.5 kB / 0.9541 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.3039, allocations: 40 kB / 0.9541 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.304, allocations: 44 kB / 0.9542 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.3042, allocations: 119.7 kB / 0.9543 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.3045, allocations: 223 kB / 0.9545 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005867/0.3051, allocations: 0.5961 MB / 0.9551 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3051, allocations: 0 / 0.9551 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.103e-06/0.3051, allocations: 0 / 0.9551 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.003e-05/0.3051, allocations: 4 kB / 0.9551 GB, free: 3.941 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.001533/0.3066, allocations: 0.9053 MB / 0.956 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3067, allocations: 16.02 kB / 0.956 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.3068, allocations: 56.38 kB / 0.956 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/0.3073, allocations: 330.1 kB / 0.9564 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.81e-05/0.3074, allocations: 24.55 kB / 0.9564 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.889e-05/0.3075, allocations: 32.36 kB / 0.9564 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.3086, allocations: 240 kB / 0.9566 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.3086, allocations: 3.938 kB / 0.9566 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.3086, allocations: 4 kB / 0.9566 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.3087, allocations: 7.938 kB / 0.9567 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008311/0.3095, allocations: 107.9 kB / 0.9568 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.3109, allocations: 0.6798 MB / 0.9574 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.312, allocations: 182.4 kB / 0.9576 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007856/0.3128, allocations: 116.8 kB / 0.9577 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.3128, allocations: 7.938 kB / 0.9577 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009788/0.3138, allocations: 229.8 kB / 0.9579 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.715e-06/0.3138, allocations: 0 / 0.9579 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002693/0.3165, allocations: 0.4891 MB / 0.9584 GB, free: 332 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.3166, allocations: 59.34 kB / 0.9585 GB, free: 260 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005663/0.3171, allocations: 445.8 kB / 0.9589 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.221e-05/0.3172, allocations: 41.69 kB / 0.9589 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3174, allocations: 109.3 kB / 0.959 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/0.3174, allocations: 35.53 kB / 0.9591 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.3177, allocations: 137.3 kB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3178, allocations: 330.8 kB / 0.9595 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003129/0.3181, allocations: 139.9 kB / 0.9596 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.3185, allocations: 193.9 kB / 0.9598 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.3189, allocations: 303.1 kB / 0.9601 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3189, allocations: 3.938 kB / 0.9601 GB, free: 14.47 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009078/0.3198, allocations: 0.528 MB / 0.9606 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.688e-05/0.3199, allocations: 95.38 kB / 0.9607 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3199, allocations: 0 / 0.9607 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.32, allocations: 4 kB / 0.9607 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001647/0.3201, allocations: 19.92 kB / 0.9608 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3201, allocations: 4 kB / 0.9608 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000534/0.3207, allocations: 67.97 kB / 0.9608 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.99e-05/0.3208, allocations: 67.91 kB / 0.9609 GB, free: 13.66 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.0002573/0.3211, allocations: 212.3 kB / 0.9611 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.3212, allocations: 35.53 kB / 0.9611 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.989e-05/0.3212, allocations: 47.78 kB / 0.9612 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3212, allocations: 0 / 0.9612 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3213, allocations: 4 kB / 0.9612 GB, free: 13.35 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3213, allocations: 0 / 0.9612 GB, free: 13.35 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3236, allocations: 0.787 MB / 0.9619 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3236, allocations: 8 kB / 0.9619 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.668e-05/0.3237, allocations: 4 kB / 0.962 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.3237, allocations: 4 kB / 0.962 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.803e-05/0.3237, allocations: 23.91 kB / 0.962 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.3237, allocations: 0 / 0.962 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3237, allocations: 0 / 0.962 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/0.3255, allocations: 485 kB / 0.9624 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.3258, allocations: 248.4 kB / 0.9627 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.814e-05/0.3259, allocations: 19.94 kB / 0.9627 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004797/0.3264, allocations: 31.97 kB / 0.9627 GB, free: 11.67 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.3265, allocations: 7.984 kB / 0.9627 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.72e-05/0.3266, allocations: 59.97 kB / 0.9628 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003406/0.3269, allocations: 319.1 kB / 0.9631 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3269, allocations: 0 / 0.9631 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004329/0.3273, allocations: 71.98 kB / 0.9632 GB, free: 11.22 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.0002146/0.3276, allocations: 132.2 kB / 0.9633 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001449/0.329, allocations: 482.7 kB / 0.9638 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.329, allocations: 0 / 0.9638 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0007993/0.3298, allocations: 131.1 kB / 0.9639 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.3303, allocations: 35.03 kB / 0.9639 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.3321, allocations: 0.6391 MB / 0.9645 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.3326, allocations: 0.7901 MB / 0.9653 GB, free: 8.945 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.955e-05/0.3327, allocations: 19.42 kB / 0.9653 GB, free: 8.926 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.3327, allocations: 0 / 0.9653 GB, free: 8.926 MB / 0.7481 GB Notification: Performance of Templates: time 0.007247/0.3399, allocations: 4.095 MB / 0.9693 GB, free: 4.773 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