Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 181 kB / 23.35 MB, free: 1.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.013/1.013, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.583/2.583, allocations: 438.8 MB / 0.6827 GB, free: 13.64 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 0.8387 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.367e-05/2.537e-05, allocations: 2.312 kB / 0.8387 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.002834/0.002859, allocations: 1.809 MB / 0.8405 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.004145, allocations: 0.6341 MB / 0.8411 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.664e-05/0.004231, allocations: 4 kB / 0.8411 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.004337, allocations: 7.875 kB / 0.8411 GB, free: 11.69 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.004473, allocations: 35.78 kB / 0.8411 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.000854/0.005327, allocations: 375.2 kB / 0.8415 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.000686/0.006013, allocations: 0.6048 MB / 0.8421 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 9.881e-05/0.006112, allocations: 21.95 kB / 0.8421 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005604/0.006673, allocations: 427.5 kB / 0.8425 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.006974, allocations: 139.7 kB / 0.8426 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 7.46e-05/0.007048, allocations: 40 kB / 0.8427 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.007374, allocations: 40 kB / 0.8427 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.007493, allocations: 135.6 kB / 0.8428 GB, free: 9.895 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.007637, allocations: 143.7 kB / 0.843 GB, free: 9.754 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0004195/0.008056, allocations: 438.7 kB / 0.8434 GB, free: 9.324 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.00806, allocations: 4 kB / 0.8434 GB, free: 9.32 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.522e-06/0.008061, allocations: 0 / 0.8434 GB, free: 9.32 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.008067, allocations: 0 / 0.8434 GB, free: 9.32 MB / 0.8073 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.000982/0.009049, allocations: 0.7778 MB / 0.8442 GB, free: 8.477 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.009088, allocations: 12.62 kB / 0.8442 GB, free: 8.465 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.009197, allocations: 56.86 kB / 0.8442 GB, free: 8.41 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.009497, allocations: 247.9 kB / 0.8445 GB, free: 8.141 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.00954, allocations: 24.36 kB / 0.8445 GB, free: 8.117 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.127e-05/0.009601, allocations: 36.36 kB / 0.8445 GB, free: 8.082 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.009954, allocations: 186.7 kB / 0.8447 GB, free: 7.891 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.009964, allocations: 4.188 kB / 0.8447 GB, free: 7.887 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.00998, allocations: 384 / 0.8447 GB, free: 7.887 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.009987, allocations: 8.359 kB / 0.8447 GB, free: 7.879 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.336e-05/0.01007, allocations: 47.91 kB / 0.8448 GB, free: 7.832 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.01063, allocations: 331.9 kB / 0.8451 GB, free: 7.492 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.01079, allocations: 94.53 kB / 0.8452 GB, free: 7.391 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.202e-05/0.01086, allocations: 52.83 kB / 0.8452 GB, free: 7.336 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.01088, allocations: 4 kB / 0.8452 GB, free: 7.332 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.01104, allocations: 153.1 kB / 0.8454 GB, free: 7.172 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.312e-06/0.01104, allocations: 0 / 0.8454 GB, free: 7.172 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0003232/0.01136, allocations: 205.5 kB / 0.8456 GB, free: 6.965 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.01139, allocations: 59.41 kB / 0.8456 GB, free: 6.895 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.01159, allocations: 343.4 kB / 0.8459 GB, free: 6.547 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.01163, allocations: 41.7 kB / 0.846 GB, free: 6.5 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.01168, allocations: 101.4 kB / 0.8461 GB, free: 6.398 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.056e-05/0.01171, allocations: 47.64 kB / 0.8461 GB, free: 6.352 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.01183, allocations: 121.4 kB / 0.8462 GB, free: 6.227 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.836e-05/0.01191, allocations: 322.8 kB / 0.8465 GB, free: 5.902 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.01207, allocations: 163.3 kB / 0.8467 GB, free: 5.73 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.01222, allocations: 209.2 kB / 0.8469 GB, free: 5.492 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.01241, allocations: 268.9 kB / 0.8472 GB, free: 5.199 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01241, allocations: 0 / 0.8472 GB, free: 5.199 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003637/0.01278, allocations: 451.5 kB / 0.8476 GB, free: 4.73 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.225e-05/0.01284, allocations: 91.38 kB / 0.8477 GB, free: 4.629 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.01284, allocations: 4 kB / 0.8477 GB, free: 4.625 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.01286, allocations: 0 / 0.8477 GB, free: 4.625 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.01297, allocations: 39.91 kB / 0.8477 GB, free: 4.586 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.01298, allocations: 4 kB / 0.8477 GB, free: 4.582 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.01315, allocations: 47.86 kB / 0.8478 GB, free: 4.535 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-05/0.0132, allocations: 51.97 kB / 0.8478 GB, free: 4.484 MB / 0.8073 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.0001189/0.01332, allocations: 143.2 kB / 0.848 GB, free: 4.332 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.01336, allocations: 39.88 kB / 0.848 GB, free: 4.293 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.26e-05/0.0134, allocations: 31.73 kB / 0.848 GB, free: 4.266 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.0134, allocations: 0 / 0.848 GB, free: 4.266 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.01341, allocations: 0 / 0.848 GB, free: 4.266 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.01341, allocations: 4 kB / 0.848 GB, free: 4.262 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004177/0.01383, allocations: 394.6 kB / 0.8484 GB, free: 3.848 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.01383, allocations: 4 kB / 0.8484 GB, free: 3.844 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.597e-05/0.01386, allocations: 15.98 kB / 0.8484 GB, free: 3.828 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.01386, allocations: 7.938 kB / 0.8484 GB, free: 3.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.01388, allocations: 3.984 kB / 0.8484 GB, free: 3.816 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.01388, allocations: 7.984 kB / 0.8484 GB, free: 3.809 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01388, allocations: 0 / 0.8484 GB, free: 3.809 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.0141, allocations: 243.8 kB / 0.8487 GB, free: 3.555 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.01425, allocations: 127.5 kB / 0.8488 GB, free: 3.426 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.915e-05/0.0143, allocations: 19.98 kB / 0.8488 GB, free: 3.406 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.01447, allocations: 27.98 kB / 0.8488 GB, free: 3.379 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.901e-05/0.0145, allocations: 15.97 kB / 0.8489 GB, free: 3.363 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.884e-05/0.01454, allocations: 43.98 kB / 0.8489 GB, free: 3.32 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0001027/0.01464, allocations: 148.7 kB / 0.849 GB, free: 3.172 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.01464, allocations: 0 / 0.849 GB, free: 3.172 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002035/0.01485, allocations: 67.98 kB / 0.8491 GB, free: 3.105 MB / 0.8073 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.0001368/0.01498, allocations: 104.4 kB / 0.8492 GB, free: 2.996 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0006919/0.01568, allocations: 414.8 kB / 0.8496 GB, free: 2.551 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.01568, allocations: 4 kB / 0.8496 GB, free: 2.547 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.412e-05/0.01578, allocations: 63.12 kB / 0.8497 GB, free: 2.484 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.01603, allocations: 58.66 kB / 0.8497 GB, free: 2.43 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005544/0.01659, allocations: 487.8 kB / 0.8502 GB, free: 1.922 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.942e-05/0.01664, allocations: 83.81 kB / 0.8503 GB, free: 1.82 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.13e-05/0.01668, allocations: 13.48 kB / 0.8503 GB, free: 1.809 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.01686, allocations: 127.3 kB / 0.8504 GB, free: 1.684 MB / 0.8073 GB Notification: Performance of SimCode: time 7.11e-07/0.01686, allocations: 0 / 0.8504 GB, free: 1.684 MB / 0.8073 GB Notification: Performance of Templates: time 0.007318/0.02417, allocations: 5.874 MB / 0.8561 GB, free: 11.78 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.444062693975866]