Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 113.1 kB / 16.41 MB, free: 6.492 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.001537/0.001537, allocations: 183 kB / 17.34 MB, free: 5.762 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.482/1.482, allocations: 222.9 MB / 241 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.336/2.336, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 67.89 kB / 0.9516 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8276/0.829, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus): time 0.002857/0.8319, allocations: 1.734 MB / 1.09 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.8332, allocations: 0.6288 MB / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.8333, allocations: 0 / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.8334, allocations: 15.95 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.8335, allocations: 30.44 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008514/0.8344, allocations: 362.4 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000682/0.8351, allocations: 0.629 MB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.8352, allocations: 30.28 kB / 1.092 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004819/0.8357, allocations: 319.7 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003192/0.836, allocations: 153.2 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.8362, allocations: 40.5 kB / 1.093 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.8363, allocations: 40.97 kB / 1.093 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.8364, allocations: 128.1 kB / 1.093 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.8367, allocations: 217.7 kB / 1.093 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006947/0.8374, allocations: 0.5965 MB / 1.093 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.8374, allocations: 0.9688 kB / 1.093 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8374, allocations: 0 / 1.093 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.8374, allocations: 4 kB / 1.093 GB, free: 2.809 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.001248/0.8386, allocations: 0.9004 MB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.8387, allocations: 10.14 kB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.8388, allocations: 56.86 kB / 1.094 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.8392, allocations: 336.9 kB / 1.095 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.136e-05/0.8393, allocations: 19.36 kB / 1.095 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.194e-05/0.8393, allocations: 30.97 kB / 1.095 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.8405, allocations: 236.9 kB / 1.095 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.8405, allocations: 192 / 1.095 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.8406, allocations: 9.531 kB / 1.095 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.8406, allocations: 6.312 kB / 1.095 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009022/0.8415, allocations: 113.1 kB / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.8429, allocations: 0.677 MB / 1.096 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.8441, allocations: 176.4 kB / 1.096 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008259/0.8449, allocations: 122.6 kB / 1.096 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.845, allocations: 2.312 kB / 1.096 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.8461, allocations: 241.8 kB / 1.096 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.8461, allocations: 0 / 1.096 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.002838/0.8489, allocations: 495.8 kB / 1.097 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.849, allocations: 57.52 kB / 1.097 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005529/0.8495, allocations: 444.9 kB / 1.097 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.8496, allocations: 44.42 kB / 1.097 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.32e-05/0.8497, allocations: 101.5 kB / 1.097 GB, free: 492 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.054e-05/0.8498, allocations: 40.69 kB / 1.097 GB, free: 460 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/0.85, allocations: 133 kB / 1.098 GB, free: 400 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.543e-05/0.8501, allocations: 330.4 kB / 1.098 GB, free: 68 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003166/0.8504, allocations: 138.7 kB / 1.098 GB, free: 20 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/0.8508, allocations: 192.3 kB / 1.098 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004442/0.8513, allocations: 307.7 kB / 1.098 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.8513, allocations: 0.875 kB / 1.098 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009669/0.8523, allocations: 0.516 MB / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.8524, allocations: 105.1 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.8524, allocations: 1.844 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.8524, allocations: 2.406 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.8526, allocations: 24.36 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.8526, allocations: 3.562 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.8532, allocations: 53.92 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.8533, allocations: 61.8 kB / 1.099 GB, free: 15.35 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.0002965/0.8536, allocations: 226.6 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-05/0.8537, allocations: 37.69 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.8538, allocations: 42.7 kB / 1.1 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.8538, allocations: 1.5 kB / 1.1 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.8538, allocations: 0.9688 kB / 1.1 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.8538, allocations: 1.266 kB / 1.1 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002516/0.8564, allocations: 0.7905 MB / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.8564, allocations: 0 / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.8564, allocations: 5.031 kB / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.8564, allocations: 1.578 kB / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.847e-05/0.8565, allocations: 23.36 kB / 1.1 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.8565, allocations: 7.938 kB / 1.1 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.8565, allocations: 1.797 kB / 1.1 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00197/0.8585, allocations: 473.1 kB / 1.101 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003462/0.8588, allocations: 254.9 kB / 1.101 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.847e-05/0.8589, allocations: 20.12 kB / 1.101 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005049/0.8594, allocations: 32.25 kB / 1.101 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/0.8595, allocations: 12.34 kB / 1.101 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.8596, allocations: 55.55 kB / 1.101 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005335/0.8602, allocations: 323.2 kB / 1.101 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8602, allocations: 0.625 kB / 1.101 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005481/0.8607, allocations: 66.67 kB / 1.102 GB, free: 14.15 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.0002555/0.861, allocations: 131.4 kB / 1.102 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001612/0.8626, allocations: 472.5 kB / 1.102 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.8626, allocations: 384 / 1.102 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008538/0.8635, allocations: 123.6 kB / 1.102 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.864, allocations: 42.55 kB / 1.102 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.8658, allocations: 0.6517 MB / 1.103 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.8662, allocations: 0.791 MB / 1.104 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.304e-05/0.8663, allocations: 16.31 kB / 1.104 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of SimCode: time 3.61e-07/0.8663, allocations: 1.156 kB / 1.104 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of Templates: time 0.009666/0.876, allocations: 4.079 MB / 1.108 GB, free: 12.1 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.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