Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Utilities.Time.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 105.2 kB / 15.99 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.418/1.418, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.837/2.837, allocations: 482.4 MB / 0.755 GB, free: 7.129 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 71.39 kB / 0.924 GB, free: 320 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7955/0.7975, allocations: 162.2 MB / 1.082 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus): time 0.002555/0.8001, allocations: 1.563 MB / 1.084 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.8012, allocations: 0.5458 MB / 1.084 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.008e-05/0.8012, allocations: 0 / 1.084 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.507e-05/0.8014, allocations: 6.531 kB / 1.084 GB, free: 164 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.8015, allocations: 17.91 kB / 1.084 GB, free: 160 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006891/0.8022, allocations: 288.4 kB / 1.085 GB, free: 8 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006338/0.8028, allocations: 0.5051 MB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.274e-05/0.8029, allocations: 17.38 kB / 1.085 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005206/0.8034, allocations: 337.8 kB / 1.086 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003073/0.8037, allocations: 168.2 kB / 1.086 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.783e-05/0.8038, allocations: 26.88 kB / 1.086 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.961e-05/0.8039, allocations: 26.53 kB / 1.086 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.8041, allocations: 125 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000233/0.8043, allocations: 193.6 kB / 1.086 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.8047, allocations: 318 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.8047, allocations: 1.062 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.492e-06/0.8047, allocations: 11.88 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.8047, allocations: 0 / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.00142/0.8062, allocations: 0.864 MB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.8062, allocations: 9.375 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.8064, allocations: 50.47 kB / 1.087 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.8068, allocations: 310.7 kB / 1.088 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.227e-05/0.8068, allocations: 16.94 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.442e-05/0.8069, allocations: 25.09 kB / 1.088 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.808, allocations: 212.7 kB / 1.088 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.8081, allocations: 192 / 1.088 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.745e-05/0.8081, allocations: 10.12 kB / 1.088 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.8081, allocations: 2.094 kB / 1.088 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008036/0.8089, allocations: 101.1 kB / 1.088 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005413/0.8095, allocations: 399.7 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.8106, allocations: 179.1 kB / 1.089 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008162/0.8114, allocations: 111.7 kB / 1.089 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.8115, allocations: 2.656 kB / 1.089 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.8125, allocations: 227 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 2.013e-06/0.8125, allocations: 1.469 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002799/0.8153, allocations: 488.2 kB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.8154, allocations: 57.06 kB / 1.089 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005112/0.8159, allocations: 411.8 kB / 1.09 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 8.822e-05/0.816, allocations: 40.45 kB / 1.09 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.8161, allocations: 98.75 kB / 1.09 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.391e-05/0.8162, allocations: 44.38 kB / 1.09 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/0.8164, allocations: 130.6 kB / 1.09 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.8166, allocations: 320.7 kB / 1.09 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002833/0.8169, allocations: 121.8 kB / 1.09 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/0.8172, allocations: 175.6 kB / 1.091 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.8177, allocations: 275.6 kB / 1.091 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.8177, allocations: 0 / 1.091 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000946/0.8186, allocations: 491.2 kB / 1.091 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.8188, allocations: 92.48 kB / 1.091 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.8188, allocations: 6.453 kB / 1.091 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.8188, allocations: 1.812 kB / 1.091 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.819, allocations: 23.91 kB / 1.092 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.819, allocations: 11.25 kB / 1.092 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005671/0.8196, allocations: 59.33 kB / 1.092 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/0.8197, allocations: 66.08 kB / 1.092 GB, free: 12.29 MB / 0.8419 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.firstHourSampling,$PRE.calTim.firstHourSampling,calTim.firstDaySampling,$PRE.calTim.firstDaySampling,calTim.daySampleTrigger,$whenCondition1,calTim.hourSampleTrigger,$whenCondition2,calTim.epochLastMonth,$PRE.calTim.epochLastMonth,calTim.yearIndex,$PRE.calTim.yearIndex,calTim.daysSinceEpoch,$PRE.calTim.daysSinceEpoch,calTim.weekDay,$PRE.calTim.weekDay,calTim.hour,$PRE.calTim.hour,calTim.day,$PRE.calTim.day,calTim.month,$PRE.calTim.month,calTim.year,$PRE.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.0003275/0.82, allocations: 195.5 kB / 1.092 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.322e-05/0.8201, allocations: 45.33 kB / 1.092 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.627e-05/0.8202, allocations: 42.73 kB / 1.092 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.8202, allocations: 1.125 kB / 1.092 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.8202, allocations: 0.9062 kB / 1.092 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.8202, allocations: 1.359 kB / 1.092 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/0.8227, allocations: 0.7442 MB / 1.093 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.8227, allocations: 0.6562 kB / 1.093 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/0.8228, allocations: 9.203 kB / 1.093 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.8228, allocations: 0.75 kB / 1.093 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.8228, allocations: 18.86 kB / 1.093 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.8228, allocations: 1.125 kB / 1.093 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.8228, allocations: 4 kB / 1.093 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.8247, allocations: 475.6 kB / 1.093 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/0.825, allocations: 204 kB / 1.093 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.168e-05/0.8251, allocations: 10.02 kB / 1.093 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000496/0.8256, allocations: 33.52 kB / 1.093 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.8256, allocations: 7.109 kB / 1.093 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.65e-05/0.8257, allocations: 60.56 kB / 1.093 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003795/0.8261, allocations: 298.5 kB / 1.094 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8261, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004408/0.8266, allocations: 65.09 kB / 1.094 GB, free: 11.2 MB / 0.8419 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.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,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.0001682/0.8267, allocations: 118 kB / 1.094 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001431/0.8282, allocations: 456 kB / 1.094 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8282, allocations: 0 / 1.094 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007841/0.829, allocations: 123 kB / 1.094 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.8294, allocations: 33.38 kB / 1.094 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.8311, allocations: 0.7022 MB / 1.095 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004911/0.8316, allocations: 0.7745 MB / 1.096 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.741e-05/0.8317, allocations: 20.36 kB / 1.096 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of SimCode: time 7.31e-07/0.8317, allocations: 0 / 1.096 GB, free: 9.664 MB / 0.8419 GB Notification: Performance of Templates: time 0.007638/0.8393, allocations: 3.681 MB / 1.1 GB, free: 9.156 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsMinus.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