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.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: 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.01227/0.01227, allocations: 100.3 kB / 15.73 MB, free: 5.965 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.002466/0.002466, allocations: 198.7 kB / 16.68 MB, free: 5.887 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.575/1.575, allocations: 222.9 MB / 240.4 MB, free: 15.06 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.396/2.396, allocations: 390.2 MB / 0.6648 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 63.91 kB / 0.9509 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.302/1.303, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus): time 0.003164/1.306, allocations: 1.739 MB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001547/1.308, allocations: 0.6192 MB / 1.09 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.616e-05/1.308, allocations: 5.312 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/1.308, allocations: 9.984 kB / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001459/1.308, allocations: 36.31 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009449/1.309, allocations: 358.2 kB / 1.091 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007574/1.31, allocations: 0.6333 MB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/1.31, allocations: 34.7 kB / 1.091 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004646/1.311, allocations: 311 kB / 1.092 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/1.311, allocations: 160.2 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.751e-05/1.311, allocations: 40.81 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.848e-05/1.311, allocations: 41.09 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001879/1.311, allocations: 127.6 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002591/1.312, allocations: 217.1 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007401/1.312, allocations: 0.5931 MB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/1.312, allocations: 0.6562 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/1.312, allocations: 0.6562 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.047e-06/1.312, allocations: 4 kB / 1.093 GB, free: 2.773 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.001379/1.314, allocations: 0.9004 MB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/1.314, allocations: 10.31 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/1.314, allocations: 55.58 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000404/1.314, allocations: 337.6 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.371e-05/1.314, allocations: 23.16 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.546e-05/1.315, allocations: 27.34 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/1.316, allocations: 235.8 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/1.316, allocations: 192 / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/1.316, allocations: 11.56 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/1.316, allocations: 5.844 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007775/1.316, allocations: 116.2 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/1.318, allocations: 0.6684 MB / 1.095 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/1.319, allocations: 185.7 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/1.32, allocations: 122.2 kB / 1.095 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/1.32, allocations: 2.344 kB / 1.095 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001046/1.321, allocations: 231 kB / 1.096 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.524e-06/1.321, allocations: 3.984 kB / 1.096 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002667/1.324, allocations: 498.8 kB / 1.096 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/1.324, allocations: 66.16 kB / 1.096 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006278/1.324, allocations: 448.2 kB / 1.097 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.322e-05/1.324, allocations: 40.03 kB / 1.097 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.439e-05/1.324, allocations: 100.9 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/1.325, allocations: 33.98 kB / 1.097 GB, free: 424 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/1.325, allocations: 141.2 kB / 1.097 GB, free: 356 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.656e-05/1.325, allocations: 326.2 kB / 1.097 GB, free: 28 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/1.325, allocations: 134.8 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/1.326, allocations: 191.7 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004924/1.326, allocations: 307.8 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/1.326, allocations: 1.062 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001064/1.327, allocations: 0.5179 MB / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/1.327, allocations: 93.75 kB / 1.098 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.327, allocations: 2.656 kB / 1.098 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/1.327, allocations: 2.828 kB / 1.098 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/1.328, allocations: 27.78 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/1.328, allocations: 3.281 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000517/1.328, allocations: 53.89 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/1.328, allocations: 61.94 kB / 1.099 GB, free: 15.31 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.0003344/1.329, allocations: 222.4 kB / 1.099 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.338e-05/1.329, allocations: 38.09 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.515e-05/1.329, allocations: 42.12 kB / 1.099 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/1.329, allocations: 2.5 kB / 1.099 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/1.329, allocations: 0.6562 kB / 1.099 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/1.329, allocations: 0.6094 kB / 1.099 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002375/1.331, allocations: 0.7908 MB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/1.331, allocations: 4.781 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.173e-05/1.331, allocations: 4.938 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/1.331, allocations: 0.6875 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/1.331, allocations: 18.58 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/1.331, allocations: 9.031 kB / 1.1 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.331, allocations: 1.609 kB / 1.1 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/1.333, allocations: 489.1 kB / 1.1 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/1.334, allocations: 241.2 kB / 1.1 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.886e-05/1.334, allocations: 20.42 kB / 1.1 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/1.334, allocations: 36.91 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/1.334, allocations: 7.594 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/1.334, allocations: 60.8 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005458/1.335, allocations: 318.9 kB / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.4e-07/1.335, allocations: 0 / 1.101 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006285/1.336, allocations: 71.8 kB / 1.101 GB, free: 14.11 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.0002308/1.336, allocations: 131.4 kB / 1.101 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001481/1.337, allocations: 475.8 kB / 1.101 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/1.337, allocations: 5.938 kB / 1.101 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007217/1.338, allocations: 121.8 kB / 1.102 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/1.338, allocations: 37.64 kB / 1.102 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/1.34, allocations: 0.6029 MB / 1.102 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/1.341, allocations: 0.7868 MB / 1.103 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.659e-05/1.341, allocations: 12.84 kB / 1.103 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.018e-05/1.341, allocations: 20.41 kB / 1.103 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of SimCode: time 6.62e-07/1.341, allocations: 0 / 1.103 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of Templates: time 0.01302/1.354, allocations: 5.425 MB / 1.108 GB, free: 11.77 MB / 0.8731 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches