Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.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 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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 106.7 kB / 16.41 MB, free: 6.508 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.001115/0.001115, allocations: 187 kB / 17.34 MB, free: 5.742 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.14 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.221/2.221, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 71.89 kB / 0.9516 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7929/0.7943, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.002865/0.7973, allocations: 1.749 MB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.7985, allocations: 0.6252 MB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.15e-05/0.7986, allocations: 1.125 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.721e-05/0.7987, allocations: 14.31 kB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.7988, allocations: 36.55 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008395/0.7997, allocations: 355.1 kB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006799/0.8004, allocations: 0.6366 MB / 1.092 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.8005, allocations: 26.36 kB / 1.092 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004737/0.801, allocations: 320 kB / 1.092 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003378/0.8013, allocations: 155 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.461e-05/0.8014, allocations: 40.56 kB / 1.093 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.111e-05/0.8015, allocations: 41.06 kB / 1.093 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.8017, allocations: 129 kB / 1.093 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002005/0.8019, allocations: 220.7 kB / 1.093 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006631/0.8025, allocations: 0.593 MB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.8026, allocations: 0 / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.454e-06/0.8026, allocations: 1.797 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.8026, allocations: 0 / 1.093 GB, free: 2.777 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.001307/0.8039, allocations: 0.9044 MB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.8039, allocations: 8.969 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.8041, allocations: 52.8 kB / 1.094 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.8044, allocations: 337.3 kB / 1.095 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/0.8045, allocations: 19.84 kB / 1.095 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.252e-05/0.8046, allocations: 30.58 kB / 1.095 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.8057, allocations: 235.3 kB / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.8057, allocations: 0.9062 kB / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.8057, allocations: 6.328 kB / 1.095 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.8057, allocations: 2.438 kB / 1.095 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007984/0.8065, allocations: 112.4 kB / 1.095 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.8079, allocations: 0.6838 MB / 1.096 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.809, allocations: 182.2 kB / 1.096 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007715/0.8098, allocations: 118 kB / 1.096 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.8099, allocations: 2.25 kB / 1.096 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001026/0.8109, allocations: 239.5 kB / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.375e-06/0.8109, allocations: 0 / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002758/0.8137, allocations: 497.2 kB / 1.097 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.8137, allocations: 66.92 kB / 1.097 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005861/0.8143, allocations: 440.1 kB / 1.097 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.8145, allocations: 44.14 kB / 1.097 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.5e-05/0.8146, allocations: 101.5 kB / 1.097 GB, free: 456 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.8146, allocations: 32.73 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002739/0.8149, allocations: 133.5 kB / 1.098 GB, free: 372 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.982e-05/0.815, allocations: 333.7 kB / 1.098 GB, free: 36 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.8153, allocations: 139.1 kB / 1.098 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.8157, allocations: 196.5 kB / 1.098 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004474/0.8161, allocations: 302.7 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.8161, allocations: 1.406 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009897/0.8171, allocations: 0.5165 MB / 1.099 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/0.8173, allocations: 104.9 kB / 1.099 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.8173, allocations: 2.125 kB / 1.099 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.8173, allocations: 2.594 kB / 1.099 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.8175, allocations: 23.64 kB / 1.099 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.8175, allocations: 7.172 kB / 1.099 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005329/0.8181, allocations: 54.42 kB / 1.099 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.8182, allocations: 61.73 kB / 1.099 GB, free: 15.31 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.0003479/0.8185, allocations: 228.5 kB / 1.099 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.259e-05/0.8186, allocations: 37.8 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.195e-05/0.8187, allocations: 38.58 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.8187, allocations: 1.875 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.8187, allocations: 5.219 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.8187, allocations: 1.641 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002395/0.8211, allocations: 0.7897 MB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.8212, allocations: 0.75 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.888e-05/0.8212, allocations: 5.484 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.8212, allocations: 1.062 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.824e-05/0.8213, allocations: 22.48 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.8213, allocations: 8.906 kB / 1.1 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.8213, allocations: 0 / 1.1 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.8232, allocations: 478.2 kB / 1.101 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003791/0.8236, allocations: 249.5 kB / 1.101 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.769e-05/0.8237, allocations: 17.05 kB / 1.101 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.8242, allocations: 36.12 kB / 1.101 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.164e-05/0.8243, allocations: 15.47 kB / 1.101 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.8244, allocations: 56.27 kB / 1.101 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005391/0.8249, allocations: 320.1 kB / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8249, allocations: 0.5 kB / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005878/0.8255, allocations: 66.81 kB / 1.102 GB, free: 14.12 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.0002373/0.8258, allocations: 130.4 kB / 1.102 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001549/0.8273, allocations: 477.5 kB / 1.102 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.8274, allocations: 384 / 1.102 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007847/0.8282, allocations: 123.3 kB / 1.102 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004387/0.8286, allocations: 40.83 kB / 1.102 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.8304, allocations: 0.6542 MB / 1.103 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.8308, allocations: 0.7861 MB / 1.104 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.746e-05/0.8309, allocations: 18.48 kB / 1.104 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of SimCode: time 7.92e-07/0.8309, allocations: 0 / 1.104 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of Templates: time 0.008414/0.8393, allocations: 4.083 MB / 1.108 GB, free: 12.06 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.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