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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009804/0.0009806, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001074/0.001074, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.575/2.575, allocations: 390.9 MB / 0.666 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003308/0.0003308, allocations: 8 kB / 0.8154 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7985/0.7989, allocations: 142.4 MB / 0.9545 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.001871/0.8008, allocations: 1.416 MB / 0.9559 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00125/0.8021, allocations: 0.6171 MB / 0.9565 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.554e-05/0.8021, allocations: 0 / 0.9565 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.427e-05/0.8022, allocations: 4.969 kB / 0.9565 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.8024, allocations: 31.16 kB / 0.9565 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.803, allocations: 264.3 kB / 0.9567 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.8035, allocations: 476.7 kB / 0.9572 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.8036, allocations: 40.73 kB / 0.9572 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.804, allocations: 321.1 kB / 0.9575 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.8043, allocations: 190 kB / 0.9577 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.8043, allocations: 17.69 kB / 0.9577 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.096e-05/0.8044, allocations: 13.75 kB / 0.9578 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.8045, allocations: 118.8 kB / 0.9579 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.682e-05/0.8046, allocations: 104.2 kB / 0.958 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.805, allocations: 480.9 kB / 0.9584 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.805, allocations: 0 / 0.9584 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.263e-06/0.805, allocations: 3.938 kB / 0.9584 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.952e-06/0.805, allocations: 1 kB / 0.9584 GB, free: 4.953 MB / 0.7169 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.0009041/0.8059, allocations: 0.7806 MB / 0.9592 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.806, allocations: 9.438 kB / 0.9592 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.8061, allocations: 55.33 kB / 0.9593 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003373/0.8065, allocations: 319.6 kB / 0.9596 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.634e-05/0.8065, allocations: 24.31 kB / 0.9596 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.793e-05/0.8066, allocations: 36.05 kB / 0.9596 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000862/0.8075, allocations: 242.3 kB / 0.9598 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.8075, allocations: 4 kB / 0.9598 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.8075, allocations: 9.359 kB / 0.9599 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.8075, allocations: 1.375 kB / 0.9599 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007008/0.8083, allocations: 124.2 kB / 0.96 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.8096, allocations: 0.6804 MB / 0.9606 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.8106, allocations: 192.4 kB / 0.9608 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007168/0.8114, allocations: 131.8 kB / 0.961 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.8114, allocations: 1.5 kB / 0.961 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009365/0.8123, allocations: 245.2 kB / 0.9612 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.625e-06/0.8124, allocations: 0 / 0.9612 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00256/0.8149, allocations: 0.5179 MB / 0.9617 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.815, allocations: 60.03 kB / 0.9617 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004946/0.8155, allocations: 444.1 kB / 0.9622 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.157e-05/0.8156, allocations: 50.28 kB / 0.9622 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.28e-05/0.8156, allocations: 105 kB / 0.9623 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.841e-05/0.8157, allocations: 38.42 kB / 0.9624 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-05/0.8157, allocations: 5.625 kB / 0.9624 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.584e-05/0.8158, allocations: 326 kB / 0.9627 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.8161, allocations: 135.4 kB / 0.9628 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.8164, allocations: 196 kB / 0.963 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/0.8167, allocations: 209.4 kB / 0.9632 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.8167, allocations: 0 / 0.9632 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009101/0.8176, allocations: 0.532 MB / 0.9637 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.8177, allocations: 98.5 kB / 0.9638 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.8177, allocations: 6.188 kB / 0.9638 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.8178, allocations: 2.438 kB / 0.9638 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.818, allocations: 22.98 kB / 0.9638 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.818, allocations: 2.844 kB / 0.9638 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/0.8185, allocations: 66.36 kB / 0.9639 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.8187, allocations: 63.45 kB / 0.964 GB, free: 0.9531 MB / 0.7169 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 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003468/0.819, allocations: 214 kB / 0.9642 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.821e-05/0.8191, allocations: 40.81 kB / 0.9642 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.724e-05/0.8192, allocations: 44.78 kB / 0.9642 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.8192, allocations: 1.031 kB / 0.9642 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.8192, allocations: 1 kB / 0.9642 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.8192, allocations: 0 / 0.9642 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.8214, allocations: 0.8225 MB / 0.9651 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.8214, allocations: 0.9062 kB / 0.9651 GB, free: 168 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.796e-05/0.8214, allocations: 8.219 kB / 0.9651 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.8214, allocations: 0 / 0.9651 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.8215, allocations: 24.38 kB / 0.9651 GB, free: 152 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.8215, allocations: 0.7188 kB / 0.9651 GB, free: 152 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.8215, allocations: 3.953 kB / 0.9651 GB, free: 148 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.8232, allocations: 498.5 kB / 0.9656 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003645/0.8236, allocations: 239.9 kB / 0.9658 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.8237, allocations: 23.23 kB / 0.9658 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000462/0.8242, allocations: 36.22 kB / 0.9658 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.875e-05/0.8242, allocations: 8.109 kB / 0.9659 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.8244, allocations: 65.83 kB / 0.9659 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004462/0.8248, allocations: 314.2 kB / 0.9662 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.8248, allocations: 0 / 0.9662 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005075/0.8253, allocations: 69.08 kB / 0.9663 GB, free: 15.42 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002504/0.8256, allocations: 133.2 kB / 0.9664 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001403/0.827, allocations: 489.2 kB / 0.9669 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.827, allocations: 0 / 0.9669 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006914/0.8277, allocations: 131.1 kB / 0.967 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.8281, allocations: 35.38 kB / 0.967 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.8299, allocations: 0.7114 MB / 0.9677 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.8303, allocations: 0.7832 MB / 0.9685 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.623e-05/0.8304, allocations: 21.45 kB / 0.9685 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.8305, allocations: 19.3 kB / 0.9685 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.8305, allocations: 0 / 0.9685 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of Templates: time 0.01215/0.8426, allocations: 5.328 MB / 0.9737 GB, free: 10.75 MB / 0.7325 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches