Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009832/0.009832, allocations: 101.1 kB / 15.73 MB, free: 5.992 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.00184/0.00184, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.662/2.662, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00207/0.002071, allocations: 71.83 kB / 1.054 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8963/0.8984, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003168/0.9016, allocations: 1.75 MB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.9033, allocations: 0.6207 MB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.9035, allocations: 8 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.9037, allocations: 15.8 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.9038, allocations: 35.73 kB / 1.21 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.9049, allocations: 362.7 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007285/0.9056, allocations: 0.6321 MB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.9057, allocations: 37.09 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004594/0.9062, allocations: 307.6 kB / 1.211 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000336/0.9066, allocations: 159.3 kB / 1.211 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.9067, allocations: 44 kB / 1.211 GB, free: 9.602 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.457e-05/0.9068, allocations: 40 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.9069, allocations: 127.6 kB / 1.211 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002439/0.9072, allocations: 211 kB / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000609/0.9078, allocations: 0.6019 MB / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.9078, allocations: 0 / 1.212 GB, free: 8.629 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.314e-06/0.9078, allocations: 4 kB / 1.212 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.182e-05/0.9078, allocations: 4 kB / 1.212 GB, free: 8.621 MB / 0.9356 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.001695/0.9095, allocations: 0.9054 MB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.9096, allocations: 8.031 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.95e-05/0.9097, allocations: 42.73 kB / 1.213 GB, free: 7.566 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.9098, allocations: 52.47 kB / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.9102, allocations: 334.1 kB / 1.213 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.9103, allocations: 16.38 kB / 1.213 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.187e-05/0.9103, allocations: 44.28 kB / 1.213 GB, free: 7.09 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009268/0.9113, allocations: 235.4 kB / 1.214 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.9113, allocations: 3.938 kB / 1.214 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.9113, allocations: 0 / 1.214 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.9113, allocations: 4 kB / 1.214 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007081/0.9121, allocations: 119.8 kB / 1.214 GB, free: 6.73 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.9132, allocations: 0.672 MB / 1.215 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009545/0.9142, allocations: 186.5 kB / 1.215 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006833/0.9149, allocations: 112.8 kB / 1.215 GB, free: 5.703 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.9149, allocations: 4 kB / 1.215 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008819/0.9158, allocations: 235 kB / 1.215 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.863e-06/0.9158, allocations: 0 / 1.215 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.00229/0.9181, allocations: 0.4891 MB / 1.215 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.9182, allocations: 63.39 kB / 1.216 GB, free: 4.887 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004042/0.9186, allocations: 437.9 kB / 1.216 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.9186, allocations: 37.7 kB / 1.216 GB, free: 4.406 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.292e-05/0.9187, allocations: 109.3 kB / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.9188, allocations: 39.5 kB / 1.216 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.919, allocations: 137.3 kB / 1.216 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.9191, allocations: 330.8 kB / 1.217 GB, free: 3.785 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.9194, allocations: 131.9 kB / 1.217 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.9197, allocations: 195.1 kB / 1.217 GB, free: 3.445 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.92, allocations: 299.3 kB / 1.217 GB, free: 3.121 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.92, allocations: 0 / 1.217 GB, free: 3.121 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008116/0.9209, allocations: 0.5242 MB / 1.218 GB, free: 2.578 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-05/0.9209, allocations: 95.38 kB / 1.218 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.921, allocations: 0 / 1.218 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.921, allocations: 4 kB / 1.218 GB, free: 2.469 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.9212, allocations: 19.98 kB / 1.218 GB, free: 2.449 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.9212, allocations: 3.938 kB / 1.218 GB, free: 2.445 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004476/0.9216, allocations: 63.98 kB / 1.218 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.728e-05/0.9217, allocations: 67.91 kB / 1.218 GB, free: 2.316 MB / 0.9356 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.0002091/0.9219, allocations: 216.3 kB / 1.218 GB, free: 2.098 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.568e-05/0.922, allocations: 39.53 kB / 1.218 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.37e-05/0.9221, allocations: 43.78 kB / 1.218 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.9221, allocations: 0 / 1.218 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.9221, allocations: 0 / 1.218 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.9221, allocations: 3.938 kB / 1.218 GB, free: 2.008 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.9241, allocations: 0.7858 MB / 1.219 GB, free: 1.164 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.9241, allocations: 4 kB / 1.219 GB, free: 1.16 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.69e-05/0.9241, allocations: 8 kB / 1.219 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.9241, allocations: 3.938 kB / 1.219 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.9242, allocations: 27.91 kB / 1.219 GB, free: 1.121 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.9242, allocations: 0 / 1.219 GB, free: 1.121 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.9242, allocations: 0 / 1.219 GB, free: 1.121 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.9258, allocations: 475.3 kB / 1.219 GB, free: 0.6406 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002601/0.926, allocations: 244.4 kB / 1.22 GB, free: 392 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.154e-05/0.9261, allocations: 31.86 kB / 1.22 GB, free: 360 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000441/0.9266, allocations: 31.97 kB / 1.22 GB, free: 328 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.9266, allocations: 7.984 kB / 1.22 GB, free: 320 kB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.38e-05/0.9267, allocations: 51.98 kB / 1.22 GB, free: 268 kB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002951/0.927, allocations: 323.1 kB / 1.22 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/0.927, allocations: 4 kB / 1.22 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003529/0.9274, allocations: 71.89 kB / 1.22 GB, free: 15.88 MB / 0.9512 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.001913/0.9293, allocations: 1.034 MB / 1.221 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001178/0.9305, allocations: 482.3 kB / 1.222 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.9305, allocations: 384 / 1.222 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006965/0.9312, allocations: 130.1 kB / 1.222 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003933/0.9316, allocations: 35.94 kB / 1.222 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.9357, allocations: 3.011 MB / 1.225 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.9361, allocations: 0.7825 MB / 1.226 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.57e-05/0.9361, allocations: 17.41 kB / 1.226 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.364e-05/0.9362, allocations: 31.42 kB / 1.226 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of SimCode: time 3.61e-07/0.9362, allocations: 4 kB / 1.226 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.9603, allocations: 6.73 MB / 1.232 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.73/8.69, allocations: 10.06 kB / 1.232 GB, free: 3.477 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus_fmu --startTime=172801 --stopTime=345601 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches