Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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.0007958/0.0007958, allocations: 76.55 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.0007801/0.0007801, allocations: 181.9 kB / 23.22 MB, free: 1.348 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.895/0.895, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.749/1.749, allocations: 389 MB / 0.6338 GB, free: 12.72 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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 3.938 kB / 1.001 GB, free: 12.96 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.75e-05/1.897e-05, allocations: 9.172 kB / 1.001 GB, free: 12.95 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.001759/0.001778, allocations: 1.716 MB / 1.003 GB, free: 11.23 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009262/0.002704, allocations: 0.6128 MB / 1.003 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.221e-05/0.002756, allocations: 4 kB / 1.003 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 8.711e-05/0.002843, allocations: 15.86 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.002948, allocations: 39.5 kB / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005656/0.003513, allocations: 374 kB / 1.004 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003739/0.003887, allocations: 0.6009 MB / 1.004 GB, free: 9.59 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.003975, allocations: 25.28 kB / 1.004 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.004308, allocations: 419.6 kB / 1.005 GB, free: 9.152 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.004491, allocations: 135.7 kB / 1.005 GB, free: 9.02 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 5.023e-05/0.004541, allocations: 43.94 kB / 1.005 GB, free: 8.977 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.708e-05/0.004588, allocations: 40 kB / 1.005 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 9.704e-05/0.004685, allocations: 131.6 kB / 1.005 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.00479, allocations: 155.7 kB / 1.005 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0006537/0.005444, allocations: 0.6312 MB / 1.006 GB, free: 8.023 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.005447, allocations: 3.984 kB / 1.006 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.02e-07/0.005448, allocations: 0 / 1.006 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.005453, allocations: 0 / 1.006 GB, free: 8.02 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.0007972/0.00625, allocations: 0.8378 MB / 1.007 GB, free: 7.109 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.00628, allocations: 12.03 kB / 1.007 GB, free: 7.098 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.224e-05/0.006362, allocations: 56.66 kB / 1.007 GB, free: 7.043 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.006628, allocations: 283.9 kB / 1.007 GB, free: 6.738 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.231e-05/0.006661, allocations: 24.34 kB / 1.007 GB, free: 6.715 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.768e-05/0.006708, allocations: 36.36 kB / 1.007 GB, free: 6.68 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.007238, allocations: 248 kB / 1.007 GB, free: 6.434 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.007246, allocations: 192 / 1.007 GB, free: 6.434 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.007264, allocations: 4.375 kB / 1.007 GB, free: 6.43 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.007269, allocations: 4.312 kB / 1.007 GB, free: 6.426 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/0.007646, allocations: 135.8 kB / 1.007 GB, free: 6.293 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.008333, allocations: 0.5352 MB / 1.008 GB, free: 5.727 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000512/0.008845, allocations: 182.5 kB / 1.008 GB, free: 5.539 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003548/0.0092, allocations: 132.7 kB / 1.008 GB, free: 5.406 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.009217, allocations: 0 / 1.008 GB, free: 5.406 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004586/0.009676, allocations: 243.1 kB / 1.008 GB, free: 5.156 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=16): time 1.212e-06/0.009677, allocations: 7.938 kB / 1.008 GB, free: 5.148 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16): time 0.001276/0.01095, allocations: 0.5391 MB / 1.009 GB, free: 4.605 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.01099, allocations: 63.41 kB / 1.009 GB, free: 4.531 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.01128, allocations: 445.9 kB / 1.009 GB, free: 4.086 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.01132, allocations: 41.69 kB / 1.009 GB, free: 4.039 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.719e-05/0.01138, allocations: 97.44 kB / 1.01 GB, free: 3.941 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.01141, allocations: 47.67 kB / 1.01 GB, free: 3.895 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.01153, allocations: 129.5 kB / 1.01 GB, free: 3.762 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.247e-05/0.0116, allocations: 326.8 kB / 1.01 GB, free: 3.434 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.01181, allocations: 223.2 kB / 1.01 GB, free: 3.203 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.01204, allocations: 273.3 kB / 1.011 GB, free: 2.902 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002466/0.01229, allocations: 303.4 kB / 1.011 GB, free: 2.574 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.01229, allocations: 0 / 1.011 GB, free: 2.574 MB / 0.9636 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005518/0.01285, allocations: 0.6054 MB / 1.011 GB, free: 1.938 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.515e-05/0.0129, allocations: 87.38 kB / 1.011 GB, free: 1.84 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.01291, allocations: 4 kB / 1.011 GB, free: 1.836 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.01292, allocations: 4.188 kB / 1.011 GB, free: 1.832 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.988e-05/0.01301, allocations: 23.92 kB / 1.012 GB, free: 1.809 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.01302, allocations: 4 kB / 1.012 GB, free: 1.805 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.01325, allocations: 59.91 kB / 1.012 GB, free: 1.746 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.739e-05/0.01331, allocations: 63.97 kB / 1.012 GB, free: 1.684 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.000166/0.01348, allocations: 224.3 kB / 1.012 GB, free: 1.453 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.695e-05/0.01351, allocations: 47.66 kB / 1.012 GB, free: 1.406 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.811e-05/0.01356, allocations: 43.72 kB / 1.012 GB, free: 1.363 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.01356, allocations: 4 kB / 1.012 GB, free: 1.359 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.01357, allocations: 0 / 1.012 GB, free: 1.359 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.01357, allocations: 0 / 1.012 GB, free: 1.359 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.01493, allocations: 0.7479 MB / 1.013 GB, free: 0.5703 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01494, allocations: 4 kB / 1.013 GB, free: 0.5664 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.923e-05/0.01496, allocations: 4 kB / 1.013 GB, free: 0.5625 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.01496, allocations: 0 / 1.013 GB, free: 0.5625 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/0.01498, allocations: 23.97 kB / 1.013 GB, free: 0.5391 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.01498, allocations: 3.984 kB / 1.013 GB, free: 0.5352 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01498, allocations: 0 / 1.013 GB, free: 0.5352 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008492/0.01583, allocations: 0.5112 MB / 1.013 GB, free: 8 kB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.01603, allocations: 181.4 kB / 1.013 GB, free: 15.83 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.553e-05/0.01607, allocations: 16 kB / 1.013 GB, free: 15.82 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.01629, allocations: 35.97 kB / 1.013 GB, free: 15.78 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.797e-05/0.01632, allocations: 11.92 kB / 1.013 GB, free: 15.77 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.01636, allocations: 59.97 kB / 1.013 GB, free: 15.71 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.0002001/0.01656, allocations: 323.1 kB / 1.014 GB, free: 15.4 MB / 0.9792 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01656, allocations: 4 kB / 1.014 GB, free: 15.39 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.000226/0.01679, allocations: 71.94 kB / 1.014 GB, free: 15.32 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 0.0001068/0.0169, allocations: 119.2 kB / 1.014 GB, free: 15.2 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0007346/0.01763, allocations: 0.5315 MB / 1.015 GB, free: 14.63 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.01763, allocations: 0 / 1.015 GB, free: 14.63 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.018, allocations: 123.9 kB / 1.015 GB, free: 14.51 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.01825, allocations: 49.48 kB / 1.015 GB, free: 14.46 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008677/0.01912, allocations: 0.6573 MB / 1.015 GB, free: 13.77 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001169/0.01924, allocations: 179 kB / 1.015 GB, free: 13.57 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.74e-05/0.01928, allocations: 20.48 kB / 1.016 GB, free: 13.55 MB / 0.9792 GB Notification: Performance of SimCode: time 5.61e-07/0.01928, allocations: 0 / 1.016 GB, free: 13.55 MB / 0.9792 GB Notification: Performance of Templates: time 0.003939/0.02322, allocations: 4.107 MB / 1.02 GB, free: 9.402 MB / 0.9792 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.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.560539361089468]