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.001018/0.001018, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 180.5 kB / 16.92 MB, free: 6.652 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.432/1.432, allocations: 223.3 MB / 241 MB, free: 5.293 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.55/2.55, allocations: 390.9 MB / 0.667 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.00036, allocations: 12 kB / 0.8167 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7735/0.7739, allocations: 142.4 MB / 0.9557 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.00179/0.7758, allocations: 1.452 MB / 0.9572 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001347/0.7771, allocations: 0.6862 MB / 0.9578 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.858e-05/0.7772, allocations: 0 / 0.9578 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.533e-05/0.7773, allocations: 9.094 kB / 0.9578 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.7774, allocations: 31.75 kB / 0.9579 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006959/0.7782, allocations: 330.1 kB / 0.9582 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.7786, allocations: 0.5353 MB / 0.9587 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.7788, allocations: 37.91 kB / 0.9587 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003905/0.7792, allocations: 308.4 kB / 0.959 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.7794, allocations: 162.7 kB / 0.9592 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.418e-05/0.7795, allocations: 13.75 kB / 0.9592 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.7796, allocations: 13.75 kB / 0.9592 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.7797, allocations: 120.9 kB / 0.9593 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.7799, allocations: 223.8 kB / 0.9595 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.7803, allocations: 480.9 kB / 0.96 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7803, allocations: 4 kB / 0.96 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7803, allocations: 0 / 0.96 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.563e-06/0.7803, allocations: 0 / 0.96 GB, free: 4.68 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.0009887/0.7813, allocations: 0.7813 MB / 0.9608 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.7813, allocations: 13.14 kB / 0.9608 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.7815, allocations: 52.03 kB / 0.9608 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.7819, allocations: 333.2 kB / 0.9612 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.734e-05/0.7819, allocations: 28.45 kB / 0.9612 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-05/0.782, allocations: 27.52 kB / 0.9612 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.7831, allocations: 248.8 kB / 0.9614 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.7831, allocations: 7.875 kB / 0.9615 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.7831, allocations: 8.969 kB / 0.9615 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.7831, allocations: 6.234 kB / 0.9615 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000802/0.7839, allocations: 119.8 kB / 0.9616 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.7852, allocations: 0.6725 MB / 0.9622 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.7863, allocations: 201.2 kB / 0.9624 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007571/0.787, allocations: 131.4 kB / 0.9626 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.7871, allocations: 2.656 kB / 0.9626 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009242/0.788, allocations: 244.9 kB / 0.9628 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 3.046e-06/0.788, allocations: 0 / 0.9628 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002682/0.7907, allocations: 0.5247 MB / 0.9633 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.7908, allocations: 59.84 kB / 0.9634 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005067/0.7913, allocations: 439.8 kB / 0.9638 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.352e-05/0.7914, allocations: 42.19 kB / 0.9638 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.886e-05/0.7915, allocations: 101.3 kB / 0.9639 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.003e-05/0.7915, allocations: 41.75 kB / 0.964 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.949e-05/0.7916, allocations: 44.44 kB / 0.964 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.429e-05/0.7917, allocations: 326.5 kB / 0.9643 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.792, allocations: 135.6 kB / 0.9644 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003141/0.7923, allocations: 189.6 kB / 0.9646 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.7927, allocations: 306.1 kB / 0.9649 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.7927, allocations: 0 / 0.9649 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008624/0.7936, allocations: 0.5276 MB / 0.9654 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.896e-05/0.7937, allocations: 100.4 kB / 0.9655 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.7937, allocations: 5.344 kB / 0.9655 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.7937, allocations: 2.75 kB / 0.9655 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.7939, allocations: 22.05 kB / 0.9656 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.7939, allocations: 3 kB / 0.9656 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/0.7944, allocations: 70 kB / 0.9656 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.7946, allocations: 61.08 kB / 0.9657 GB, free: 0.5547 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 (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.0002838/0.7948, allocations: 224.2 kB / 0.9659 GB, free: 380 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.12e-05/0.7949, allocations: 41.8 kB / 0.9659 GB, free: 356 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.286e-05/0.795, allocations: 39.86 kB / 0.966 GB, free: 328 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.795, allocations: 6.156 kB / 0.966 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.795, allocations: 0 / 0.966 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.795, allocations: 0.9688 kB / 0.966 GB, free: 324 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.7973, allocations: 0.8105 MB / 0.9668 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.7973, allocations: 4 kB / 0.9668 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.475e-05/0.7974, allocations: 4.281 kB / 0.9668 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.7974, allocations: 5.297 kB / 0.9668 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.7974, allocations: 26.55 kB / 0.9668 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.7974, allocations: 1.031 kB / 0.9668 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.7974, allocations: 0.9688 kB / 0.9668 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.7993, allocations: 0.4896 MB / 0.9673 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003283/0.7996, allocations: 251.4 kB / 0.9675 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.318e-05/0.7997, allocations: 18.72 kB / 0.9675 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.8002, allocations: 36.25 kB / 0.9676 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.8002, allocations: 8.797 kB / 0.9676 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-05/0.8003, allocations: 61.91 kB / 0.9676 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003816/0.8007, allocations: 317.3 kB / 0.968 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8007, allocations: 0 / 0.968 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004699/0.8012, allocations: 72.52 kB / 0.968 GB, free: 15.01 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 (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.0001813/0.8014, allocations: 126.5 kB / 0.9681 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001457/0.8029, allocations: 484.1 kB / 0.9686 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.8029, allocations: 1.156 kB / 0.9686 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008286/0.8037, allocations: 139.7 kB / 0.9687 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.8042, allocations: 45.61 kB / 0.9688 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.806, allocations: 0.7736 MB / 0.9695 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.8065, allocations: 0.7901 MB / 0.9703 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.091e-05/0.8065, allocations: 14.97 kB / 0.9703 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of SimCode: time 7.01e-07/0.8065, allocations: 0 / 0.9703 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of Templates: time 0.008004/0.8145, allocations: 4.073 MB / 0.9743 GB, free: 11.02 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/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