Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001115/0.001115, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.405/1.405, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.535/2.535, allocations: 437 MB / 0.711 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 68.58 kB / 0.8699 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3132, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.00348/0.3168, allocations: 1.739 MB / 1.02 GB, free: 8.891 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3183, allocations: 0.6183 MB / 1.02 GB, free: 8.273 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.3184, allocations: 4 kB / 1.02 GB, free: 8.27 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.3186, allocations: 11.86 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001486/0.3187, allocations: 35.78 kB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009922/0.3197, allocations: 367.2 kB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0007472/0.3205, allocations: 0.6321 MB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3206, allocations: 33.02 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005218/0.3212, allocations: 311.6 kB / 1.022 GB, free: 6.895 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.3215, allocations: 151.5 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.3217, allocations: 40 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.3218, allocations: 40 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.3219, allocations: 127.6 kB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.3222, allocations: 211 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006334/0.3228, allocations: 0.6001 MB / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.3228, allocations: 0 / 1.023 GB, free: 5.734 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3229, allocations: 7.875 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.3229, allocations: 0 / 1.023 GB, free: 5.727 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.001467/0.3243, allocations: 0.9131 MB / 1.024 GB, free: 4.723 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.3244, allocations: 16.88 kB / 1.024 GB, free: 4.707 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.3246, allocations: 52.41 kB / 1.024 GB, free: 4.656 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.325, allocations: 326.2 kB / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.829e-05/0.3251, allocations: 24.55 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.883e-05/0.3252, allocations: 28.36 kB / 1.024 GB, free: 4.246 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.3262, allocations: 241.9 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3263, allocations: 3.938 kB / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.3263, allocations: 4 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.3263, allocations: 0 / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008523/0.3272, allocations: 115.9 kB / 1.024 GB, free: 3.883 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.3285, allocations: 0.6836 MB / 1.025 GB, free: 3.148 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3297, allocations: 186.5 kB / 1.025 GB, free: 2.957 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007896/0.3305, allocations: 112.8 kB / 1.025 GB, free: 2.844 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.3305, allocations: 0 / 1.025 GB, free: 2.844 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009919/0.3315, allocations: 231.4 kB / 1.026 GB, free: 2.605 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.883e-06/0.3315, allocations: 4 kB / 1.026 GB, free: 2.602 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.002816/0.3343, allocations: 0.4913 MB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.3344, allocations: 59.39 kB / 1.026 GB, free: 2.035 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.335, allocations: 445.8 kB / 1.027 GB, free: 1.598 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.03e-05/0.3351, allocations: 37.7 kB / 1.027 GB, free: 1.555 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3352, allocations: 105.3 kB / 1.027 GB, free: 1.445 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.74e-05/0.3352, allocations: 35.48 kB / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.3355, allocations: 149.2 kB / 1.027 GB, free: 1.258 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3356, allocations: 326.8 kB / 1.027 GB, free: 0.9297 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003155/0.3359, allocations: 147.9 kB / 1.027 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.3363, allocations: 186.9 kB / 1.028 GB, free: 0.582 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004356/0.3367, allocations: 303.5 kB / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3367, allocations: 0 / 1.028 GB, free: 260 kB / 0.795 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009183/0.3377, allocations: 0.5221 MB / 1.028 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.682e-05/0.3377, allocations: 95.38 kB / 1.028 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.3378, allocations: 4 kB / 1.028 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3378, allocations: 4 kB / 1.028 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.338, allocations: 27.91 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.073e-05/0.338, allocations: 4 kB / 1.028 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/0.3386, allocations: 59.98 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.694e-05/0.3387, allocations: 67.92 kB / 1.029 GB, free: 15.45 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.0002489/0.3389, allocations: 216.3 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.477e-05/0.339, allocations: 35.53 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.547e-05/0.3391, allocations: 39.73 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.3391, allocations: 4 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3391, allocations: 0 / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3391, allocations: 3.984 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.3414, allocations: 0.7948 MB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3414, allocations: 0 / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.021e-05/0.3415, allocations: 11.98 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3415, allocations: 4 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.3415, allocations: 19.92 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.3415, allocations: 7.984 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3415, allocations: 3.938 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.3435, allocations: 474.8 kB / 1.03 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/0.3439, allocations: 244.5 kB / 1.03 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.344, allocations: 19.94 kB / 1.03 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.3445, allocations: 31.94 kB / 1.03 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.399e-05/0.3446, allocations: 8 kB / 1.03 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.902e-05/0.3447, allocations: 59.97 kB / 1.03 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003231/0.345, allocations: 323.1 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.345, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003843/0.3454, allocations: 67.98 kB / 1.031 GB, free: 13.01 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.0001952/0.3456, allocations: 127.4 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001412/0.347, allocations: 492.5 kB / 1.031 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.347, allocations: 0 / 1.031 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008479/0.3479, allocations: 115.9 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.3483, allocations: 42.62 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.3501, allocations: 0.6549 MB / 1.032 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.3505, allocations: 0.7825 MB / 1.033 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.028e-05/0.3506, allocations: 15.44 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3506, allocations: 0 / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of Templates: time 0.008569/0.3591, allocations: 4.099 MB / 1.037 GB, free: 6.566 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches