Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8878/0.8878, allocations: 177.1 MB / 203.5 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.732/1.732, allocations: 377.8 MB / 0.6228 GB, free: 8.672 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.384e-06/2.384e-06, allocations: 0 / 0.9822 GB, free: 2.039 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.47e-05, allocations: 5.234 kB / 0.9822 GB, free: 2.035 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.002013/0.002037, allocations: 1.735 MB / 0.9839 GB, free: 296 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.003102, allocations: 0.605 MB / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.615e-05/0.003168, allocations: 3.938 kB / 0.9845 GB, free: 15.68 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.003271, allocations: 11.86 kB / 0.9845 GB, free: 15.66 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001249/0.003396, allocations: 31.78 kB / 0.9846 GB, free: 15.63 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.003999, allocations: 381.8 kB / 0.9849 GB, free: 15.26 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0004016/0.004401, allocations: 0.597 MB / 0.9855 GB, free: 14.66 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.64e-05/0.004497, allocations: 25.3 kB / 0.9855 GB, free: 14.64 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003474/0.004845, allocations: 423.5 kB / 0.9859 GB, free: 14.23 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.005045, allocations: 143.6 kB / 0.9861 GB, free: 14.09 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.005096, allocations: 40 kB / 0.9861 GB, free: 14.05 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.197e-05/0.005148, allocations: 44 kB / 0.9862 GB, free: 14 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.005249, allocations: 131.6 kB / 0.9863 GB, free: 13.88 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.005354, allocations: 143.7 kB / 0.9864 GB, free: 13.73 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004399/0.005794, allocations: 0.639 MB / 0.987 GB, free: 13.09 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.005797, allocations: 0 / 0.987 GB, free: 13.09 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.282e-06/0.005798, allocations: 3.938 kB / 0.9871 GB, free: 13.09 MB / 0.948 GB Notification: Performance of Transformations before backend: time 6.852e-06/0.005805, allocations: 0 / 0.9871 GB, free: 13.09 MB / 0.948 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.0009087/0.006714, allocations: 0.8378 MB / 0.9879 GB, free: 12.18 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.006752, allocations: 12.03 kB / 0.9879 GB, free: 12.17 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.428e-05/0.006836, allocations: 56.66 kB / 0.9879 GB, free: 12.11 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.007135, allocations: 283.9 kB / 0.9882 GB, free: 11.81 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.007168, allocations: 24.31 kB / 0.9882 GB, free: 11.79 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.007219, allocations: 32.36 kB / 0.9883 GB, free: 11.76 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005477/0.007767, allocations: 248.7 kB / 0.9885 GB, free: 11.51 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.007775, allocations: 8.172 kB / 0.9885 GB, free: 11.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.007794, allocations: 384 / 0.9885 GB, free: 11.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.0078, allocations: 4.375 kB / 0.9885 GB, free: 11.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003824/0.008183, allocations: 139.8 kB / 0.9886 GB, free: 11.36 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007208/0.008903, allocations: 0.5352 MB / 0.9892 GB, free: 10.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005151/0.009419, allocations: 194.4 kB / 0.9894 GB, free: 10.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003515/0.00977, allocations: 120.7 kB / 0.9895 GB, free: 10.48 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.009789, allocations: 4 kB / 0.9895 GB, free: 10.47 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004722/0.01026, allocations: 251.1 kB / 0.9897 GB, free: 10.21 MB / 0.948 GB Notification: Performance of pre-optimization done (n=16): time 1.172e-06/0.01026, allocations: 0 / 0.9897 GB, free: 10.21 MB / 0.948 GB Notification: Performance of matching and sorting (n=16): time 0.001285/0.01155, allocations: 0.5353 MB / 0.9902 GB, free: 9.676 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.01159, allocations: 59.41 kB / 0.9903 GB, free: 9.605 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.01189, allocations: 445.9 kB / 0.9907 GB, free: 9.16 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.01193, allocations: 41.69 kB / 0.9908 GB, free: 9.113 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.514e-05/0.01199, allocations: 105.4 kB / 0.9909 GB, free: 9.004 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.01202, allocations: 39.75 kB / 0.9909 GB, free: 8.965 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.01215, allocations: 133.5 kB / 0.991 GB, free: 8.828 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.01223, allocations: 322.8 kB / 0.9913 GB, free: 8.504 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.01245, allocations: 223.2 kB / 0.9915 GB, free: 8.273 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.01268, allocations: 277.2 kB / 0.9918 GB, free: 7.969 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.01293, allocations: 297.2 kB / 0.9921 GB, free: 7.645 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01294, allocations: 0 / 0.9921 GB, free: 7.645 MB / 0.948 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005658/0.0135, allocations: 0.6034 MB / 0.9927 GB, free: 7.012 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.673e-05/0.01356, allocations: 95.39 kB / 0.9928 GB, free: 6.906 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.01357, allocations: 4 kB / 0.9928 GB, free: 6.902 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.01358, allocations: 4 kB / 0.9928 GB, free: 6.898 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.534e-05/0.01368, allocations: 19.92 kB / 0.9928 GB, free: 6.879 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.01368, allocations: 4 kB / 0.9928 GB, free: 6.875 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.01393, allocations: 63.86 kB / 0.9929 GB, free: 6.812 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-05/0.01399, allocations: 63.97 kB / 0.9929 GB, free: 6.75 MB / 0.948 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.000165/0.01415, allocations: 232.3 kB / 0.9931 GB, free: 6.512 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.508e-05/0.01419, allocations: 39.7 kB / 0.9932 GB, free: 6.473 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.461e-05/0.01423, allocations: 43.72 kB / 0.9932 GB, free: 6.43 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.01423, allocations: 3.938 kB / 0.9932 GB, free: 6.426 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.01424, allocations: 0 / 0.9932 GB, free: 6.426 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.01424, allocations: 0 / 0.9932 GB, free: 6.426 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.01535, allocations: 0.7518 MB / 0.994 GB, free: 5.633 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.01535, allocations: 0 / 0.994 GB, free: 5.633 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.989e-05/0.01537, allocations: 4 kB / 0.994 GB, free: 5.629 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.01537, allocations: 3.938 kB / 0.994 GB, free: 5.625 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.0154, allocations: 23.97 kB / 0.994 GB, free: 5.602 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.0154, allocations: 0 / 0.994 GB, free: 5.602 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.0154, allocations: 4 kB / 0.994 GB, free: 5.598 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008676/0.01627, allocations: 0.5111 MB / 0.9945 GB, free: 5.07 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.01646, allocations: 177.5 kB / 0.9947 GB, free: 4.895 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.496e-05/0.0165, allocations: 16 kB / 0.9947 GB, free: 4.879 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.01672, allocations: 39.47 kB / 0.9947 GB, free: 4.844 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.567e-05/0.01675, allocations: 11.98 kB / 0.9947 GB, free: 4.832 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.01679, allocations: 63.97 kB / 0.9948 GB, free: 4.77 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001969/0.01699, allocations: 315.1 kB / 0.9951 GB, free: 4.469 MB / 0.948 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01699, allocations: 0 / 0.9951 GB, free: 4.469 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002215/0.01721, allocations: 75.94 kB / 0.9952 GB, free: 4.395 MB / 0.948 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.0001071/0.01732, allocations: 124.4 kB / 0.9953 GB, free: 4.266 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0007413/0.01806, allocations: 0.5243 MB / 0.9958 GB, free: 3.707 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01806, allocations: 0 / 0.9958 GB, free: 3.707 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003616/0.01842, allocations: 135.8 kB / 0.9959 GB, free: 3.574 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.01868, allocations: 41.56 kB / 0.996 GB, free: 3.531 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008745/0.01955, allocations: 0.6576 MB / 0.9966 GB, free: 2.836 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001179/0.01967, allocations: 178.8 kB / 0.9968 GB, free: 2.645 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.01971, allocations: 20.48 kB / 0.9968 GB, free: 2.625 MB / 0.948 GB Notification: Performance of SimCode: time 5.71e-07/0.01971, allocations: 0 / 0.9968 GB, free: 2.625 MB / 0.948 GB Notification: Performance of Templates: time 0.003657/0.02336, allocations: 4.118 MB / 1.001 GB, free: 14.46 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.57837675884366]