Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Reals.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_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.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_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 105.1 kB / 15.98 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.001232/0.001232, allocations: 199.1 kB / 16.91 MB, free: 6.188 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.321/1.321, 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 11.1.0-maint.11.x/package.mo): time 2.611/2.611, allocations: 469.8 MB / 0.7427 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001849, allocations: 67.91 kB / 0.9087 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.295, allocations: 159.2 MB / 1.064 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.00315/0.2982, allocations: 1.789 MB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.2997, allocations: 0.6246 MB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.42e-05/0.2998, allocations: 3.938 kB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.2999, allocations: 7.938 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.3, allocations: 23.84 kB / 1.067 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008074/0.3009, allocations: 338.8 kB / 1.067 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0006633/0.3016, allocations: 0.6399 MB / 1.068 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.3017, allocations: 33.08 kB / 1.068 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005/0.3022, allocations: 378.9 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002795/0.3025, allocations: 183.1 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.421e-05/0.3026, allocations: 40 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.3027, allocations: 40 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001531/0.3028, allocations: 131.6 kB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002314/0.3031, allocations: 222.8 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.3036, allocations: 495.3 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.3036, allocations: 0 / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3036, allocations: 0 / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.612e-06/0.3036, allocations: 0 / 1.069 GB, free: 10.16 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.001382/0.305, allocations: 0.913 MB / 1.07 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.305, allocations: 12.03 kB / 1.07 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.3052, allocations: 56.41 kB / 1.07 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.3056, allocations: 326.2 kB / 1.07 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.86e-05/0.3057, allocations: 24.55 kB / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-05/0.3058, allocations: 32.36 kB / 1.07 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.3068, allocations: 235.8 kB / 1.071 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3068, allocations: 3.938 kB / 1.071 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.3069, allocations: 4 kB / 1.071 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3069, allocations: 7.938 kB / 1.071 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000791/0.3077, allocations: 115.9 kB / 1.071 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.309, allocations: 0.6798 MB / 1.071 GB, free: 7.578 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.31, allocations: 190.4 kB / 1.071 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007299/0.3108, allocations: 112.8 kB / 1.072 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.3108, allocations: 4 kB / 1.072 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009951/0.3118, allocations: 233 kB / 1.072 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 2.064e-06/0.3118, allocations: 0 / 1.072 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002627/0.3144, allocations: 0.489 MB / 1.072 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.3145, allocations: 63.39 kB / 1.072 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004792/0.315, allocations: 441.9 kB / 1.073 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.497e-05/0.3151, allocations: 41.7 kB / 1.073 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.854e-05/0.3152, allocations: 101.3 kB / 1.073 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.689e-05/0.3152, allocations: 43.47 kB / 1.073 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.3155, allocations: 137.3 kB / 1.073 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3156, allocations: 330.8 kB / 1.073 GB, free: 5.352 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/0.3159, allocations: 135.9 kB / 1.074 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.3163, allocations: 198.6 kB / 1.074 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.3167, allocations: 299.3 kB / 1.074 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3167, allocations: 0 / 1.074 GB, free: 4.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009138/0.3176, allocations: 0.5201 MB / 1.075 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.331e-05/0.3177, allocations: 91.38 kB / 1.075 GB, free: 4.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.3177, allocations: 4 kB / 1.075 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.3177, allocations: 4 kB / 1.075 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3179, allocations: 23.92 kB / 1.075 GB, free: 4.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3179, allocations: 12.17 kB / 1.075 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004948/0.3184, allocations: 55.8 kB / 1.075 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.259e-05/0.3185, allocations: 63.92 kB / 1.075 GB, free: 3.879 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.0002594/0.3188, allocations: 212.3 kB / 1.075 GB, free: 3.664 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.274e-05/0.3189, allocations: 39.52 kB / 1.075 GB, free: 3.625 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.971e-05/0.319, allocations: 43.8 kB / 1.075 GB, free: 3.582 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.319, allocations: 4 kB / 1.075 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.319, allocations: 0 / 1.075 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.319, allocations: 3.984 kB / 1.075 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/0.3212, allocations: 0.7998 MB / 1.076 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3212, allocations: 0 / 1.076 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.853e-05/0.3213, allocations: 7.984 kB / 1.076 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3213, allocations: 0 / 1.076 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.3213, allocations: 19.92 kB / 1.076 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.3213, allocations: 4 kB / 1.076 GB, free: 2.688 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3213, allocations: 0 / 1.076 GB, free: 2.688 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.3231, allocations: 485.7 kB / 1.076 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000284/0.3234, allocations: 244.5 kB / 1.077 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.063e-05/0.3235, allocations: 19.94 kB / 1.077 GB, free: 1.922 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.3239, allocations: 39.95 kB / 1.077 GB, free: 1.883 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.324, allocations: 8 kB / 1.077 GB, free: 1.875 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.3241, allocations: 59.97 kB / 1.077 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003598/0.3245, allocations: 315.1 kB / 1.077 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3245, allocations: 0 / 1.077 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004178/0.3249, allocations: 71.98 kB / 1.077 GB, free: 1.441 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.0002155/0.3251, allocations: 127.9 kB / 1.077 GB, free: 1.305 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00138/0.3265, allocations: 490.7 kB / 1.078 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3265, allocations: 0 / 1.078 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007782/0.3273, allocations: 116.3 kB / 1.078 GB, free: 0.6875 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.3277, allocations: 45.52 kB / 1.078 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.406/0.7337, allocations: 0.7574 MB / 1.079 GB, free: 22.59 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.7341, allocations: 0.7814 MB / 1.079 GB, free: 21.89 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.55e-05/0.7342, allocations: 21.33 kB / 1.079 GB, free: 21.88 MB / 0.8419 GB Notification: Performance of SimCode: time 1.502e-06/0.7342, allocations: 1.438 kB / 1.079 GB, free: 21.88 MB / 0.8419 GB Notification: Performance of Templates: time 0.007467/0.7416, allocations: 4.108 MB / 1.083 GB, free: 21.45 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.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