Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.00155, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 196 kB / 16.79 MB, free: 6.809 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.372/1.372, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.423/2.423, allocations: 390.2 MB / 0.6649 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 63.91 kB / 0.8125 GB, free: 14.9 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6434/0.6451, allocations: 140.4 MB / 0.9496 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.002603/0.6477, allocations: 1.797 MB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.649, allocations: 0.6945 MB / 0.952 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.859e-05/0.649, allocations: 1.375 kB / 0.952 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.6491, allocations: 3.938 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.6493, allocations: 32.22 kB / 0.9521 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007251/0.65, allocations: 334.7 kB / 0.9524 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.6505, allocations: 0.5358 MB / 0.9529 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.6506, allocations: 30.66 kB / 0.953 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.651, allocations: 320.1 kB / 0.9533 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/0.6512, allocations: 167.8 kB / 0.9534 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.6513, allocations: 15.56 kB / 0.9534 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.487e-05/0.6514, allocations: 18.56 kB / 0.9535 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.6516, allocations: 120.9 kB / 0.9536 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000221/0.6518, allocations: 202.6 kB / 0.9538 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.6522, allocations: 488.8 kB / 0.9542 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.6522, allocations: 0 / 0.9542 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.113e-06/0.6522, allocations: 1.375 kB / 0.9542 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.6522, allocations: 0 / 0.9542 GB, free: 5.871 MB / 0.7169 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.001177/0.6534, allocations: 0.9026 MB / 0.9551 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.6534, allocations: 9.375 kB / 0.9551 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.6536, allocations: 56.41 kB / 0.9552 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.654, allocations: 336.7 kB / 0.9555 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.654, allocations: 23.88 kB / 0.9555 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9e-05/0.6541, allocations: 28.95 kB / 0.9555 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.6552, allocations: 237.1 kB / 0.9558 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.6552, allocations: 3.938 kB / 0.9558 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.6553, allocations: 9.391 kB / 0.9558 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.6553, allocations: 2.406 kB / 0.9558 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008429/0.6561, allocations: 114.8 kB / 0.9559 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.6573, allocations: 0.6729 MB / 0.9566 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.6585, allocations: 187.2 kB / 0.9567 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008053/0.6593, allocations: 117.5 kB / 0.9568 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.6593, allocations: 2.562 kB / 0.9568 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009596/0.6603, allocations: 230.5 kB / 0.9571 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.6603, allocations: 1.688 kB / 0.9571 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00272/0.663, allocations: 498 kB / 0.9575 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.6631, allocations: 64.84 kB / 0.9576 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004227/0.6635, allocations: 447.7 kB / 0.958 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.412e-05/0.6636, allocations: 42.22 kB / 0.9581 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.278e-05/0.6637, allocations: 105.2 kB / 0.9582 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.6637, allocations: 33.3 kB / 0.9582 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/0.6639, allocations: 138 kB / 0.9583 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.355e-05/0.664, allocations: 324.9 kB / 0.9586 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003064/0.6643, allocations: 140.9 kB / 0.9588 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003032/0.6646, allocations: 197.2 kB / 0.959 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.665, allocations: 310.5 kB / 0.9593 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.665, allocations: 1.375 kB / 0.9593 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008755/0.6659, allocations: 0.5153 MB / 0.9598 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.26e-05/0.666, allocations: 97.81 kB / 0.9599 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.666, allocations: 10.11 kB / 0.9599 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.666, allocations: 2.031 kB / 0.9599 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.6662, allocations: 22.89 kB / 0.9599 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.6662, allocations: 7.125 kB / 0.9599 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005498/0.6668, allocations: 58.41 kB / 0.96 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.391e-05/0.6669, allocations: 68.84 kB / 0.96 GB, free: 1.637 MB / 0.7169 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.0002311/0.6671, allocations: 216.9 kB / 0.9602 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.228e-05/0.6672, allocations: 44.28 kB / 0.9603 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.6672, allocations: 40.34 kB / 0.9603 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.6672, allocations: 2.562 kB / 0.9603 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.6672, allocations: 0 / 0.9603 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.6673, allocations: 1.094 kB / 0.9603 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/0.6694, allocations: 0.7843 MB / 0.9611 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.6694, allocations: 1.406 kB / 0.9611 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.761e-05/0.6695, allocations: 7.719 kB / 0.9611 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.6695, allocations: 0 / 0.9611 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/0.6695, allocations: 28.53 kB / 0.9611 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.6696, allocations: 0 / 0.9611 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.6696, allocations: 1.375 kB / 0.9611 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.6713, allocations: 482.9 kB / 0.9616 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002357/0.6715, allocations: 244.2 kB / 0.9618 GB, free: 368 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.484e-05/0.6716, allocations: 22.95 kB / 0.9618 GB, free: 352 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/0.6721, allocations: 31.81 kB / 0.9619 GB, free: 340 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.906e-05/0.6722, allocations: 11.73 kB / 0.9619 GB, free: 332 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-05/0.6722, allocations: 53.27 kB / 0.9619 GB, free: 328 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002937/0.6725, allocations: 322.6 kB / 0.9622 GB, free: 128 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6725, allocations: 0 / 0.9622 GB, free: 128 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003982/0.673, allocations: 67.73 kB / 0.9623 GB, free: 120 kB / 0.7169 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.0001526/0.6731, allocations: 140.8 kB / 0.9624 GB, free: 4 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001371/0.6745, allocations: 468.4 kB / 0.9629 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6745, allocations: 0 / 0.9629 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000809/0.6753, allocations: 134.2 kB / 0.963 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.6758, allocations: 40.75 kB / 0.963 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.6775, allocations: 0.7672 MB / 0.9638 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.6779, allocations: 0.7912 MB / 0.9646 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.678, allocations: 15.19 kB / 0.9646 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of SimCode: time 2.044e-06/0.678, allocations: 0 / 0.9646 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of Templates: time 0.006983/0.685, allocations: 4.074 MB / 0.9686 GB, free: 12.12 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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