Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001373/0.001373, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.2 MB / 239.9 MB, free: 5.441 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.383/2.383, allocations: 390.3 MB / 0.6653 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003555, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6774/0.6778, allocations: 142.3 MB / 0.9535 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths): time 0.001672/0.6795, allocations: 1.351 MB / 0.9549 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007936/0.6803, allocations: 453.9 kB / 0.9553 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.693e-05/0.6804, allocations: 0 / 0.9553 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.202e-05/0.6805, allocations: 3.938 kB / 0.9553 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.6806, allocations: 32.77 kB / 0.9553 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006219/0.6812, allocations: 217.3 kB / 0.9555 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.6815, allocations: 187.1 kB / 0.9557 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.6816, allocations: 29.73 kB / 0.9557 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.6819, allocations: 179.9 kB / 0.9559 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.6821, allocations: 134.7 kB / 0.956 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.221e-05/0.6821, allocations: 9.188 kB / 0.9561 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.006e-05/0.6822, allocations: 14.19 kB / 0.9561 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.6823, allocations: 80.31 kB / 0.9561 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.68e-05/0.6824, allocations: 74.77 kB / 0.9562 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.6826, allocations: 327.5 kB / 0.9565 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6827, allocations: 4 kB / 0.9565 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.505e-06/0.6827, allocations: 1.031 kB / 0.9565 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.024e-05/0.6827, allocations: 0 / 0.9565 GB, free: 5.793 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.0008559/0.6835, allocations: 0.6868 MB / 0.9572 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.6836, allocations: 12.84 kB / 0.9572 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.6837, allocations: 35.28 kB / 0.9573 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.684, allocations: 270.1 kB / 0.9575 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.372e-05/0.6841, allocations: 19.39 kB / 0.9575 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.354e-05/0.6842, allocations: 22.53 kB / 0.9575 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000953/0.6851, allocations: 244.4 kB / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.6852, allocations: 0 / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.6852, allocations: 1.562 kB / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.6852, allocations: 5.453 kB / 0.9578 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000771/0.686, allocations: 123.9 kB / 0.9579 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.6871, allocations: 0.5642 MB / 0.9585 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.6881, allocations: 209.2 kB / 0.9587 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.6882, allocations: 5.234 kB / 0.9587 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009356/0.6891, allocations: 227.5 kB / 0.9589 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.793e-06/0.6891, allocations: 1.188 kB / 0.9589 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002551/0.6917, allocations: 495.3 kB / 0.9594 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.6917, allocations: 60.91 kB / 0.9594 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.692, allocations: 311.7 kB / 0.9597 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.6921, allocations: 40.56 kB / 0.9597 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.099e-05/0.6921, allocations: 102.5 kB / 0.9598 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.6922, allocations: 38.41 kB / 0.9599 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.6922, allocations: 7.469 kB / 0.9599 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.761e-05/0.6923, allocations: 321.8 kB / 0.9602 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.6925, allocations: 100.6 kB / 0.9603 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.6927, allocations: 145.5 kB / 0.9604 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.6929, allocations: 168.5 kB / 0.9606 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.693, allocations: 3.953 kB / 0.9606 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006795/0.6936, allocations: 410.9 kB / 0.961 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.243e-05/0.6937, allocations: 84.53 kB / 0.9611 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.6937, allocations: 2.219 kB / 0.9611 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.6937, allocations: 2.562 kB / 0.9611 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.6939, allocations: 26.5 kB / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.6939, allocations: 2.562 kB / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.6944, allocations: 65.11 kB / 0.9612 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.608e-05/0.6945, allocations: 39.42 kB / 0.9612 GB, free: 2.242 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 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition1,calTim.calTim.hourSampleTrigger,$whenCondition2,calTim.calTim.daySampleTrigger,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001737/0.6947, allocations: 197.8 kB / 0.9614 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.6947, allocations: 28.16 kB / 0.9614 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.6948, allocations: 29.67 kB / 0.9614 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.6948, allocations: 1.125 kB / 0.9614 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.6948, allocations: 5.109 kB / 0.9614 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.6948, allocations: 0 / 0.9614 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.6968, allocations: 0.7493 MB / 0.9622 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.6968, allocations: 4 kB / 0.9622 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.362e-05/0.6969, allocations: 7.531 kB / 0.9622 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.6969, allocations: 1.281 kB / 0.9622 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.6969, allocations: 24.7 kB / 0.9622 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.6969, allocations: 0 / 0.9622 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6969, allocations: 1.031 kB / 0.9622 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.6986, allocations: 482.5 kB / 0.9627 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.6988, allocations: 188 kB / 0.9629 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.275e-05/0.6989, allocations: 15.06 kB / 0.9629 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004641/0.6994, allocations: 41.31 kB / 0.9629 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.6994, allocations: 4.156 kB / 0.9629 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.446e-05/0.6995, allocations: 45.12 kB / 0.963 GB, free: 1 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001779/0.6997, allocations: 229.3 kB / 0.9632 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6997, allocations: 4 kB / 0.9632 GB, free: 0.8438 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003275/0.7, allocations: 57.45 kB / 0.9632 GB, free: 0.832 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000149/0.7001, allocations: 119.9 kB / 0.9633 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001135/0.7013, allocations: 409.9 kB / 0.9637 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.7013, allocations: 0 / 0.9637 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007944/0.7021, allocations: 138.4 kB / 0.9639 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.7024, allocations: 32.58 kB / 0.9639 GB, free: 420 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.7038, allocations: 0.5356 MB / 0.9644 GB, free: 32 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.7042, allocations: 0.7561 MB / 0.9652 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.725e-05/0.7043, allocations: 21.62 kB / 0.9652 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.684e-05/0.7043, allocations: 18.64 kB / 0.9652 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of SimCode: time 3e-07/0.7043, allocations: 0 / 0.9652 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of Templates: time 0.008177/0.7125, allocations: 3.862 MB / 0.969 GB, free: 13.32 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches