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.0009072/0.0009072, allocations: 76.55 kB / 19.93 MB, free: 4.621 MB / 18.57 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.0008806/0.0008806, allocations: 177.9 kB / 23.22 MB, free: 1.332 MB / 18.57 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 0.8674/0.8674, allocations: 177.2 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.761/1.761, allocations: 377.8 MB / 0.6228 GB, free: 8.645 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.695e-06/2.695e-06, allocations: 0 / 0.9823 GB, free: 2.016 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.599e-05/3.868e-05, allocations: 2.281 kB / 0.9823 GB, free: 2.012 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.002146/0.002185, allocations: 1.734 MB / 0.9839 GB, free: 276 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.00328, allocations: 0.6196 MB / 0.9846 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.505e-05/0.003345, allocations: 0 / 0.9846 GB, free: 15.65 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.003449, allocations: 11.86 kB / 0.9846 GB, free: 15.64 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.003572, allocations: 35.72 kB / 0.9846 GB, free: 15.6 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006316/0.004203, allocations: 373.6 kB / 0.985 GB, free: 15.24 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0004263/0.00463, allocations: 0.6009 MB / 0.9855 GB, free: 14.64 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.687e-05/0.004727, allocations: 21.3 kB / 0.9856 GB, free: 14.62 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.005098, allocations: 419.6 kB / 0.986 GB, free: 14.21 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.005308, allocations: 135.7 kB / 0.9861 GB, free: 14.07 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 5.392e-05/0.005362, allocations: 43.94 kB / 0.9861 GB, free: 14.03 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.332e-05/0.005415, allocations: 47.88 kB / 0.9862 GB, free: 13.98 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.00552, allocations: 127.7 kB / 0.9863 GB, free: 13.86 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.005638, allocations: 151.7 kB / 0.9864 GB, free: 13.71 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.006094, allocations: 0.639 MB / 0.9871 GB, free: 13.07 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.006097, allocations: 0 / 0.9871 GB, free: 13.07 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.504e-06/0.006099, allocations: 3.984 kB / 0.9871 GB, free: 13.07 MB / 0.948 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.006106, allocations: 0 / 0.9871 GB, free: 13.07 MB / 0.948 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.0009138/0.00702, allocations: 0.8417 MB / 0.9879 GB, free: 12.15 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.007056, allocations: 12.03 kB / 0.9879 GB, free: 12.14 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.473e-05/0.007151, allocations: 56.66 kB / 0.988 GB, free: 12.09 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.007458, allocations: 279.9 kB / 0.9882 GB, free: 11.79 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.007493, allocations: 24.31 kB / 0.9883 GB, free: 11.77 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.04e-05/0.007544, allocations: 36.36 kB / 0.9883 GB, free: 11.73 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005602/0.008104, allocations: 246 kB / 0.9885 GB, free: 11.48 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.008114, allocations: 192 / 0.9885 GB, free: 11.48 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.008134, allocations: 4.375 kB / 0.9885 GB, free: 11.48 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.00814, allocations: 384 / 0.9885 GB, free: 11.48 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003767/0.008516, allocations: 139.8 kB / 0.9887 GB, free: 11.34 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007454/0.009262, allocations: 0.5313 MB / 0.9892 GB, free: 10.78 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005187/0.00978, allocations: 190.5 kB / 0.9894 GB, free: 10.59 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.01013, allocations: 124.7 kB / 0.9895 GB, free: 10.46 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.01016, allocations: 11.92 kB / 0.9895 GB, free: 10.45 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.01063, allocations: 247.1 kB / 0.9897 GB, free: 10.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=16): time 1.903e-06/0.01063, allocations: 0 / 0.9897 GB, free: 10.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=16): time 0.001894/0.01253, allocations: 0.5286 MB / 0.9902 GB, free: 9.66 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.01257, allocations: 59.41 kB / 0.9903 GB, free: 9.59 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.01288, allocations: 449.9 kB / 0.9907 GB, free: 9.141 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.01292, allocations: 41.69 kB / 0.9908 GB, free: 9.094 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.916e-05/0.013, allocations: 101.4 kB / 0.9909 GB, free: 8.988 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.01304, allocations: 43.73 kB / 0.9909 GB, free: 8.945 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.01317, allocations: 133.5 kB / 0.991 GB, free: 8.809 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.872e-05/0.01325, allocations: 322.8 kB / 0.9913 GB, free: 8.484 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.01349, allocations: 227.2 kB / 0.9916 GB, free: 8.25 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.01372, allocations: 273.3 kB / 0.9918 GB, free: 7.949 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.01398, allocations: 299.6 kB / 0.9921 GB, free: 7.625 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.01398, allocations: 3.938 kB / 0.9921 GB, free: 7.621 MB / 0.948 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005804/0.01456, allocations: 0.6082 MB / 0.9927 GB, free: 6.984 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.974e-05/0.01462, allocations: 87.38 kB / 0.9928 GB, free: 6.887 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.01462, allocations: 4 kB / 0.9928 GB, free: 6.883 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.01464, allocations: 4.188 kB / 0.9928 GB, free: 6.879 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.445e-05/0.01473, allocations: 23.92 kB / 0.9928 GB, free: 6.855 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.01474, allocations: 7.938 kB / 0.9928 GB, free: 6.848 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.01498, allocations: 63.86 kB / 0.9929 GB, free: 6.785 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.055e-05/0.01504, allocations: 63.97 kB / 0.9929 GB, free: 6.723 MB / 0.948 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.0001638/0.0152, allocations: 224.3 kB / 0.9932 GB, free: 6.492 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.01524, allocations: 43.7 kB / 0.9932 GB, free: 6.449 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.01529, allocations: 39.72 kB / 0.9932 GB, free: 6.41 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.01529, allocations: 4 kB / 0.9932 GB, free: 6.406 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.01529, allocations: 0 / 0.9932 GB, free: 6.406 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.0153, allocations: 0 / 0.9932 GB, free: 6.406 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.01642, allocations: 0.7518 MB / 0.994 GB, free: 5.613 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.01642, allocations: 0 / 0.994 GB, free: 5.613 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.841e-05/0.01644, allocations: 4 kB / 0.994 GB, free: 5.609 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.01644, allocations: 0 / 0.994 GB, free: 5.609 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.01647, allocations: 23.97 kB / 0.994 GB, free: 5.586 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.01647, allocations: 0 / 0.994 GB, free: 5.586 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01647, allocations: 0 / 0.994 GB, free: 5.586 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008525/0.01732, allocations: 0.5151 MB / 0.9945 GB, free: 5.055 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.01752, allocations: 181.4 kB / 0.9947 GB, free: 4.875 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.01756, allocations: 16 kB / 0.9947 GB, free: 4.859 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.01778, allocations: 35.97 kB / 0.9947 GB, free: 4.824 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.72e-05/0.01781, allocations: 11.92 kB / 0.9947 GB, free: 4.812 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.01785, allocations: 63.97 kB / 0.9948 GB, free: 4.75 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.000209/0.01806, allocations: 319.1 kB / 0.9951 GB, free: 4.445 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.01806, allocations: 4 kB / 0.9951 GB, free: 4.441 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000247/0.01831, allocations: 71.95 kB / 0.9952 GB, free: 4.371 MB / 0.948 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.0001329/0.01844, allocations: 124.4 kB / 0.9953 GB, free: 4.242 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0007496/0.01919, allocations: 0.5247 MB / 0.9958 GB, free: 3.684 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.01919, allocations: 4.125 kB / 0.9958 GB, free: 3.68 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003661/0.01956, allocations: 123.9 kB / 0.9959 GB, free: 3.559 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.01983, allocations: 48.31 kB / 0.996 GB, free: 3.516 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000917/0.02074, allocations: 0.6611 MB / 0.9966 GB, free: 2.816 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.02086, allocations: 175 kB / 0.9968 GB, free: 2.629 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.081e-05/0.0209, allocations: 20.48 kB / 0.9968 GB, free: 2.609 MB / 0.948 GB Notification: Performance of SimCode: time 5.01e-07/0.0209, allocations: 0 / 0.9968 GB, free: 2.609 MB / 0.948 GB Notification: Performance of Templates: time 0.003964/0.02486, allocations: 4.117 MB / 1.001 GB, free: 14.45 MB / 0.9636 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/jenkins/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: 7.014415458776057]