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.00204/0.00204, allocations: 84.05 kB / 19.18 MB, free: 2.523 MB / 14.72 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.002255/0.002255, allocations: 167.6 kB / 22.46 MB, free: 5.359 MB / 14.72 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 1.515/1.515, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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 2.922/2.922, allocations: 389 MB / 0.633 GB, free: 1.031 MB / 0.5919 GB " [Timeout remaining time 176] 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.673e-06/1.673e-06, allocations: 0 / 1 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.916e-05/3.083e-05, allocations: 2.281 kB / 1 GB, free: 7.246 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002945/0.002976, allocations: 1.74 MB / 1.002 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.004404, allocations: 0.6128 MB / 1.002 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.744e-05/0.004472, allocations: 0 / 1.002 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.004573, allocations: 11.88 kB / 1.002 GB, free: 4.875 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.004707, allocations: 43.5 kB / 1.003 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008816/0.005589, allocations: 373.5 kB / 1.003 GB, free: 4.469 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006892/0.006278, allocations: 0.6047 MB / 1.003 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.006384, allocations: 25.28 kB / 1.004 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006094/0.006993, allocations: 419.6 kB / 1.004 GB, free: 3.426 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000319/0.007312, allocations: 131.7 kB / 1.004 GB, free: 3.297 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.007431, allocations: 44 kB / 1.004 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.00755, allocations: 44 kB / 1.004 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.007771, allocations: 131.6 kB / 1.004 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.007994, allocations: 151.7 kB / 1.004 GB, free: 2.934 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007745/0.008769, allocations: 0.6467 MB / 1.005 GB, free: 2.285 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.008772, allocations: 0 / 1.005 GB, free: 2.285 MB / 0.9512 GB Notification: Performance of FrontEnd: time 8.82e-07/0.008773, allocations: 0 / 1.005 GB, free: 2.285 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.008779, allocations: 0 / 1.005 GB, free: 2.285 MB / 0.9512 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.001411/0.01019, allocations: 0.8378 MB / 1.006 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.01023, allocations: 11.98 kB / 1.006 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.01036, allocations: 56.64 kB / 1.006 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.01081, allocations: 283.9 kB / 1.006 GB, free: 1.004 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.678e-05/0.01087, allocations: 24.36 kB / 1.006 GB, free: 0.9805 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.134e-05/0.01095, allocations: 28.36 kB / 1.006 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.01209, allocations: 251.5 kB / 1.006 GB, free: 0.7031 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.0121, allocations: 192 / 1.006 GB, free: 0.7031 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.01214, allocations: 4.375 kB / 1.006 GB, free: 0.6992 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.01214, allocations: 384 / 1.006 GB, free: 0.6992 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008906/0.01303, allocations: 139.8 kB / 1.007 GB, free: 0.5625 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.01434, allocations: 0.5391 MB / 1.007 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.01552, allocations: 182.4 kB / 1.007 GB, free: 15.8 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008618/0.01638, allocations: 128.7 kB / 1.007 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.0164, allocations: 0 / 1.007 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/0.01749, allocations: 247.2 kB / 1.008 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 1.834e-06/0.01749, allocations: 3.938 kB / 1.008 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002952/0.02044, allocations: 0.5324 MB / 1.008 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.201e-05/0.02051, allocations: 59.41 kB / 1.008 GB, free: 14.81 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005168/0.02102, allocations: 445.9 kB / 1.009 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 7.748e-05/0.0211, allocations: 41.69 kB / 1.009 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.02121, allocations: 101.4 kB / 1.009 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.632e-05/0.02125, allocations: 43.67 kB / 1.009 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002411/0.02149, allocations: 141.4 kB / 1.009 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.02165, allocations: 322.8 kB / 1.009 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/0.02203, allocations: 223.3 kB / 1.01 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004256/0.02246, allocations: 269.2 kB / 1.01 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004492/0.02291, allocations: 300.2 kB / 1.01 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.02291, allocations: 0 / 1.01 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001024/0.02393, allocations: 0.6093 MB / 1.011 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.02404, allocations: 91.56 kB / 1.011 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.02405, allocations: 0 / 1.011 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.02407, allocations: 4 kB / 1.011 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.02423, allocations: 19.98 kB / 1.011 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.02424, allocations: 3.938 kB / 1.011 GB, free: 12.08 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005116/0.02475, allocations: 71.78 kB / 1.011 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.02486, allocations: 63.97 kB / 1.011 GB, free: 11.95 MB / 0.9669 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.0002639/0.02512, allocations: 216.9 kB / 1.011 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.506e-05/0.02519, allocations: 47.66 kB / 1.011 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.206e-05/0.02526, allocations: 43.72 kB / 1.011 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.02526, allocations: 7.938 kB / 1.011 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.02527, allocations: 0 / 1.011 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.02527, allocations: 0 / 1.011 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.02765, allocations: 0.7363 MB / 1.012 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.02765, allocations: 3.938 kB / 1.012 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.678e-05/0.02769, allocations: 7.938 kB / 1.012 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.02769, allocations: 4 kB / 1.012 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.361e-05/0.02774, allocations: 23.97 kB / 1.012 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.02774, allocations: 0 / 1.012 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.02774, allocations: 0 / 1.012 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.02971, allocations: 0.5211 MB / 1.012 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.03004, allocations: 173.5 kB / 1.013 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.463e-05/0.03012, allocations: 16 kB / 1.013 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005167/0.03064, allocations: 35.97 kB / 1.013 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.03068, allocations: 15.97 kB / 1.013 GB, free: 10.04 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-05/0.03075, allocations: 59.98 kB / 1.013 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003509/0.03111, allocations: 319.1 kB / 1.013 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.03111, allocations: 0 / 1.013 GB, free: 9.676 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003646/0.03147, allocations: 68 kB / 1.013 GB, free: 9.609 MB / 0.9669 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.0001905/0.03166, allocations: 127.1 kB / 1.013 GB, free: 9.477 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001521/0.03318, allocations: 0.5291 MB / 1.014 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.03318, allocations: 0 / 1.014 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0008745/0.03406, allocations: 127.9 kB / 1.014 GB, free: 8.785 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.03449, allocations: 38.42 kB / 1.014 GB, free: 8.754 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.03626, allocations: 0.6207 MB / 1.015 GB, free: 8.105 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.03647, allocations: 175 kB / 1.015 GB, free: 7.914 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.454e-05/0.03655, allocations: 13.48 kB / 1.015 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.0366, allocations: 24.48 kB / 1.015 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of SimCode: time 3.81e-07/0.0366, allocations: 0 / 1.015 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of Templates: time 0.01173/0.04834, allocations: 6.382 MB / 1.021 GB, free: 1.438 MB / 0.9669 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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.59991218149662]