Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001413, allocations: 109 kB / 16.41 MB, free: 6.496 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.001417/0.001417, allocations: 183 kB / 17.34 MB, free: 5.766 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.234/2.234, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.001411, allocations: 59.91 kB / 0.9516 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7797/0.7811, allocations: 140.4 MB / 1.089 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.002621/0.7837, allocations: 1.74 MB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.785, allocations: 0.625 MB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.462e-05/0.7851, allocations: 0 / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.7852, allocations: 15.75 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.7853, allocations: 34.41 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008423/0.7862, allocations: 367.1 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006584/0.7869, allocations: 0.6294 MB / 1.092 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.787, allocations: 34.11 kB / 1.092 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004388/0.7874, allocations: 315.5 kB / 1.092 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.7878, allocations: 151.5 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.7879, allocations: 40.28 kB / 1.093 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.788, allocations: 41.41 kB / 1.093 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.7882, allocations: 128 kB / 1.093 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.7884, allocations: 217.6 kB / 1.093 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000722/0.7891, allocations: 0.5933 MB / 1.093 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.7892, allocations: 4 kB / 1.093 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.214e-06/0.7892, allocations: 4.75 kB / 1.093 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.918e-06/0.7892, allocations: 0 / 1.093 GB, free: 2.82 MB / 0.8575 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.001276/0.7905, allocations: 0.9051 MB / 1.094 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.7905, allocations: 9.281 kB / 1.094 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.7907, allocations: 52.23 kB / 1.094 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003748/0.7911, allocations: 332.8 kB / 1.095 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.219e-05/0.7911, allocations: 24 kB / 1.095 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.144e-05/0.7912, allocations: 34.45 kB / 1.095 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.7923, allocations: 236.3 kB / 1.095 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.7923, allocations: 192 / 1.095 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.49e-05/0.7924, allocations: 6.938 kB / 1.095 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.7924, allocations: 2.125 kB / 1.095 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008661/0.7933, allocations: 116.3 kB / 1.095 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001345/0.7946, allocations: 0.6726 MB / 1.096 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.7957, allocations: 186.2 kB / 1.096 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008012/0.7965, allocations: 113.5 kB / 1.096 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.7965, allocations: 6.188 kB / 1.096 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.7976, allocations: 231 kB / 1.096 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.764e-06/0.7976, allocations: 0 / 1.096 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002757/0.8003, allocations: 499.5 kB / 1.097 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.8004, allocations: 62.72 kB / 1.097 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/0.8009, allocations: 443.6 kB / 1.097 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.014e-05/0.8009, allocations: 40.78 kB / 1.097 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.248e-05/0.801, allocations: 101.4 kB / 1.097 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.8011, allocations: 37.27 kB / 1.097 GB, free: 480 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.8013, allocations: 137.2 kB / 1.098 GB, free: 416 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.8014, allocations: 329.2 kB / 1.098 GB, free: 84 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.8017, allocations: 135.9 kB / 1.098 GB, free: 40 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.802, allocations: 192.1 kB / 1.098 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000433/0.8025, allocations: 307.5 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.8025, allocations: 0 / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009401/0.8034, allocations: 0.524 MB / 1.099 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.8035, allocations: 94.64 kB / 1.099 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.8036, allocations: 1.938 kB / 1.099 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.8036, allocations: 3.281 kB / 1.099 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.8038, allocations: 23 kB / 1.099 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.8038, allocations: 3.188 kB / 1.099 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000548/0.8043, allocations: 58.83 kB / 1.099 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.8044, allocations: 62.16 kB / 1.099 GB, free: 15.36 MB / 0.8731 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.0002934/0.8047, allocations: 221.7 kB / 1.099 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.396e-05/0.8048, allocations: 38.25 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.168e-05/0.8049, allocations: 43.53 kB / 1.1 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.8049, allocations: 0.9375 kB / 1.1 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.8049, allocations: 1.094 kB / 1.1 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.8049, allocations: 1.406 kB / 1.1 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/0.8074, allocations: 0.7926 MB / 1.1 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.8074, allocations: 4 kB / 1.1 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.698e-05/0.8075, allocations: 5.234 kB / 1.1 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.8075, allocations: 9.812 kB / 1.1 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.8075, allocations: 18.41 kB / 1.1 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.8075, allocations: 4.938 kB / 1.1 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.8076, allocations: 0.5625 kB / 1.1 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001924/0.8095, allocations: 482.5 kB / 1.101 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/0.8099, allocations: 246.5 kB / 1.101 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.226e-05/0.81, allocations: 16.03 kB / 1.101 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.8105, allocations: 36.91 kB / 1.101 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.8105, allocations: 7.328 kB / 1.101 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.8107, allocations: 56.8 kB / 1.101 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004646/0.8111, allocations: 323.5 kB / 1.101 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8111, allocations: 0.5938 kB / 1.101 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004608/0.8116, allocations: 66.3 kB / 1.102 GB, free: 14.17 MB / 0.8731 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.00023/0.8118, allocations: 139.1 kB / 1.102 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001469/0.8133, allocations: 469 kB / 1.102 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.8133, allocations: 0 / 1.102 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008358/0.8142, allocations: 124.1 kB / 1.102 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.8146, allocations: 44.62 kB / 1.102 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.8164, allocations: 0.647 MB / 1.103 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004318/0.8168, allocations: 0.7856 MB / 1.104 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.859e-05/0.8169, allocations: 16.95 kB / 1.104 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of SimCode: time 4.5e-07/0.8169, allocations: 1.5 kB / 1.104 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of Templates: time 0.008795/0.8257, allocations: 4.088 MB / 1.108 GB, free: 12.11 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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