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.001213/0.001213, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0015/0.0015, allocations: 193.7 kB / 16.14 MB, free: 6.699 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.508/1.508, allocations: 222.9 MB / 239.8 MB, free: 4.617 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.475/2.475, allocations: 390.2 MB / 0.6642 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.89 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9165/0.9178, allocations: 140.3 MB / 0.9489 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.004262/0.9222, allocations: 1.808 MB / 0.9507 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001654/0.9239, allocations: 0.6898 MB / 0.9514 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.17e-05/0.924, allocations: 0 / 0.9514 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.9242, allocations: 13.23 kB / 0.9514 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.9243, allocations: 14.94 kB / 0.9514 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007878/0.9251, allocations: 343.4 kB / 0.9517 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005476/0.9257, allocations: 0.5319 MB / 0.9523 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.9259, allocations: 43.02 kB / 0.9523 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004539/0.9263, allocations: 307.8 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002683/0.9266, allocations: 172 kB / 0.9528 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.6e-05/0.9267, allocations: 15.06 kB / 0.9528 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.706e-05/0.9268, allocations: 15.09 kB / 0.9528 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.927, allocations: 120.9 kB / 0.9529 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.9272, allocations: 206 kB / 0.9531 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005616/0.9278, allocations: 0.5758 MB / 0.9537 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.587e-06/0.9278, allocations: 4 kB / 0.9537 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.9278, allocations: 0 / 0.9537 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.9278, allocations: 4 kB / 0.9537 GB, free: 5.719 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.001305/0.9291, allocations: 0.9039 MB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/0.9292, allocations: 9.375 kB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/0.9294, allocations: 55.41 kB / 0.9546 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.9298, allocations: 337.4 kB / 0.9549 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.603e-05/0.9299, allocations: 20.3 kB / 0.955 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.87e-05/0.93, allocations: 32.36 kB / 0.955 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.9311, allocations: 241.5 kB / 0.9552 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.9311, allocations: 3.938 kB / 0.9552 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.9311, allocations: 5.484 kB / 0.9552 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.433e-06/0.9312, allocations: 1.469 kB / 0.9552 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008426/0.932, allocations: 118.8 kB / 0.9553 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.9333, allocations: 0.6764 MB / 0.956 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.9344, allocations: 188 kB / 0.9562 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007922/0.9352, allocations: 113.6 kB / 0.9563 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.9352, allocations: 2.188 kB / 0.9563 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.9363, allocations: 235 kB / 0.9565 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.9363, allocations: 0 / 0.9565 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002729/0.9391, allocations: 495.9 kB / 0.957 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.9391, allocations: 68.89 kB / 0.9571 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005299/0.9397, allocations: 439.2 kB / 0.9575 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.614e-05/0.9397, allocations: 43.33 kB / 0.9575 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.767e-05/0.9398, allocations: 104.2 kB / 0.9576 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.678e-05/0.9399, allocations: 42.41 kB / 0.9577 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.9402, allocations: 136.8 kB / 0.9578 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.9403, allocations: 329.9 kB / 0.9581 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.9407, allocations: 135.9 kB / 0.9582 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003818/0.9411, allocations: 194.1 kB / 0.9584 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.9415, allocations: 306.1 kB / 0.9587 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.9415, allocations: 1.094 kB / 0.9587 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001014/0.9425, allocations: 0.5232 MB / 0.9592 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.22e-05/0.9426, allocations: 93.88 kB / 0.9593 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.9427, allocations: 1.938 kB / 0.9593 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.9427, allocations: 2.219 kB / 0.9593 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.9429, allocations: 34.53 kB / 0.9593 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.9429, allocations: 3 kB / 0.9593 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.9435, allocations: 59.17 kB / 0.9594 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.9436, allocations: 60.42 kB / 0.9595 GB, free: 1.488 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.0002655/0.9438, allocations: 224.8 kB / 0.9597 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.445e-05/0.9439, allocations: 40.38 kB / 0.9597 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.642e-05/0.944, allocations: 40.92 kB / 0.9598 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.944, allocations: 2.312 kB / 0.9598 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.944, allocations: 4 kB / 0.9598 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.944, allocations: 5.203 kB / 0.9598 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002327/0.9464, allocations: 0.7841 MB / 0.9605 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.9464, allocations: 4 kB / 0.9605 GB, free: 0.6953 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.985e-05/0.9464, allocations: 7.734 kB / 0.9605 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.9464, allocations: 1.219 kB / 0.9605 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.906e-05/0.9465, allocations: 18.92 kB / 0.9606 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.9465, allocations: 5.297 kB / 0.9606 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.9465, allocations: 0 / 0.9606 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.9483, allocations: 486.3 kB / 0.961 GB, free: 420 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.9486, allocations: 242.8 kB / 0.9613 GB, free: 204 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/0.9487, allocations: 23.69 kB / 0.9613 GB, free: 188 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.9492, allocations: 30.95 kB / 0.9613 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.9492, allocations: 5.031 kB / 0.9613 GB, free: 176 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.9493, allocations: 65.53 kB / 0.9614 GB, free: 160 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004459/0.9498, allocations: 321.4 kB / 0.9617 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9498, allocations: 0 / 0.9617 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007862/0.9506, allocations: 64.66 kB / 0.9617 GB, free: 15.96 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.0002751/0.9509, allocations: 122 kB / 0.9619 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001488/0.9523, allocations: 478.8 kB / 0.9623 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.9524, allocations: 1.094 kB / 0.9623 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008123/0.9532, allocations: 126 kB / 0.9624 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.9536, allocations: 35.41 kB / 0.9625 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.9556, allocations: 0.7166 MB / 0.9632 GB, free: 15 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.9561, allocations: 0.7878 MB / 0.9639 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001017/0.9562, allocations: 21.34 kB / 0.964 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.743e-05/0.9563, allocations: 22.95 kB / 0.964 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.9563, allocations: 0 / 0.964 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of Templates: time 0.01312/0.9694, allocations: 5.454 MB / 0.9693 GB, free: 11.21 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