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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.007152/0.007152, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001714/0.001714, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.414/2.414, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 64.5 kB / 0.9505 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2979, allocations: 140.4 MB / 1.088 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.002808/0.3007, allocations: 1.732 MB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.3021, allocations: 0.632 MB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.3022, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.3023, allocations: 15.86 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.3025, allocations: 31.8 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009039/0.3034, allocations: 366.6 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006653/0.3041, allocations: 0.6321 MB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.3042, allocations: 37.06 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004762/0.3047, allocations: 311.6 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.305, allocations: 157.2 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.857e-05/0.3051, allocations: 47.94 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.857e-05/0.3052, allocations: 44 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.3054, allocations: 123.6 kB / 1.092 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002118/0.3056, allocations: 226.9 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005927/0.3062, allocations: 0.5876 MB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3062, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3062, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.518e-05/0.3062, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 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.001501/0.3077, allocations: 0.9092 MB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3078, allocations: 8.031 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.44e-05/0.3079, allocations: 46.75 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.308, allocations: 56.45 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.3084, allocations: 334.1 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.3085, allocations: 20.36 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.393e-05/0.3086, allocations: 28.38 kB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3096, allocations: 235.7 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.3097, allocations: 3.938 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.3097, allocations: 7.984 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.3097, allocations: 4 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007188/0.3104, allocations: 107.9 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.3117, allocations: 0.672 MB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.3128, allocations: 186.4 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007243/0.3135, allocations: 120.8 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.3135, allocations: 3.938 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009366/0.3145, allocations: 227.2 kB / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.324e-06/0.3145, allocations: 0 / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002349/0.3169, allocations: 499.9 kB / 1.096 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.3169, allocations: 71.39 kB / 1.096 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/0.3174, allocations: 433.9 kB / 1.096 GB, free: 8.875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.429e-05/0.3175, allocations: 45.69 kB / 1.096 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.3176, allocations: 105.3 kB / 1.096 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.3177, allocations: 43.48 kB / 1.096 GB, free: 8.676 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/0.3179, allocations: 137.3 kB / 1.096 GB, free: 8.535 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.318, allocations: 326.8 kB / 1.097 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002795/0.3183, allocations: 135.9 kB / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003036/0.3186, allocations: 190.9 kB / 1.097 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.319, allocations: 307.1 kB / 1.097 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.319, allocations: 0 / 1.097 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008346/0.3199, allocations: 0.5084 MB / 1.098 GB, free: 7.008 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.82e-05/0.32, allocations: 101.2 kB / 1.098 GB, free: 6.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.32, allocations: 0 / 1.098 GB, free: 6.898 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.32, allocations: 7.938 kB / 1.098 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.3202, allocations: 24.11 kB / 1.098 GB, free: 6.867 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.3202, allocations: 7.984 kB / 1.098 GB, free: 6.859 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004748/0.3207, allocations: 63.73 kB / 1.098 GB, free: 6.797 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.593e-05/0.3208, allocations: 63.92 kB / 1.098 GB, free: 6.734 MB / 0.8575 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.0002278/0.321, allocations: 212.3 kB / 1.098 GB, free: 6.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-05/0.3211, allocations: 39.53 kB / 1.098 GB, free: 6.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.084e-05/0.3212, allocations: 43.78 kB / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3212, allocations: 0 / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.3212, allocations: 4 kB / 1.098 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3212, allocations: 0 / 1.098 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.3232, allocations: 0.7911 MB / 1.099 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3233, allocations: 0 / 1.099 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.825e-05/0.3233, allocations: 7.984 kB / 1.099 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.3233, allocations: 4 kB / 1.099 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.523e-05/0.3234, allocations: 27.91 kB / 1.099 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3234, allocations: 0 / 1.099 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3234, allocations: 0 / 1.099 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.3251, allocations: 479.2 kB / 1.1 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003099/0.3254, allocations: 244.5 kB / 1.1 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.095e-05/0.3255, allocations: 19.94 kB / 1.1 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004411/0.3259, allocations: 35.91 kB / 1.1 GB, free: 4.742 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.326, allocations: 11.98 kB / 1.1 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-05/0.3261, allocations: 55.97 kB / 1.1 GB, free: 4.676 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003378/0.3264, allocations: 323 kB / 1.1 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3264, allocations: 0 / 1.1 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004022/0.3269, allocations: 67.98 kB / 1.1 GB, free: 4.297 MB / 0.8575 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.001999/0.3289, allocations: 1.052 MB / 1.101 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001338/0.3302, allocations: 478.4 kB / 1.102 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3302, allocations: 0 / 1.102 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.3309, allocations: 123.9 kB / 1.102 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.3314, allocations: 38.92 kB / 1.102 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004523/0.3359, allocations: 3.006 MB / 1.105 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.3364, allocations: 0.7825 MB / 1.106 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.623e-05/0.3364, allocations: 17.42 kB / 1.106 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.533e-05/0.3365, allocations: 35.42 kB / 1.106 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of SimCode: time 6.81e-07/0.3365, allocations: 0 / 1.106 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.3669, allocations: 6.714 MB / 1.112 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.534/7.901, allocations: 13.69 kB / 1.112 GB, free: 7.891 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus_fmu --startTime=172801 --stopTime=345601 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.fmu > 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/jenkins1/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