Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 108.2 kB / 15.99 MB, free: 5.891 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.001958/0.001959, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.425/1.425, allocations: 222.9 MB / 240.6 MB, free: 4.52 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.656/2.656, allocations: 437.1 MB / 0.7107 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 63.91 kB / 0.8695 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6143/0.6165, allocations: 151.6 MB / 1.018 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003684/0.6202, allocations: 1.791 MB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.6217, allocations: 0.6285 MB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.6219, allocations: 0 / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.6221, allocations: 11.86 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.6222, allocations: 27.84 kB / 1.02 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009725/0.6232, allocations: 346.8 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006901/0.6239, allocations: 0.6321 MB / 1.021 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.624, allocations: 28.89 kB / 1.021 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005103/0.6245, allocations: 375.1 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002877/0.6248, allocations: 175.2 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.628e-05/0.6249, allocations: 47.94 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.146e-05/0.625, allocations: 40 kB / 1.022 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.6252, allocations: 123.7 kB / 1.022 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.6255, allocations: 230.8 kB / 1.022 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004921/0.626, allocations: 488.9 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.626, allocations: 7.938 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.833e-06/0.626, allocations: 0 / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.626, allocations: 0 / 1.022 GB, free: 13.78 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.001432/0.6274, allocations: 0.9015 MB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.6275, allocations: 11.98 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.6276, allocations: 56.38 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004462/0.6281, allocations: 346.1 kB / 1.024 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.444e-05/0.6282, allocations: 20.55 kB / 1.024 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.306e-05/0.6283, allocations: 36.36 kB / 1.024 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.6293, allocations: 235.6 kB / 1.024 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.6294, allocations: 3.938 kB / 1.024 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.6294, allocations: 8 kB / 1.024 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.6294, allocations: 0 / 1.024 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008013/0.6302, allocations: 119.9 kB / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.6316, allocations: 0.6719 MB / 1.025 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.6327, allocations: 186.5 kB / 1.025 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007915/0.6335, allocations: 116.8 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.6335, allocations: 3.984 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009974/0.6345, allocations: 233.4 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 2.013e-06/0.6346, allocations: 0 / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.002721/0.6373, allocations: 0.4929 MB / 1.026 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.6374, allocations: 67.39 kB / 1.026 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005006/0.6379, allocations: 441.8 kB / 1.026 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.315e-05/0.6379, allocations: 45.69 kB / 1.026 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.6381, allocations: 101.3 kB / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.723e-05/0.6381, allocations: 27.62 kB / 1.026 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002384/0.6384, allocations: 137.3 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.6385, allocations: 334.7 kB / 1.027 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.6388, allocations: 139.9 kB / 1.027 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.6392, allocations: 201.9 kB / 1.027 GB, free: 8.625 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005361/0.6398, allocations: 302.7 kB / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.6398, allocations: 0 / 1.027 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009303/0.6407, allocations: 0.5201 MB / 1.028 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.976e-05/0.6408, allocations: 91.38 kB / 1.028 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.6408, allocations: 7.984 kB / 1.028 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.6409, allocations: 0 / 1.028 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.641, allocations: 36.09 kB / 1.028 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.6411, allocations: 4 kB / 1.028 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.6416, allocations: 51.86 kB / 1.028 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.575e-05/0.6417, allocations: 63.92 kB / 1.028 GB, free: 7.496 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.0002853/0.642, allocations: 224.2 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.458e-05/0.6421, allocations: 39.53 kB / 1.028 GB, free: 7.227 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.293e-05/0.6421, allocations: 39.8 kB / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.6421, allocations: 4 kB / 1.028 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.6422, allocations: 0 / 1.028 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.6422, allocations: 3.984 kB / 1.028 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002335/0.6445, allocations: 0.788 MB / 1.029 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.6445, allocations: 7.922 kB / 1.029 GB, free: 6.324 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-05/0.6446, allocations: 4 kB / 1.029 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.6446, allocations: 0 / 1.029 GB, free: 6.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.6446, allocations: 23.91 kB / 1.029 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/0.6446, allocations: 8 kB / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.6446, allocations: 3.938 kB / 1.029 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.6465, allocations: 472 kB / 1.03 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003304/0.6468, allocations: 248.4 kB / 1.03 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.438e-05/0.6469, allocations: 15.94 kB / 1.03 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000507/0.6475, allocations: 39.95 kB / 1.03 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.6475, allocations: 7.984 kB / 1.03 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.688e-05/0.6476, allocations: 59.98 kB / 1.03 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000378/0.648, allocations: 315.1 kB / 1.03 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.648, allocations: 4 kB / 1.03 GB, free: 5.117 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004537/0.6484, allocations: 71.94 kB / 1.03 GB, free: 5.047 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.0002299/0.6487, allocations: 127.7 kB / 1.031 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001476/0.6502, allocations: 483.3 kB / 1.031 GB, free: 4.418 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.6502, allocations: 0 / 1.031 GB, free: 4.418 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0008086/0.651, allocations: 125.1 kB / 1.031 GB, free: 4.297 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.6514, allocations: 47.27 kB / 1.031 GB, free: 4.254 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.6533, allocations: 0.7651 MB / 1.032 GB, free: 3.457 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004775/0.6538, allocations: 0.7902 MB / 1.033 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.187e-05/0.6538, allocations: 15.44 kB / 1.033 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of SimCode: time 5.21e-07/0.6538, allocations: 0 / 1.033 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of Templates: time 0.007302/0.6611, allocations: 4.082 MB / 1.037 GB, free: 14.5 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time