Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001529/0.001529, allocations: 196.1 kB / 16.14 MB, free: 6.645 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.483/1.483, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.635/2.635, allocations: 437 MB / 0.7099 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.89 kB / 0.8686 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8368/0.8382, allocations: 151.6 MB / 1.017 GB, free: 2.941 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.003041/0.8412, allocations: 1.806 MB / 1.018 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001428/0.8427, allocations: 0.6871 MB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.507e-05/0.8428, allocations: 0 / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.8429, allocations: 7.875 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.8431, allocations: 35.84 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007208/0.8438, allocations: 331 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0004711/0.8443, allocations: 0.5267 MB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.8444, allocations: 40.78 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003647/0.8448, allocations: 319 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.845, allocations: 175.2 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.479e-05/0.8451, allocations: 16 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.021e-05/0.8452, allocations: 19.94 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.8454, allocations: 111.7 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002223/0.8456, allocations: 198.8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005292/0.8461, allocations: 0.586 MB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.8461, allocations: 3.938 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.21e-07/0.8461, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.8462, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 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.8474, allocations: 0.9055 MB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.8475, allocations: 11.98 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.8476, allocations: 56.45 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.848, allocations: 338.1 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-05/0.8481, allocations: 24.48 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.93e-05/0.8482, allocations: 32.36 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.8493, allocations: 237.9 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.8493, allocations: 3.938 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.8493, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.8493, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008512/0.8502, allocations: 115.9 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.8515, allocations: 0.672 MB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.8526, allocations: 182.4 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008116/0.8534, allocations: 120.8 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.8535, allocations: 4 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/0.8545, allocations: 233.5 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.335e-06/0.8545, allocations: 0 / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002768/0.8573, allocations: 496.8 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.8574, allocations: 71.33 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004894/0.8579, allocations: 441.8 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.234e-05/0.8579, allocations: 41.69 kB / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.8581, allocations: 101.3 kB / 1.025 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.929e-05/0.8581, allocations: 39.55 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.8584, allocations: 137.3 kB / 1.025 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.8585, allocations: 330.8 kB / 1.026 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.8588, allocations: 139.9 kB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003435/0.8592, allocations: 189.9 kB / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004105/0.8596, allocations: 303.3 kB / 1.026 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.8596, allocations: 0 / 1.026 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000899/0.8605, allocations: 0.528 MB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.8606, allocations: 103.4 kB / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.8606, allocations: 0 / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.8607, allocations: 4 kB / 1.027 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.8608, allocations: 23.92 kB / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.8609, allocations: 0 / 1.027 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005249/0.8614, allocations: 63.84 kB / 1.027 GB, free: 7.875 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.8615, allocations: 67.92 kB / 1.027 GB, free: 7.809 MB / 0.7794 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.0002564/0.8618, allocations: 212.8 kB / 1.027 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.378e-05/0.8619, allocations: 43.47 kB / 1.027 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.59e-05/0.8619, allocations: 43.78 kB / 1.027 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.8619, allocations: 0 / 1.027 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.8619, allocations: 4 kB / 1.027 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.862, allocations: 0 / 1.027 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.8643, allocations: 0.793 MB / 1.028 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.8643, allocations: 0 / 1.028 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.814e-05/0.8643, allocations: 4 kB / 1.028 GB, free: 6.645 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.8643, allocations: 0 / 1.028 GB, free: 6.645 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.404e-05/0.8644, allocations: 31.84 kB / 1.028 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.8644, allocations: 4 kB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.8644, allocations: 0 / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.8663, allocations: 482.8 kB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002801/0.8666, allocations: 244.4 kB / 1.029 GB, free: 5.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.691e-05/0.8667, allocations: 19.94 kB / 1.029 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005047/0.8672, allocations: 27.97 kB / 1.029 GB, free: 5.816 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.8672, allocations: 11.98 kB / 1.029 GB, free: 5.805 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.027e-05/0.8673, allocations: 59.95 kB / 1.029 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003563/0.8677, allocations: 319.1 kB / 1.029 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8677, allocations: 0 / 1.029 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004222/0.8681, allocations: 71.98 kB / 1.029 GB, free: 5.367 MB / 0.7794 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.0002145/0.8683, allocations: 123.2 kB / 1.03 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.00139/0.8697, allocations: 471.8 kB / 1.03 GB, free: 4.754 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.8697, allocations: 4.375 kB / 1.03 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000809/0.8706, allocations: 127.8 kB / 1.03 GB, free: 4.625 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004181/0.871, allocations: 42.56 kB / 1.03 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.8727, allocations: 0.721 MB / 1.031 GB, free: 3.832 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.8731, allocations: 0.7867 MB / 1.032 GB, free: 3.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.35e-05/0.8732, allocations: 13.42 kB / 1.032 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.394e-05/0.8733, allocations: 15.44 kB / 1.032 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.8733, allocations: 4 kB / 1.032 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of Templates: time 0.009559/0.8828, allocations: 5.455 MB / 1.037 GB, free: 13.45 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches