Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 185.3 kB / 16.93 MB, free: 6.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.626/2.626, allocations: 437.8 MB / 0.7128 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003414/0.0003415, allocations: 8 kB / 0.8735 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7247/0.725, allocations: 153.8 MB / 1.024 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.001901/0.727, allocations: 1.452 MB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.7284, allocations: 0.6755 MB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.7285, allocations: 3.938 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.434e-05/0.7286, allocations: 3.938 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.7288, allocations: 39.78 kB / 1.026 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008669/0.7296, allocations: 339 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005936/0.7303, allocations: 0.5345 MB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.7304, allocations: 28.89 kB / 1.027 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005436/0.7309, allocations: 311.1 kB / 1.027 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.7313, allocations: 171.2 kB / 1.027 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.644e-05/0.7314, allocations: 16 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.161e-05/0.7315, allocations: 15.94 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.7316, allocations: 107.7 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002499/0.7319, allocations: 224.5 kB / 1.028 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.7323, allocations: 476.8 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.7324, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.444e-06/0.7324, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.638e-05/0.7324, allocations: 0 / 1.028 GB, free: 11.43 MB / 0.7794 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.00129/0.7337, allocations: 0.7809 MB / 1.029 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.7337, allocations: 15.98 kB / 1.029 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.7339, allocations: 56.45 kB / 1.029 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.7343, allocations: 334.1 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.7344, allocations: 24.55 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.937e-05/0.7345, allocations: 32.36 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.7356, allocations: 245.9 kB / 1.029 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.7356, allocations: 3.938 kB / 1.029 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.7356, allocations: 4 kB / 1.029 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.7357, allocations: 4 kB / 1.029 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008349/0.7365, allocations: 123.9 kB / 1.03 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.7378, allocations: 0.6837 MB / 1.03 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.7389, allocations: 198.4 kB / 1.03 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007821/0.7397, allocations: 128.8 kB / 1.031 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.7398, allocations: 4 kB / 1.031 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000982/0.7407, allocations: 249.4 kB / 1.031 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.204e-06/0.7408, allocations: 4 kB / 1.031 GB, free: 8.363 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002711/0.7435, allocations: 0.5164 MB / 1.031 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.7435, allocations: 59.39 kB / 1.031 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004841/0.744, allocations: 445.8 kB / 1.032 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.499e-05/0.7441, allocations: 45.69 kB / 1.032 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.7442, allocations: 97.44 kB / 1.032 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/0.7443, allocations: 43.45 kB / 1.032 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.509e-05/0.7444, allocations: 37.69 kB / 1.032 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.7445, allocations: 326.8 kB / 1.032 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.7448, allocations: 147.9 kB / 1.032 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.7451, allocations: 189.9 kB / 1.033 GB, free: 6.414 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004215/0.7456, allocations: 312.1 kB / 1.033 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.7456, allocations: 0 / 1.033 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000912/0.7465, allocations: 0.5124 MB / 1.033 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.261e-05/0.7466, allocations: 95.38 kB / 1.033 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.7466, allocations: 4.188 kB / 1.034 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.7466, allocations: 8 kB / 1.034 GB, free: 5.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.7468, allocations: 19.92 kB / 1.034 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.7468, allocations: 8 kB / 1.034 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005282/0.7473, allocations: 67.83 kB / 1.034 GB, free: 5.336 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.792e-05/0.7474, allocations: 71.92 kB / 1.034 GB, free: 5.266 MB / 0.7794 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.0003148/0.7478, allocations: 216.8 kB / 1.034 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.428e-05/0.7478, allocations: 35.53 kB / 1.034 GB, free: 5.008 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.09e-05/0.7479, allocations: 39.78 kB / 1.034 GB, free: 4.965 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.7479, allocations: 4 kB / 1.034 GB, free: 4.961 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.748, allocations: 3.984 kB / 1.034 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.748, allocations: 0 / 1.034 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002285/0.7503, allocations: 0.8167 MB / 1.035 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.7503, allocations: 0 / 1.035 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.7503, allocations: 7.938 kB / 1.035 GB, free: 4.078 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.7503, allocations: 0 / 1.035 GB, free: 4.078 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.229e-05/0.7504, allocations: 27.91 kB / 1.035 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.7504, allocations: 0 / 1.035 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.7504, allocations: 4 kB / 1.035 GB, free: 4.047 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.7522, allocations: 0.491 MB / 1.035 GB, free: 3.539 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002806/0.7525, allocations: 244.4 kB / 1.036 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.87e-05/0.7526, allocations: 19.94 kB / 1.036 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004771/0.7531, allocations: 31.97 kB / 1.036 GB, free: 3.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.7531, allocations: 15.98 kB / 1.036 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.126e-05/0.7532, allocations: 59.97 kB / 1.036 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003184/0.7535, allocations: 315.1 kB / 1.036 GB, free: 2.852 MB / 0.7794 GB Notification: Performance of sort global known variables: time 5.81e-07/0.7535, allocations: 4 kB / 1.036 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004392/0.754, allocations: 71.89 kB / 1.036 GB, free: 2.777 MB / 0.7794 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.0001815/0.7542, allocations: 123.2 kB / 1.036 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.7555, allocations: 483.8 kB / 1.037 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.7555, allocations: 0 / 1.037 GB, free: 2.152 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008001/0.7564, allocations: 144.2 kB / 1.037 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.7568, allocations: 38.03 kB / 1.037 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.7585, allocations: 0.7827 MB / 1.038 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.7588, allocations: 0.7828 MB / 1.038 GB, free: 356 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.871e-05/0.7589, allocations: 15.44 kB / 1.038 GB, free: 340 kB / 0.7794 GB Notification: Performance of SimCode: time 5.21e-07/0.7589, allocations: 0 / 1.038 GB, free: 340 kB / 0.7794 GB Notification: Performance of Templates: time 0.006432/0.7653, allocations: 4.079 MB / 1.042 GB, free: 12.21 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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