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.001699/0.001699, allocations: 111.2 kB / 16.37 MB, free: 6.012 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.001949/0.001949, allocations: 191.5 kB / 17.3 MB, free: 5.613 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.481/1.481, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.336/2.336, allocations: 390.3 MB / 0.6655 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.2 kB / 0.814 GB, free: 32.71 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3761/0.3775, allocations: 140.4 MB / 0.9512 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.003122/0.3807, allocations: 1.749 MB / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.3821, allocations: 0.6207 MB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.142e-05/0.3822, allocations: 0 / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.3823, allocations: 15.86 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.3825, allocations: 35.78 kB / 0.9535 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008614/0.3833, allocations: 362.2 kB / 0.9539 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.384, allocations: 0.6321 MB / 0.9545 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.3841, allocations: 37.03 kB / 0.9545 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003629/0.3845, allocations: 307.6 kB / 0.9548 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.3847, allocations: 155.5 kB / 0.955 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.443e-05/0.3848, allocations: 44 kB / 0.955 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.612e-05/0.3849, allocations: 40 kB / 0.955 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.3851, allocations: 127.6 kB / 0.9552 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002789/0.3853, allocations: 215 kB / 0.9554 GB, free: 3.66 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005373/0.3859, allocations: 0.5958 MB / 0.9559 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3859, allocations: 0 / 0.9559 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3859, allocations: 0 / 0.9559 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.3859, allocations: 0 / 0.9559 GB, free: 3.062 MB / 0.7325 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.001363/0.3873, allocations: 0.9132 MB / 0.9568 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.3873, allocations: 8.031 kB / 0.9568 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.3875, allocations: 56.38 kB / 0.9569 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004926/0.388, allocations: 334.1 kB / 0.9572 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.388, allocations: 16.38 kB / 0.9572 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.563e-05/0.3881, allocations: 32.36 kB / 0.9573 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009518/0.3891, allocations: 243.8 kB / 0.9575 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3891, allocations: 192 / 0.9575 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.3891, allocations: 7.922 kB / 0.9575 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3891, allocations: 4 kB / 0.9575 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007176/0.3899, allocations: 107.9 kB / 0.9576 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.3913, allocations: 0.6759 MB / 0.9583 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009882/0.3923, allocations: 186.4 kB / 0.9584 GB, free: 312 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007018/0.3931, allocations: 116.8 kB / 0.9586 GB, free: 192 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.3931, allocations: 0 / 0.9586 GB, free: 192 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009381/0.394, allocations: 237.6 kB / 0.9588 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.3941, allocations: 0 / 0.9588 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of matching and sorting (n=16): time 0.002438/0.3965, allocations: 496.9 kB / 0.9593 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.3966, allocations: 63.39 kB / 0.9593 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004922/0.3971, allocations: 445.8 kB / 0.9597 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 6.196e-05/0.3971, allocations: 37.7 kB / 0.9598 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.764e-05/0.3972, allocations: 105.3 kB / 0.9599 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.306e-05/0.3973, allocations: 39.53 kB / 0.9599 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.3975, allocations: 137.3 kB / 0.96 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3977, allocations: 334.8 kB / 0.9604 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.3979, allocations: 135.9 kB / 0.9605 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.3983, allocations: 196.9 kB / 0.9607 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.3987, allocations: 295.4 kB / 0.961 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3987, allocations: 0 / 0.961 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008604/0.3996, allocations: 0.5241 MB / 0.9615 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.983e-05/0.3997, allocations: 103.5 kB / 0.9616 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3997, allocations: 0 / 0.9616 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.3997, allocations: 4 kB / 0.9616 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.3999, allocations: 23.92 kB / 0.9616 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.3999, allocations: 0 / 0.9616 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004644/0.4004, allocations: 67.72 kB / 0.9617 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.052e-05/0.4005, allocations: 59.98 kB / 0.9617 GB, free: 12.8 MB / 0.7481 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.0002442/0.4007, allocations: 220.3 kB / 0.9619 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.896e-05/0.4008, allocations: 39.53 kB / 0.962 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.776e-05/0.4009, allocations: 47.78 kB / 0.962 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.4009, allocations: 0 / 0.962 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4009, allocations: 4 kB / 0.962 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4009, allocations: 0 / 0.962 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.4031, allocations: 0.7902 MB / 0.9628 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.4031, allocations: 0 / 0.9628 GB, free: 11.64 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.4031, allocations: 8 kB / 0.9628 GB, free: 11.63 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4031, allocations: 0 / 0.9628 GB, free: 11.63 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.4032, allocations: 19.97 kB / 0.9628 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.4032, allocations: 3.938 kB / 0.9628 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4032, allocations: 7.984 kB / 0.9628 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.4048, allocations: 475.2 kB / 0.9633 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003448/0.4052, allocations: 244.5 kB / 0.9635 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.058e-05/0.4052, allocations: 19.98 kB / 0.9635 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.4057, allocations: 35.91 kB / 0.9636 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.4057, allocations: 7.984 kB / 0.9636 GB, free: 10.8 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-05/0.4058, allocations: 55.97 kB / 0.9636 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003383/0.4062, allocations: 323 kB / 0.9639 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.094e-06/0.4062, allocations: 0 / 0.9639 GB, free: 10.43 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004142/0.4066, allocations: 71.92 kB / 0.964 GB, free: 10.36 MB / 0.7481 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.0002258/0.4068, allocations: 134.4 kB / 0.9641 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001272/0.4081, allocations: 470.4 kB / 0.9646 GB, free: 9.738 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4081, allocations: 0 / 0.9646 GB, free: 9.738 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0007174/0.4088, allocations: 128.3 kB / 0.9647 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.4093, allocations: 36.48 kB / 0.9647 GB, free: 9.578 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.4108, allocations: 0.5944 MB / 0.9653 GB, free: 8.961 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.4112, allocations: 0.794 MB / 0.9661 GB, free: 8.141 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.973e-05/0.4113, allocations: 17.36 kB / 0.9661 GB, free: 8.125 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.361e-05/0.4114, allocations: 15.44 kB / 0.9661 GB, free: 8.109 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/0.4114, allocations: 0 / 0.9661 GB, free: 8.109 MB / 0.7481 GB Notification: Performance of Templates: time 0.01169/0.4231, allocations: 5.415 MB / 0.9714 GB, free: 2.609 MB / 0.7481 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 -s cvode -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) Reference file matches