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.001452/0.001452, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001262/0.001262, allocations: 165.3 kB / 23.01 MB, free: 1.555 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 1.019/1.019, allocations: 177.1 MB / 203.4 MB, free: 5.641 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 2.177/2.177, allocations: 429.5 MB / 0.6733 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/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.343e-06/1.343e-06, allocations: 0 / 0.8782 GB, free: 6.262 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.661e-05/1.796e-05, allocations: 6.25 kB / 0.8782 GB, free: 6.254 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.001978/0.001995, allocations: 1.793 MB / 0.88 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.003598, allocations: 0.6196 MB / 0.8806 GB, free: 3.852 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.49e-05/0.003663, allocations: 4 kB / 0.8806 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.003764, allocations: 12.94 kB / 0.8806 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.003883, allocations: 39.77 kB / 0.8806 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006461/0.004529, allocations: 360.6 kB / 0.881 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0004155/0.004945, allocations: 0.6009 MB / 0.8816 GB, free: 2.844 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.664e-05/0.005042, allocations: 26.92 kB / 0.8816 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003563/0.005398, allocations: 419.5 kB / 0.882 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.005595, allocations: 139 kB / 0.8821 GB, free: 2.277 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.719e-05/0.005663, allocations: 44 kB / 0.8822 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.996e-05/0.005722, allocations: 40 kB / 0.8822 GB, free: 2.195 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.914e-05/0.005822, allocations: 123.7 kB / 0.8823 GB, free: 2.074 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.005937, allocations: 156.7 kB / 0.8825 GB, free: 1.922 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003218/0.006258, allocations: 426.8 kB / 0.8829 GB, free: 1.504 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.006261, allocations: 3.938 kB / 0.8829 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.81e-07/0.006261, allocations: 0.6562 kB / 0.8829 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.917e-06/0.006265, allocations: 4.719 kB / 0.8829 GB, free: 1.496 MB / 0.8386 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.0008708/0.007136, allocations: 0.9572 MB / 0.8838 GB, free: 476 kB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.007171, allocations: 8.031 kB / 0.8838 GB, free: 468 kB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.007275, allocations: 64.66 kB / 0.8839 GB, free: 404 kB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.007555, allocations: 274.8 kB / 0.8842 GB, free: 104 kB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.007591, allocations: 28.3 kB / 0.8842 GB, free: 76 kB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.088e-05/0.007642, allocations: 32.36 kB / 0.8842 GB, free: 44 kB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003703/0.008013, allocations: 219.2 kB / 0.8844 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.008021, allocations: 192 / 0.8844 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.008043, allocations: 8.375 kB / 0.8844 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.00805, allocations: 384 / 0.8844 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001111/0.008161, allocations: 65.88 kB / 0.8845 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007712/0.008932, allocations: 0.6056 MB / 0.8851 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.009129, allocations: 123.7 kB / 0.8852 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.831e-05/0.009227, allocations: 71.59 kB / 0.8853 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.009249, allocations: 7.938 kB / 0.8853 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.009453, allocations: 193 kB / 0.8855 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=16): time 1.372e-06/0.009454, allocations: 0 / 0.8855 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16): time 0.0005339/0.009988, allocations: 380.3 kB / 0.8858 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.01002, allocations: 59.34 kB / 0.8859 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.01031, allocations: 442.7 kB / 0.8863 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.01034, allocations: 37.7 kB / 0.8863 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.538e-05/0.01041, allocations: 148.1 kB / 0.8865 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.081e-05/0.01044, allocations: 43.66 kB / 0.8865 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.01057, allocations: 147.1 kB / 0.8867 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.01068, allocations: 0.4923 MB / 0.8872 GB, free: 12.92 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.01113, allocations: 183.3 kB / 0.8873 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.01135, allocations: 254.1 kB / 0.8876 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.01158, allocations: 277 kB / 0.8878 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.01158, allocations: 0 / 0.8878 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005512/0.01214, allocations: 0.5718 MB / 0.8884 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/0.01219, allocations: 87.38 kB / 0.8885 GB, free: 11.43 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.0122, allocations: 4.188 kB / 0.8885 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.01222, allocations: 4 kB / 0.8885 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.01233, allocations: 39.91 kB / 0.8885 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.01234, allocations: 0 / 0.8885 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.01251, allocations: 47.86 kB / 0.8886 GB, free: 11.33 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-05/0.01257, allocations: 59.98 kB / 0.8886 GB, free: 11.27 MB / 0.8542 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.000115/0.01268, allocations: 191.1 kB / 0.8888 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.968e-05/0.01273, allocations: 55.58 kB / 0.8889 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.203e-05/0.01278, allocations: 39.73 kB / 0.8889 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.01278, allocations: 0 / 0.8889 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.01278, allocations: 4 kB / 0.8889 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01278, allocations: 0 / 0.8889 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006402/0.01342, allocations: 0.6965 MB / 0.8896 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.01343, allocations: 0 / 0.8896 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-05/0.01345, allocations: 11.98 kB / 0.8896 GB, free: 10.22 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.01345, allocations: 0 / 0.8896 GB, free: 10.22 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.01348, allocations: 19.97 kB / 0.8896 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.01348, allocations: 8 kB / 0.8896 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01348, allocations: 0 / 0.8896 GB, free: 10.2 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.01386, allocations: 463.9 kB / 0.8901 GB, free: 9.723 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.01403, allocations: 169.5 kB / 0.8902 GB, free: 9.555 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.01408, allocations: 16 kB / 0.8902 GB, free: 9.539 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.01422, allocations: 23.97 kB / 0.8903 GB, free: 9.516 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.01425, allocations: 11.98 kB / 0.8903 GB, free: 9.504 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.0143, allocations: 63.97 kB / 0.8903 GB, free: 9.441 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001628/0.01446, allocations: 279.1 kB / 0.8906 GB, free: 9.168 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01446, allocations: 0 / 0.8906 GB, free: 9.168 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002219/0.01468, allocations: 64 kB / 0.8907 GB, free: 9.105 MB / 0.8542 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.0001054/0.01479, allocations: 127.9 kB / 0.8908 GB, free: 8.973 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004889/0.01528, allocations: 457 kB / 0.8912 GB, free: 8.488 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01528, allocations: 4.125 kB / 0.8912 GB, free: 8.484 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.01539, allocations: 79.59 kB / 0.8913 GB, free: 8.402 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.01567, allocations: 69.53 kB / 0.8914 GB, free: 8.336 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005686/0.01624, allocations: 498.8 kB / 0.8918 GB, free: 7.816 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.098e-05/0.01629, allocations: 87.81 kB / 0.8919 GB, free: 7.711 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.734e-05/0.01633, allocations: 17.48 kB / 0.8919 GB, free: 7.695 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.498e-05/0.01637, allocations: 16.5 kB / 0.892 GB, free: 7.68 MB / 0.8542 GB Notification: Performance of SimCode: time 7.92e-07/0.01637, allocations: 0 / 0.892 GB, free: 7.68 MB / 0.8542 GB Notification: Performance of Templates: time 0.007443/0.02381, allocations: 6.416 MB / 0.8982 GB, free: 1.227 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.683363914955407]