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.001796/0.001797, allocations: 108 kB / 15.61 MB, free: 152 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.002391/0.002391, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.569/1.569, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.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.556/2.556, allocations: 390.2 MB / 0.6646 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 71.88 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8899/0.8915, allocations: 140.4 MB / 0.9496 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.004222/0.8957, allocations: 1.739 MB / 0.9513 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002021/0.8978, allocations: 0.6205 MB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002343/0.8981, allocations: 0 / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.8983, allocations: 13.14 kB / 0.9519 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.8986, allocations: 30.86 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.9003, allocations: 360.7 kB / 0.9523 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001403/0.9017, allocations: 0.6255 MB / 0.9529 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.9019, allocations: 46.66 kB / 0.953 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009606/0.9029, allocations: 306.2 kB / 0.9532 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005254/0.9034, allocations: 146.8 kB / 0.9534 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001951/0.9036, allocations: 44.62 kB / 0.9534 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.9038, allocations: 45.38 kB / 0.9535 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.904, allocations: 126 kB / 0.9536 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0004066/0.9044, allocations: 218.4 kB / 0.9538 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008394/0.9053, allocations: 0.5985 MB / 0.9544 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.9053, allocations: 0 / 0.9544 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.914e-06/0.9053, allocations: 0 / 0.9544 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.699e-05/0.9053, allocations: 0 / 0.9544 GB, free: 5.656 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.002242/0.9076, allocations: 0.9038 MB / 0.9553 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.788e-05/0.9076, allocations: 13.06 kB / 0.9553 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003387/0.908, allocations: 64.62 kB / 0.9553 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007279/0.9087, allocations: 332.5 kB / 0.9557 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.9089, allocations: 20.39 kB / 0.9557 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.909, allocations: 32.7 kB / 0.9557 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.9101, allocations: 234.9 kB / 0.9559 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.9102, allocations: 5.781 kB / 0.9559 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.9102, allocations: 4 kB / 0.9559 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.9102, allocations: 1.875 kB / 0.9559 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008271/0.911, allocations: 114.3 kB / 0.9561 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.9125, allocations: 0.6772 MB / 0.9567 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.9136, allocations: 179.7 kB / 0.9569 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007545/0.9144, allocations: 121.5 kB / 0.957 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.9144, allocations: 2.75 kB / 0.957 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001062/0.9155, allocations: 238.4 kB / 0.9572 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 2.033e-06/0.9155, allocations: 9.188 kB / 0.9572 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00279/0.9183, allocations: 496.2 kB / 0.9577 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.9184, allocations: 63.8 kB / 0.9578 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006177/0.919, allocations: 444 kB / 0.9582 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.55e-05/0.9191, allocations: 37.89 kB / 0.9582 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.779e-05/0.9192, allocations: 102.1 kB / 0.9583 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.727e-05/0.9192, allocations: 37.09 kB / 0.9584 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00028/0.9195, allocations: 138.4 kB / 0.9585 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.809e-05/0.9196, allocations: 329 kB / 0.9588 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.9199, allocations: 139.9 kB / 0.9589 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003498/0.9203, allocations: 193.5 kB / 0.9591 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/0.9207, allocations: 303.6 kB / 0.9594 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.9207, allocations: 0 / 0.9594 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009146/0.9217, allocations: 0.5243 MB / 0.9599 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-05/0.9218, allocations: 99.5 kB / 0.96 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.9218, allocations: 1.344 kB / 0.96 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.9218, allocations: 7.375 kB / 0.96 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.922, allocations: 25.95 kB / 0.9601 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.922, allocations: 7.828 kB / 0.9601 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005884/0.9226, allocations: 53.83 kB / 0.9601 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.9227, allocations: 60.14 kB / 0.9602 GB, free: 1.426 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.0003023/0.923, allocations: 222.2 kB / 0.9604 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.913e-05/0.9231, allocations: 44.27 kB / 0.9604 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.227e-05/0.9232, allocations: 40.2 kB / 0.9605 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.9232, allocations: 2.344 kB / 0.9605 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.9232, allocations: 0 / 0.9605 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.9232, allocations: 5.156 kB / 0.9605 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.9255, allocations: 0.7834 MB / 0.9612 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.9255, allocations: 0 / 0.9612 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.049e-05/0.9255, allocations: 11.7 kB / 0.9613 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.9256, allocations: 1.312 kB / 0.9613 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/0.9256, allocations: 23.89 kB / 0.9613 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.9256, allocations: 0 / 0.9613 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.9256, allocations: 5.562 kB / 0.9613 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/0.9275, allocations: 480.2 kB / 0.9617 GB, free: 364 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.9278, allocations: 247.4 kB / 0.962 GB, free: 144 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.9279, allocations: 28 kB / 0.962 GB, free: 124 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005057/0.9284, allocations: 26.56 kB / 0.962 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.976e-05/0.9285, allocations: 8.578 kB / 0.962 GB, free: 112 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.461e-05/0.9285, allocations: 65.53 kB / 0.9621 GB, free: 96 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004234/0.929, allocations: 317.7 kB / 0.9624 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.929, allocations: 1.344 kB / 0.9624 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005104/0.9295, allocations: 67.36 kB / 0.9625 GB, free: 15.89 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.0002257/0.9297, allocations: 131.9 kB / 0.9626 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001631/0.9314, allocations: 480 kB / 0.9631 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.9314, allocations: 0 / 0.9631 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008323/0.9322, allocations: 131.3 kB / 0.9632 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.9327, allocations: 43.64 kB / 0.9632 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.9347, allocations: 0.5902 MB / 0.9638 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006787/0.9354, allocations: 0.7907 MB / 0.9646 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000117/0.9356, allocations: 13.45 kB / 0.9646 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.956e-05/0.9356, allocations: 19.39 kB / 0.9646 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.9356, allocations: 0 / 0.9646 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of Templates: time 0.01604/0.9517, allocations: 5.45 MB / 0.9699 GB, free: 11.28 MB / 0.7325 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches