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.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.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_latest_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_latest_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.001462/0.001462, allocations: 104.3 kB / 16.27 MB, free: 6.414 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.001691/0.001692, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.345/1.345, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.642/2.642, allocations: 482.4 MB / 0.7553 GB, free: 6.977 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 73.05 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7423/0.7442, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002592/0.7468, allocations: 1.74 MB / 1.085 GB, free: 448 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.748, allocations: 0.6201 MB / 1.085 GB, free: 24 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.523e-05/0.748, allocations: 0 / 1.085 GB, free: 24 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.441e-05/0.7481, allocations: 11.16 kB / 1.085 GB, free: 16 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.7483, allocations: 43.91 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007837/0.7491, allocations: 365.8 kB / 1.086 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007026/0.7498, allocations: 0.6258 MB / 1.086 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.7499, allocations: 39 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.7503, allocations: 307.2 kB / 1.087 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000271/0.7506, allocations: 146.4 kB / 1.087 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.7507, allocations: 41.03 kB / 1.087 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.7509, allocations: 45.81 kB / 1.087 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.751, allocations: 128.1 kB / 1.087 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002501/0.7513, allocations: 214.5 kB / 1.087 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006552/0.7519, allocations: 0.5991 MB / 1.088 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.7519, allocations: 0 / 1.088 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.623e-06/0.752, allocations: 0 / 1.088 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.752, allocations: 0 / 1.088 GB, free: 14.92 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001335/0.7533, allocations: 0.9074 MB / 1.089 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.7533, allocations: 9.016 kB / 1.089 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.7535, allocations: 56.77 kB / 1.089 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.7539, allocations: 334 kB / 1.089 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.366e-05/0.754, allocations: 20.59 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.186e-05/0.7541, allocations: 30.56 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.7551, allocations: 238.4 kB / 1.089 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.7551, allocations: 7.875 kB / 1.089 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.7552, allocations: 6.422 kB / 1.089 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.7552, allocations: 2.094 kB / 1.089 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008061/0.756, allocations: 113.1 kB / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.7573, allocations: 0.6785 MB / 1.09 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.7584, allocations: 193.7 kB / 1.09 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007714/0.7592, allocations: 118 kB / 1.09 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.7592, allocations: 3.141 kB / 1.09 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009701/0.7602, allocations: 232.9 kB / 1.091 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.7602, allocations: 4 kB / 1.091 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002629/0.7628, allocations: 498.9 kB / 1.091 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.7629, allocations: 62.61 kB / 1.091 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004853/0.7634, allocations: 440.4 kB / 1.092 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.304e-05/0.7635, allocations: 40.27 kB / 1.092 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.7636, allocations: 101.4 kB / 1.092 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.412e-05/0.7636, allocations: 37.7 kB / 1.092 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.7639, allocations: 146.6 kB / 1.092 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.764, allocations: 325.9 kB / 1.092 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.7643, allocations: 140.2 kB / 1.092 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003292/0.7647, allocations: 193 kB / 1.092 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.7651, allocations: 305.6 kB / 1.093 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.7651, allocations: 0 / 1.093 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009305/0.766, allocations: 0.516 MB / 1.093 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.7661, allocations: 98.02 kB / 1.093 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.7662, allocations: 1.5 kB / 1.093 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.7662, allocations: 6.625 kB / 1.093 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.7663, allocations: 28.08 kB / 1.093 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.7664, allocations: 3.656 kB / 1.093 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005116/0.7669, allocations: 54.34 kB / 1.093 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.314e-05/0.767, allocations: 66.86 kB / 1.094 GB, free: 11.45 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.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.0002535/0.7672, allocations: 217.3 kB / 1.094 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.7673, allocations: 38.05 kB / 1.094 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.282e-05/0.7674, allocations: 43.23 kB / 1.094 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.7674, allocations: 1.703 kB / 1.094 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.7674, allocations: 1.094 kB / 1.094 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.7674, allocations: 1.078 kB / 1.094 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.7697, allocations: 0.7965 MB / 1.095 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.7697, allocations: 0 / 1.095 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.259e-05/0.7697, allocations: 5.75 kB / 1.095 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.7697, allocations: 5.234 kB / 1.095 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.7698, allocations: 25.78 kB / 1.095 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.7698, allocations: 5.094 kB / 1.095 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.7698, allocations: 4.75 kB / 1.095 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.7716, allocations: 475.2 kB / 1.095 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003079/0.7719, allocations: 246 kB / 1.095 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.319e-05/0.772, allocations: 24.66 kB / 1.095 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004717/0.7725, allocations: 28.34 kB / 1.095 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.029e-05/0.7725, allocations: 11.31 kB / 1.095 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-05/0.7726, allocations: 56.22 kB / 1.095 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000345/0.7729, allocations: 319.8 kB / 1.096 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7729, allocations: 0 / 1.096 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003568/0.7733, allocations: 71.62 kB / 1.096 GB, free: 10.25 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.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.0001706/0.7735, allocations: 133.9 kB / 1.096 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001354/0.7748, allocations: 474 kB / 1.096 GB, free: 9.914 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7748, allocations: 3.938 kB / 1.096 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007751/0.7756, allocations: 130.2 kB / 1.097 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.776, allocations: 39.08 kB / 1.097 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.7776, allocations: 0.6404 MB / 1.097 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.7781, allocations: 0.7872 MB / 1.098 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.921e-05/0.7781, allocations: 21.47 kB / 1.098 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.7781, allocations: 3.938 kB / 1.098 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of Templates: time 0.006528/0.7847, allocations: 4.094 MB / 1.102 GB, free: 8.191 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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