Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.401/1.401, allocations: 251.9 MB / 266.9 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 184 kB / 326.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.642/1.642, allocations: 205.4 MB / 0.5775 GB, free: 20.24 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009693/0.0009695, allocations: 86.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 12.28 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2286, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1734/0.402, allocations: 133.9 MB / 1.031 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.4023, allocations: 75.95 kB / 1.031 GB, free: 9.746 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01482/0.4172, allocations: 5.207 MB / 1.036 GB, free: 4.531 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4172, allocations: 0 / 1.036 GB, free: 4.531 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.832e-05/0.4172, allocations: 8 kB / 1.036 GB, free: 4.523 MB / 0.6823 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.0009386/0.4182, allocations: 0.6496 MB / 1.037 GB, free: 3.801 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.4182, allocations: 8.031 kB / 1.037 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.723e-05/0.4183, allocations: 35.62 kB / 1.037 GB, free: 3.758 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003803/0.4187, allocations: 275.1 kB / 1.037 GB, free: 3.449 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.4188, allocations: 19.92 kB / 1.037 GB, free: 3.43 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.4188, allocations: 23.98 kB / 1.037 GB, free: 3.406 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.4192, allocations: 161.5 kB / 1.037 GB, free: 3.242 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.4192, allocations: 0 / 1.037 GB, free: 3.242 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.4192, allocations: 3.953 kB / 1.037 GB, free: 3.238 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.4192, allocations: 4 kB / 1.037 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000141/0.4194, allocations: 63.97 kB / 1.037 GB, free: 3.172 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.4205, allocations: 0.5863 MB / 1.038 GB, free: 2.535 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.4208, allocations: 138.7 kB / 1.038 GB, free: 2.391 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.4208, allocations: 0 / 1.038 GB, free: 2.391 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003984/0.4212, allocations: 224.9 kB / 1.038 GB, free: 2.156 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.462e-06/0.4213, allocations: 4 kB / 1.038 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0005597/0.4218, allocations: 279.6 kB / 1.038 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.4219, allocations: 71.33 kB / 1.039 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.4221, allocations: 275.6 kB / 1.039 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.4222, allocations: 45.69 kB / 1.039 GB, free: 1.469 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.4223, allocations: 97.05 kB / 1.039 GB, free: 1.371 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.4223, allocations: 39.48 kB / 1.039 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.4224, allocations: 15.92 kB / 1.039 GB, free: 1.316 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4225, allocations: 334.8 kB / 1.039 GB, free: 0.9805 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.4228, allocations: 116.2 kB / 1.039 GB, free: 0.8633 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.4231, allocations: 170.4 kB / 1.04 GB, free: 0.6758 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.4233, allocations: 171.3 kB / 1.04 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.4234, allocations: 0 / 1.04 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007634/0.4241, allocations: 459 kB / 1.04 GB, free: 32 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.629e-05/0.4242, allocations: 75.47 kB / 1.04 GB, free: 15.94 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.4242, allocations: 0 / 1.04 GB, free: 15.94 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.4243, allocations: 7.984 kB / 1.04 GB, free: 15.93 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.4244, allocations: 28.11 kB / 1.04 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.4244, allocations: 4 kB / 1.04 GB, free: 15.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.4248, allocations: 47.88 kB / 1.04 GB, free: 15.86 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-05/0.4249, allocations: 51.98 kB / 1.04 GB, free: 15.8 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition3,calTim.calTim.hourSampleTrigger,$whenCondition4,calTim.calTim.daySampleTrigger,$whenCondition2,$whenCondition1,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001991/0.4251, allocations: 198.7 kB / 1.041 GB, free: 15.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.84e-05/0.4252, allocations: 27.62 kB / 1.041 GB, free: 15.57 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.645e-05/0.4252, allocations: 34.36 kB / 1.041 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.4252, allocations: 0 / 1.041 GB, free: 15.54 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4252, allocations: 3.938 kB / 1.041 GB, free: 15.53 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.689e-06/0.4253, allocations: 4 kB / 1.041 GB, free: 15.53 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007227/0.426, allocations: 0.5997 MB / 1.041 GB, free: 14.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.426, allocations: 0 / 1.041 GB, free: 14.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.902e-05/0.426, allocations: 4 kB / 1.041 GB, free: 14.87 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.4261, allocations: 8 kB / 1.041 GB, free: 14.86 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.4261, allocations: 7.984 kB / 1.041 GB, free: 14.86 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.4261, allocations: 3.984 kB / 1.041 GB, free: 14.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4261, allocations: 0 / 1.041 GB, free: 14.85 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004009/0.4265, allocations: 336.9 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.4267, allocations: 180.7 kB / 1.042 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.35e-05/0.4268, allocations: 15.98 kB / 1.042 GB, free: 14.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.427, allocations: 12 kB / 1.042 GB, free: 14.29 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.427, allocations: 19.97 kB / 1.042 GB, free: 14.27 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.4271, allocations: 27.98 kB / 1.042 GB, free: 14.24 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001931/0.4273, allocations: 227 kB / 1.042 GB, free: 14.02 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4273, allocations: 0 / 1.042 GB, free: 14.02 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003151/0.4276, allocations: 67.78 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$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.yearIndex,calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.firstHourSampling,calTim.calTim.hour,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001838/0.4278, allocations: 133.2 kB / 1.042 GB, free: 13.81 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005857/0.4284, allocations: 378.8 kB / 1.043 GB, free: 13.42 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4284, allocations: 4 kB / 1.043 GB, free: 13.41 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.4285, allocations: 72.84 kB / 1.043 GB, free: 13.34 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002624/0.4288, allocations: 39.59 kB / 1.043 GB, free: 13.31 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006939/0.4295, allocations: 488.5 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.4298, allocations: 0.7634 MB / 1.044 GB, free: 12.02 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001375/0.43, allocations: 33.42 kB / 1.044 GB, free: 11.98 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.4301, allocations: 43.42 kB / 1.044 GB, free: 11.95 MB / 0.698 GB Notification: Performance of SimCode: time 2.1e-07/0.4301, allocations: 0 / 1.044 GB, free: 11.95 MB / 0.698 GB Notification: Performance of Templates: time 0.007577/0.4377, allocations: 4.742 MB / 1.049 GB, free: 7.238 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsPlus.csv","../files/Buildings_maint.7.0.x_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.calTim.day,calTim.calTim.daySampleStart,calTim.calTim.hour,calTim.calTim.hourSampleStart,calTim.calTim.month,calTim.calTim.offset,calTim.calTim.outputUnixTimeStamp,calTim.calTim.timOff,calTim.calTim.timZon,calTim.calTim.weekDay,calTim.calTim.year,calTim.calTim.yearRef,calTim.calTim.zerTim,calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.offset,calTim.weekDay,calTim.year,calTim.yearRef,calTim.zerTim,time