Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 110.5 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 186.8 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 249.4 MB, free: 3.129 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.942/2.942, allocations: 496.2 MB / 0.7819 GB, free: 12.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002989/0.002989, allocations: 71.88 kB / 1.136 GB, free: 12.54 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.109/1.112, allocations: 173.6 MB / 1.305 GB, free: 33.41 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002415/1.115, allocations: 1.543 MB / 1.307 GB, free: 32.34 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00109/1.116, allocations: 0.541 MB / 1.307 GB, free: 31.98 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.953e-05/1.116, allocations: 0 / 1.307 GB, free: 31.98 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/1.116, allocations: 7.875 kB / 1.307 GB, free: 31.98 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/1.116, allocations: 31.7 kB / 1.307 GB, free: 31.96 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006586/1.117, allocations: 311.1 kB / 1.308 GB, free: 31.81 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003647/1.117, allocations: 484.9 kB / 1.308 GB, free: 31.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.877e-05/1.117, allocations: 2.969 kB / 1.308 GB, free: 31.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/1.118, allocations: 279.3 kB / 1.308 GB, free: 31.54 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/1.118, allocations: 141.2 kB / 1.309 GB, free: 31.5 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.772e-05/1.118, allocations: 30.88 kB / 1.309 GB, free: 31.49 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.583e-05/1.118, allocations: 27.44 kB / 1.309 GB, free: 31.49 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001046/1.118, allocations: 119.3 kB / 1.309 GB, free: 31.45 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001363/1.118, allocations: 187.1 kB / 1.309 GB, free: 31.35 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003314/1.118, allocations: 420.1 kB / 1.309 GB, free: 31.2 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/1.118, allocations: 3.938 kB / 1.309 GB, free: 31.19 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.362e-06/1.118, allocations: 0 / 1.309 GB, free: 31.19 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.402e-05/1.118, allocations: 0 / 1.309 GB, free: 31.19 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001088/1.12, allocations: 0.8816 MB / 1.31 GB, free: 30.43 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/1.12, allocations: 14.89 kB / 1.31 GB, free: 30.43 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/1.12, allocations: 52.53 kB / 1.31 GB, free: 30.41 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/1.12, allocations: 314.2 kB / 1.311 GB, free: 30.14 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/1.12, allocations: 16.17 kB / 1.311 GB, free: 30.13 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.82e-05/1.12, allocations: 26.81 kB / 1.311 GB, free: 30.13 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008689/1.121, allocations: 208.6 kB / 1.311 GB, free: 30.07 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/1.121, allocations: 4.188 kB / 1.311 GB, free: 30.07 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.939e-05/1.121, allocations: 14.28 kB / 1.311 GB, free: 30.06 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/1.121, allocations: 0 / 1.311 GB, free: 30.06 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006862/1.122, allocations: 100.7 kB / 1.311 GB, free: 30.05 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003315/1.122, allocations: 385.9 kB / 1.311 GB, free: 29.79 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009231/1.123, allocations: 168 kB / 1.311 GB, free: 29.73 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006712/1.124, allocations: 107.6 kB / 1.312 GB, free: 29.71 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/1.124, allocations: 0 / 1.312 GB, free: 29.71 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007964/1.124, allocations: 226.1 kB / 1.312 GB, free: 29.62 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/1.124, allocations: 3.031 kB / 1.312 GB, free: 29.62 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.002263/1.127, allocations: 485.5 kB / 1.312 GB, free: 29.51 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/1.127, allocations: 65.2 kB / 1.312 GB, free: 29.44 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/1.127, allocations: 412.4 kB / 1.313 GB, free: 29.24 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.865e-05/1.127, allocations: 53.92 kB / 1.313 GB, free: 29.19 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.43e-05/1.127, allocations: 90.44 kB / 1.313 GB, free: 29.11 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.539e-05/1.127, allocations: 36.66 kB / 1.313 GB, free: 29.08 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/1.127, allocations: 128.9 kB / 1.313 GB, free: 29.03 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.749e-05/1.127, allocations: 321 kB / 1.313 GB, free: 28.71 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/1.128, allocations: 114.9 kB / 1.313 GB, free: 28.68 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002331/1.128, allocations: 177.5 kB / 1.314 GB, free: 28.58 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/1.128, allocations: 270.7 kB / 1.314 GB, free: 28.39 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/1.128, allocations: 4 kB / 1.314 GB, free: 28.38 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006814/1.129, allocations: 0.49 MB / 1.314 GB, free: 28.16 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 6.278e-05/1.129, allocations: 89.14 kB / 1.314 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/1.129, allocations: 2.75 kB / 1.314 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/1.129, allocations: 2.594 kB / 1.314 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/1.129, allocations: 24.09 kB / 1.314 GB, free: 28.08 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/1.129, allocations: 7.062 kB / 1.314 GB, free: 28.08 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/1.13, allocations: 69.19 kB / 1.315 GB, free: 28.06 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/1.13, allocations: 58.19 kB / 1.315 GB, free: 28.05 MB / 1.061 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 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.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.0001697/1.13, allocations: 198 kB / 1.315 GB, free: 27.91 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/1.13, allocations: 45.14 kB / 1.315 GB, free: 27.89 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.604e-05/1.13, allocations: 36.75 kB / 1.315 GB, free: 27.88 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/1.13, allocations: 2.781 kB / 1.315 GB, free: 27.88 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/1.13, allocations: 4 kB / 1.315 GB, free: 27.87 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/1.13, allocations: 0 / 1.315 GB, free: 27.87 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/1.132, allocations: 0.7407 MB / 1.316 GB, free: 27.47 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.132, allocations: 0 / 1.316 GB, free: 27.47 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.513e-05/1.132, allocations: 16.28 kB / 1.316 GB, free: 27.46 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/1.132, allocations: 0 / 1.316 GB, free: 27.46 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/1.132, allocations: 23.05 kB / 1.316 GB, free: 27.46 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.132, allocations: 0 / 1.316 GB, free: 27.46 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.132, allocations: 2.531 kB / 1.316 GB, free: 27.46 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001501/1.133, allocations: 479.1 kB / 1.316 GB, free: 27.25 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/1.134, allocations: 199.6 kB / 1.316 GB, free: 27.12 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.093e-05/1.134, allocations: 9.25 kB / 1.316 GB, free: 27.11 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004333/1.134, allocations: 35.17 kB / 1.316 GB, free: 27.11 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.806e-05/1.134, allocations: 5.812 kB / 1.316 GB, free: 27.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.381e-05/1.134, allocations: 64.53 kB / 1.316 GB, free: 27.1 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002171/1.134, allocations: 293.9 kB / 1.317 GB, free: 26.96 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.134, allocations: 2.625 kB / 1.317 GB, free: 26.96 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003776/1.135, allocations: 64.7 kB / 1.317 GB, free: 26.96 MB / 1.061 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 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.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.0001319/1.135, allocations: 121.2 kB / 1.317 GB, free: 26.85 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.00112/1.136, allocations: 409.8 kB / 1.317 GB, free: 26.65 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/1.136, allocations: 0 / 1.317 GB, free: 26.65 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0006773/1.137, allocations: 103.6 kB / 1.317 GB, free: 26.64 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/1.137, allocations: 34.56 kB / 1.317 GB, free: 26.62 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/1.138, allocations: 0.5633 MB / 1.318 GB, free: 26.32 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001755/1.139, allocations: 0.7737 MB / 1.319 GB, free: 25.61 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.143e-05/1.139, allocations: 13.33 kB / 1.319 GB, free: 25.6 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.863e-05/1.139, allocations: 22.72 kB / 1.319 GB, free: 25.59 MB / 1.061 GB Notification: Performance of SimCode: time 1.052e-06/1.139, allocations: 4 kB / 1.319 GB, free: 25.59 MB / 1.061 GB Notification: Performance of Templates: time 0.008476/1.147, allocations: 5.053 MB / 1.324 GB, free: 24.69 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.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: 10.235274272970855]