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.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.CalendarTimeMonths,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths",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.004588/0.004588, allocations: 103.5 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.001046/0.001046, allocations: 189 kB / 16.67 MB, free: 5.969 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.311/2.311, allocations: 390.3 MB / 0.6648 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002496/0.002496, allocations: 63.91 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8603/0.8629, allocations: 140.4 MB / 1.088 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths): time 0.002858/0.8658, allocations: 1.741 MB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.8672, allocations: 0.6142 MB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.365e-05/0.8673, allocations: 1.375 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.8674, allocations: 10.27 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.8676, allocations: 36 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008954/0.8685, allocations: 369.8 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006708/0.8692, allocations: 0.6332 MB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.8693, allocations: 30.5 kB / 1.091 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004652/0.8698, allocations: 311.8 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/0.8701, allocations: 154.8 kB / 1.091 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.8702, allocations: 41.25 kB / 1.091 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.65e-05/0.8703, allocations: 44.59 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.8705, allocations: 128.6 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002171/0.8707, allocations: 216.8 kB / 1.092 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006683/0.8714, allocations: 0.5979 MB / 1.092 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.8714, allocations: 0 / 1.092 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8714, allocations: 0.625 kB / 1.092 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.8714, allocations: 0 / 1.092 GB, free: 2.559 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.001262/0.8727, allocations: 0.901 MB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.8727, allocations: 14.06 kB / 1.093 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.445e-05/0.8728, allocations: 40.88 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.8729, allocations: 56.89 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/0.8734, allocations: 337 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.45e-05/0.8734, allocations: 23.3 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.362e-05/0.8735, allocations: 30.39 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.8746, allocations: 232.2 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.8746, allocations: 8.75 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.8747, allocations: 5.734 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.8747, allocations: 2.281 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008123/0.8755, allocations: 113 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.877, allocations: 0.6755 MB / 1.095 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.8781, allocations: 181.8 kB / 1.095 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008079/0.8789, allocations: 118.5 kB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.879, allocations: 2.531 kB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009992/0.88, allocations: 231.2 kB / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.605e-06/0.88, allocations: 0 / 1.095 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002803/0.8828, allocations: 0.4904 MB / 1.096 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.8828, allocations: 65.78 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/0.8834, allocations: 440.4 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.839e-05/0.8835, allocations: 40.34 kB / 1.096 GB, free: 284 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.495e-05/0.8835, allocations: 101.8 kB / 1.096 GB, free: 192 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.8836, allocations: 36.69 kB / 1.096 GB, free: 164 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/0.8839, allocations: 137.2 kB / 1.096 GB, free: 100 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.884, allocations: 329.7 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.8843, allocations: 135.5 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003798/0.8847, allocations: 196.5 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004671/0.8852, allocations: 303.7 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.8852, allocations: 1.125 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000981/0.8862, allocations: 0.5203 MB / 1.098 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.774e-05/0.8863, allocations: 94.5 kB / 1.098 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.8863, allocations: 1.031 kB / 1.098 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.8863, allocations: 3.469 kB / 1.098 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.8865, allocations: 31.33 kB / 1.098 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.8866, allocations: 8.328 kB / 1.098 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.8871, allocations: 54.55 kB / 1.098 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.8872, allocations: 61.22 kB / 1.098 GB, free: 15.05 MB / 0.8731 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.0002848/0.8875, allocations: 224 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.764e-05/0.8876, allocations: 41 kB / 1.098 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.252e-05/0.8876, allocations: 42.52 kB / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.8877, allocations: 2.094 kB / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.8877, allocations: 1.125 kB / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.8877, allocations: 1.5 kB / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.8901, allocations: 0.7907 MB / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.8902, allocations: 0 / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.766e-05/0.8902, allocations: 4.922 kB / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.8902, allocations: 0.75 kB / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.8903, allocations: 34.92 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.8903, allocations: 0.6562 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.8903, allocations: 1.281 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.8922, allocations: 474.5 kB / 1.1 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003647/0.8925, allocations: 246.5 kB / 1.1 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.856e-05/0.8926, allocations: 20.53 kB / 1.1 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004958/0.8931, allocations: 36.27 kB / 1.1 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.788e-05/0.8932, allocations: 12.61 kB / 1.1 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.673e-05/0.8933, allocations: 55.39 kB / 1.1 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004/0.8937, allocations: 319.7 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8937, allocations: 0 / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005427/0.8942, allocations: 70.77 kB / 1.1 GB, free: 13.85 MB / 0.8731 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.002429/0.8967, allocations: 1.047 MB / 1.101 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001485/0.8982, allocations: 475.7 kB / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.8982, allocations: 0 / 1.102 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008074/0.899, allocations: 124 kB / 1.102 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.8994, allocations: 38.61 kB / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005076/0.9045, allocations: 3.008 MB / 1.105 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.905, allocations: 0.7831 MB / 1.106 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.158e-05/0.9051, allocations: 16.95 kB / 1.106 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.547e-05/0.9052, allocations: 30.33 kB / 1.106 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/0.9052, allocations: 0 / 1.106 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.9334, allocations: 6.837 MB / 1.112 GB, free: 8.84 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.717/8.651, allocations: 10.61 kB / 1.112 GB, free: 8.836 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths_fmu --startTime=172800 --stopTime=345600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches