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.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.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.001708/0.001709, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.495/1.495, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.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.848/2.848, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002176/0.002176, allocations: 67.89 kB / 0.8693 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7666/0.7688, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003711/0.7726, allocations: 1.743 MB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.7741, allocations: 0.6246 MB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.7743, allocations: 4 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.7744, allocations: 11.86 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.7746, allocations: 39.78 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.7757, allocations: 351.3 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001052/0.7768, allocations: 0.636 MB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.7769, allocations: 29.09 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005986/0.7775, allocations: 311.6 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004097/0.7779, allocations: 155.3 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.7781, allocations: 40 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.7782, allocations: 40 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.7784, allocations: 123.7 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002941/0.7787, allocations: 219 kB / 1.022 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007228/0.7794, allocations: 0.6017 MB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.7794, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.727e-06/0.7795, allocations: 7.984 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.473e-05/0.7795, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 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.001675/0.7812, allocations: 0.8937 MB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.7812, allocations: 11.98 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.7814, allocations: 64.36 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006748/0.7821, allocations: 334.1 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.471e-05/0.7822, allocations: 20.55 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.525e-05/0.7823, allocations: 28.38 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.7834, allocations: 237.9 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.7834, allocations: 3.938 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.7835, allocations: 7.984 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.7835, allocations: 0 / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008193/0.7843, allocations: 113.5 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.7858, allocations: 0.6836 MB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.787, allocations: 178.5 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008024/0.7878, allocations: 120.8 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.7878, allocations: 0 / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.7889, allocations: 231.1 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.7889, allocations: 0 / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.00276/0.7917, allocations: 0.4947 MB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.7917, allocations: 63.39 kB / 1.025 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.7923, allocations: 441.8 kB / 1.026 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.7924, allocations: 41.69 kB / 1.026 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.7926, allocations: 105.3 kB / 1.026 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.866e-05/0.7927, allocations: 35.55 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/0.7929, allocations: 133.3 kB / 1.026 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.7931, allocations: 334.8 kB / 1.027 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/0.7934, allocations: 139.9 kB / 1.027 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.7938, allocations: 197.9 kB / 1.027 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/0.7943, allocations: 306.5 kB / 1.027 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.7943, allocations: 0 / 1.027 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001018/0.7953, allocations: 0.5203 MB / 1.028 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.7955, allocations: 95.41 kB / 1.028 GB, free: 7.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.7955, allocations: 11.98 kB / 1.028 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.7955, allocations: 3.938 kB / 1.028 GB, free: 7.414 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.7957, allocations: 23.98 kB / 1.028 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.7957, allocations: 4 kB / 1.028 GB, free: 7.387 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005387/0.7963, allocations: 55.8 kB / 1.028 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.7964, allocations: 75.83 kB / 1.028 GB, free: 7.258 MB / 0.7794 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.0003249/0.7967, allocations: 218.1 kB / 1.028 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.538e-05/0.7968, allocations: 35.53 kB / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.263e-05/0.7969, allocations: 43.78 kB / 1.028 GB, free: 6.953 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.7969, allocations: 4 kB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.7969, allocations: 0 / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.7969, allocations: 0 / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002417/0.7993, allocations: 0.7911 MB / 1.029 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.7994, allocations: 0 / 1.029 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.093e-05/0.7994, allocations: 4 kB / 1.029 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.7994, allocations: 3.938 kB / 1.029 GB, free: 6.094 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/0.7995, allocations: 31.91 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.7995, allocations: 3.938 kB / 1.029 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.7995, allocations: 4 kB / 1.029 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.8013, allocations: 477.2 kB / 1.029 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003479/0.8017, allocations: 240.4 kB / 1.03 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.424e-05/0.8018, allocations: 23.92 kB / 1.03 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.8023, allocations: 27.97 kB / 1.03 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.8023, allocations: 7.984 kB / 1.03 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-05/0.8024, allocations: 63.97 kB / 1.03 GB, free: 5.199 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003927/0.8028, allocations: 315.1 kB / 1.03 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8028, allocations: 0 / 1.03 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000439/0.8033, allocations: 75.98 kB / 1.03 GB, free: 4.824 MB / 0.7794 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.0002336/0.8035, allocations: 128.2 kB / 1.03 GB, free: 4.691 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001536/0.8051, allocations: 478.8 kB / 1.031 GB, free: 4.199 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.8051, allocations: 4.062 kB / 1.031 GB, free: 4.195 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007969/0.8059, allocations: 123.8 kB / 1.031 GB, free: 4.074 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.8063, allocations: 38.88 kB / 1.031 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.8081, allocations: 0.5983 MB / 1.032 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.8086, allocations: 0.7941 MB / 1.032 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.801e-05/0.8087, allocations: 13.42 kB / 1.032 GB, free: 2.574 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.8088, allocations: 15.44 kB / 1.032 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of SimCode: time 5.71e-07/0.8088, allocations: 0 / 1.032 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of Templates: time 0.01252/0.8213, allocations: 5.462 MB / 1.038 GB, free: 13.01 MB / 0.795 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=400 -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/jenkins/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