Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007992/0.0007992, allocations: 80.48 kB / 19.93 MB, free: 4.633 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.0007667/0.0007667, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.8791/0.8791, allocations: 177.1 MB / 203.5 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.735/1.735, allocations: 389 MB / 0.6338 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 1.001 GB, free: 12.95 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.854e-05, allocations: 2.281 kB / 1.001 GB, free: 12.95 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.001799/0.001817, allocations: 1.736 MB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009181/0.002735, allocations: 0.6167 MB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.631e-05/0.002792, allocations: 3.938 kB / 1.003 GB, free: 10.58 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 9.142e-05/0.002883, allocations: 11.86 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.002991, allocations: 39.56 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.003558, allocations: 374.5 kB / 1.004 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.00394, allocations: 0.597 MB / 1.004 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.771e-05/0.004028, allocations: 17.3 kB / 1.004 GB, free: 9.551 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003912/0.004419, allocations: 423.5 kB / 1.005 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.004608, allocations: 143.7 kB / 1.005 GB, free: 8.996 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 5.074e-05/0.004659, allocations: 40 kB / 1.005 GB, free: 8.957 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.007e-05/0.004709, allocations: 40 kB / 1.005 GB, free: 8.918 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.00481, allocations: 135.6 kB / 1.005 GB, free: 8.785 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.00492, allocations: 143.7 kB / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0004171/0.005337, allocations: 0.639 MB / 1.006 GB, free: 8.004 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.005339, allocations: 0 / 1.006 GB, free: 8.004 MB / 0.9636 GB Notification: Performance of FrontEnd: time 6.61e-07/0.00534, allocations: 0 / 1.006 GB, free: 8.004 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.005344, allocations: 0 / 1.006 GB, free: 8.004 MB / 0.9636 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.0008389/0.006183, allocations: 0.8478 MB / 1.007 GB, free: 7.086 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.006217, allocations: 8.031 kB / 1.007 GB, free: 7.078 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.189e-05/0.006299, allocations: 60.59 kB / 1.007 GB, free: 7.02 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.006569, allocations: 283.9 kB / 1.007 GB, free: 6.715 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.298e-05/0.006602, allocations: 24.36 kB / 1.007 GB, free: 6.691 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.903e-05/0.006651, allocations: 32.34 kB / 1.007 GB, free: 6.66 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005323/0.007183, allocations: 250 kB / 1.007 GB, free: 6.41 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.007191, allocations: 4.188 kB / 1.007 GB, free: 6.406 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.007211, allocations: 4.375 kB / 1.007 GB, free: 6.402 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.007216, allocations: 4.375 kB / 1.007 GB, free: 6.398 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003797/0.007596, allocations: 135.8 kB / 1.007 GB, free: 6.266 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006906/0.008287, allocations: 0.5313 MB / 1.008 GB, free: 5.703 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005173/0.008804, allocations: 190.4 kB / 1.008 GB, free: 5.508 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003576/0.009161, allocations: 120.7 kB / 1.008 GB, free: 5.387 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.00918, allocations: 4 kB / 1.008 GB, free: 5.383 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004731/0.009653, allocations: 251.1 kB / 1.008 GB, free: 5.125 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=16): time 1.452e-06/0.009655, allocations: 0 / 1.008 GB, free: 5.125 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16): time 0.001304/0.01096, allocations: 0.5466 MB / 1.009 GB, free: 4.574 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.01099, allocations: 59.41 kB / 1.009 GB, free: 4.504 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.01129, allocations: 441.9 kB / 1.009 GB, free: 4.062 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.01133, allocations: 41.69 kB / 1.009 GB, free: 4.016 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.926e-05/0.01139, allocations: 101.4 kB / 1.01 GB, free: 3.914 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.806e-05/0.01142, allocations: 35.75 kB / 1.01 GB, free: 3.879 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.01154, allocations: 145.4 kB / 1.01 GB, free: 3.73 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.479e-05/0.01162, allocations: 322.8 kB / 1.01 GB, free: 3.406 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.01185, allocations: 219.3 kB / 1.01 GB, free: 3.18 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.01207, allocations: 273.3 kB / 1.011 GB, free: 2.879 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.01233, allocations: 303.1 kB / 1.011 GB, free: 2.551 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01233, allocations: 0 / 1.011 GB, free: 2.551 MB / 0.9636 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005803/0.01291, allocations: 0.6055 MB / 1.011 GB, free: 1.914 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.553e-05/0.01297, allocations: 93.23 kB / 1.011 GB, free: 1.812 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.01297, allocations: 4 kB / 1.011 GB, free: 1.809 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001701/0.01314, allocations: 4 kB / 1.011 GB, free: 1.805 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.994e-05/0.01323, allocations: 23.92 kB / 1.012 GB, free: 1.781 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.01324, allocations: 4 kB / 1.012 GB, free: 1.777 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.01347, allocations: 60.09 kB / 1.012 GB, free: 1.719 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.01353, allocations: 67.97 kB / 1.012 GB, free: 1.652 MB / 0.9636 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.0001651/0.0137, allocations: 220.3 kB / 1.012 GB, free: 1.426 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.01373, allocations: 43.66 kB / 1.012 GB, free: 1.383 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.608e-05/0.01378, allocations: 47.72 kB / 1.012 GB, free: 1.336 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.01378, allocations: 0 / 1.012 GB, free: 1.336 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.01379, allocations: 0 / 1.012 GB, free: 1.336 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.01379, allocations: 0 / 1.012 GB, free: 1.336 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.01489, allocations: 0.744 MB / 1.013 GB, free: 0.5508 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.0149, allocations: 3.984 kB / 1.013 GB, free: 0.5469 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.884e-05/0.01492, allocations: 8 kB / 1.013 GB, free: 0.5391 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.01492, allocations: 0 / 1.013 GB, free: 0.5391 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/0.01494, allocations: 23.97 kB / 1.013 GB, free: 0.5156 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.01494, allocations: 8 kB / 1.013 GB, free: 0.5078 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.01494, allocations: 0 / 1.013 GB, free: 0.5078 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008489/0.01579, allocations: 0.51 MB / 1.013 GB, free: 15.98 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.01598, allocations: 185.4 kB / 1.013 GB, free: 15.8 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.01602, allocations: 20 kB / 1.013 GB, free: 15.79 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.01623, allocations: 31.97 kB / 1.013 GB, free: 15.75 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.545e-05/0.01626, allocations: 7.984 kB / 1.013 GB, free: 15.75 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.0163, allocations: 63.97 kB / 1.013 GB, free: 15.68 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0002007/0.0165, allocations: 319.1 kB / 1.014 GB, free: 15.38 MB / 0.9792 GB Notification: Performance of sort global known variables: time 6e-08/0.0165, allocations: 0 / 1.014 GB, free: 15.38 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0002236/0.01672, allocations: 67.98 kB / 1.014 GB, free: 15.31 MB / 0.9792 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 9.812e-05/0.01682, allocations: 131.1 kB / 1.014 GB, free: 15.17 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0007089/0.01753, allocations: 0.5174 MB / 1.014 GB, free: 14.62 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01753, allocations: 0 / 1.014 GB, free: 14.62 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.0179, allocations: 136.2 kB / 1.015 GB, free: 14.48 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.01815, allocations: 42.17 kB / 1.015 GB, free: 14.45 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008582/0.01901, allocations: 0.6494 MB / 1.015 GB, free: 13.76 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.01912, allocations: 179 kB / 1.015 GB, free: 13.56 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.656e-05/0.01916, allocations: 20.48 kB / 1.015 GB, free: 13.54 MB / 0.9792 GB Notification: Performance of SimCode: time 3.61e-07/0.01916, allocations: 0 / 1.015 GB, free: 13.54 MB / 0.9792 GB Notification: Performance of Templates: time 0.003815/0.02297, allocations: 4.115 MB / 1.02 GB, free: 9.379 MB / 0.9792 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.437983034178615]