Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001658/0.001658, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.577/2.577, allocations: 437.1 MB / 0.7112 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 70.27 kB / 0.8707 GB, free: 1.434 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2873, allocations: 151.6 MB / 1.019 GB, free: 9.828 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.00294/0.2903, allocations: 1.738 MB / 1.021 GB, free: 8.074 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.2916, allocations: 0.6343 MB / 1.021 GB, free: 7.441 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.776e-05/0.2917, allocations: 4 kB / 1.021 GB, free: 7.438 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.2918, allocations: 7.875 kB / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.292, allocations: 35.78 kB / 1.021 GB, free: 7.395 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007989/0.2928, allocations: 356.4 kB / 1.022 GB, free: 7.051 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000584/0.2934, allocations: 0.6398 MB / 1.022 GB, free: 6.41 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.2935, allocations: 29.09 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003569/0.2939, allocations: 311.6 kB / 1.022 GB, free: 6.074 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.2941, allocations: 167.2 kB / 1.023 GB, free: 5.91 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.975e-05/0.2942, allocations: 44 kB / 1.023 GB, free: 5.867 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.63e-05/0.2943, allocations: 40 kB / 1.023 GB, free: 5.828 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.2944, allocations: 127.6 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001977/0.2946, allocations: 211 kB / 1.023 GB, free: 5.496 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005298/0.2952, allocations: 0.6036 MB / 1.024 GB, free: 4.891 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2952, allocations: 0 / 1.024 GB, free: 4.891 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.373e-06/0.2952, allocations: 0 / 1.024 GB, free: 4.891 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.2952, allocations: 0 / 1.024 GB, free: 4.891 MB / 0.795 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.001234/0.2965, allocations: 0.9053 MB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.2965, allocations: 20.88 kB / 1.025 GB, free: 3.875 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.2966, allocations: 52.47 kB / 1.025 GB, free: 3.824 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004451/0.2971, allocations: 334.1 kB / 1.025 GB, free: 3.457 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.294e-05/0.2971, allocations: 20.36 kB / 1.025 GB, free: 3.438 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-05/0.2972, allocations: 32.36 kB / 1.025 GB, free: 3.406 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009362/0.2982, allocations: 227.9 kB / 1.025 GB, free: 3.18 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.2982, allocations: 192 / 1.025 GB, free: 3.18 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.2982, allocations: 15.94 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.2982, allocations: 0 / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000737/0.299, allocations: 111.9 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.3003, allocations: 0.6797 MB / 1.026 GB, free: 2.324 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009858/0.3013, allocations: 178.5 kB / 1.026 GB, free: 2.141 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007032/0.302, allocations: 116.8 kB / 1.026 GB, free: 2.023 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.302, allocations: 4 kB / 1.026 GB, free: 2.02 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000895/0.3029, allocations: 227.1 kB / 1.026 GB, free: 1.785 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 2.314e-06/0.303, allocations: 0 / 1.026 GB, free: 1.785 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002439/0.3054, allocations: 0.4891 MB / 1.027 GB, free: 1.289 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.3055, allocations: 59.41 kB / 1.027 GB, free: 1.219 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.3059, allocations: 445.8 kB / 1.027 GB, free: 0.7812 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.929e-05/0.306, allocations: 45.62 kB / 1.027 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.729e-05/0.3061, allocations: 113.3 kB / 1.028 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.3061, allocations: 35.55 kB / 1.028 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/0.3063, allocations: 141.3 kB / 1.028 GB, free: 444 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3064, allocations: 322.8 kB / 1.028 GB, free: 112 kB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.3067, allocations: 143.9 kB / 1.028 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003093/0.307, allocations: 191.8 kB / 1.028 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.3074, allocations: 303 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3075, allocations: 0 / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008473/0.3083, allocations: 0.5162 MB / 1.029 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.401e-05/0.3084, allocations: 99.38 kB / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3084, allocations: 0 / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.3084, allocations: 4 kB / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.3086, allocations: 24.09 kB / 1.029 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3086, allocations: 8 kB / 1.029 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004743/0.3091, allocations: 63.73 kB / 1.029 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.535e-05/0.3092, allocations: 55.98 kB / 1.029 GB, free: 14.64 MB / 0.8106 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.0002326/0.3095, allocations: 220.3 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.995e-05/0.3095, allocations: 43.52 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-05/0.3096, allocations: 39.8 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3096, allocations: 4 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3096, allocations: 0 / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3096, allocations: 0 / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.3118, allocations: 0.7896 MB / 1.03 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3118, allocations: 0 / 1.03 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.755e-05/0.3119, allocations: 11.92 kB / 1.03 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3119, allocations: 0 / 1.03 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.049e-05/0.3119, allocations: 19.98 kB / 1.03 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.3119, allocations: 11.92 kB / 1.03 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3119, allocations: 0 / 1.03 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.3136, allocations: 479.2 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003441/0.3139, allocations: 244.5 kB / 1.031 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.02e-05/0.314, allocations: 16 kB / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004738/0.3145, allocations: 35.89 kB / 1.031 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.3145, allocations: 8 kB / 1.031 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.066e-05/0.3146, allocations: 59.97 kB / 1.031 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003387/0.315, allocations: 319.1 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.343e-06/0.315, allocations: 0 / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000399/0.3154, allocations: 75.86 kB / 1.032 GB, free: 12.19 MB / 0.8106 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.0001848/0.3156, allocations: 127.5 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001281/0.3169, allocations: 484.5 kB / 1.032 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3169, allocations: 0 / 1.032 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000741/0.3176, allocations: 128.2 kB / 1.032 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.318, allocations: 37.53 kB / 1.032 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.3196, allocations: 0.5907 MB / 1.033 GB, free: 10.78 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.3199, allocations: 0.7864 MB / 1.034 GB, free: 9.965 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.768e-05/0.32, allocations: 17.42 kB / 1.034 GB, free: 9.949 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.965e-05/0.32, allocations: 15.44 kB / 1.034 GB, free: 9.934 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.32, allocations: 0 / 1.034 GB, free: 9.934 MB / 0.8106 GB Notification: Performance of Templates: time 0.008971/0.329, allocations: 5.417 MB / 1.039 GB, free: 4.43 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches