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.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.002122/0.002122, allocations: 84.05 kB / 19.18 MB, free: 2.523 MB / 14.72 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.002387/0.002387, allocations: 168.2 kB / 22.46 MB, free: 5.359 MB / 14.72 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 1.587/1.587, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.898/2.898, allocations: 389 MB / 0.633 GB, free: 1.031 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.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 1.773e-06/1.773e-06, allocations: 0 / 1 GB, free: 6.289 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.955e-05/3.132e-05, allocations: 2.281 kB / 1 GB, free: 6.285 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002757/0.002788, allocations: 1.512 MB / 1.002 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.001314/0.004102, allocations: 0.5265 MB / 1.002 GB, free: 4.234 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.865e-05/0.004161, allocations: 4 kB / 1.002 GB, free: 4.23 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.004266, allocations: 11.86 kB / 1.002 GB, free: 4.219 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.004387, allocations: 35.56 kB / 1.002 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.000844/0.005231, allocations: 326.2 kB / 1.002 GB, free: 3.867 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005655/0.005796, allocations: 491.4 kB / 1.003 GB, free: 3.387 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.179e-05/0.005848, allocations: 11.97 kB / 1.003 GB, free: 3.375 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005346/0.006383, allocations: 355.6 kB / 1.003 GB, free: 3.027 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003003/0.006683, allocations: 127.7 kB / 1.003 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.006783, allocations: 24 kB / 1.003 GB, free: 2.879 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 9.978e-05/0.006883, allocations: 28 kB / 1.003 GB, free: 2.852 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.007052, allocations: 123.6 kB / 1.004 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.007236, allocations: 123.7 kB / 1.004 GB, free: 2.609 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.00783, allocations: 462.8 kB / 1.004 GB, free: 2.156 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.007835, allocations: 4 kB / 1.004 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.352e-06/0.007836, allocations: 0 / 1.004 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.563e-06/0.007843, allocations: 0 / 1.004 GB, free: 2.152 MB / 0.9044 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.001397/0.00924, allocations: 0.795 MB / 1.005 GB, free: 1.285 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.009296, allocations: 15.97 kB / 1.005 GB, free: 1.27 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.009443, allocations: 56.7 kB / 1.005 GB, free: 1.215 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004203/0.009863, allocations: 255.9 kB / 1.005 GB, free: 0.9375 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.43e-05/0.009918, allocations: 20.36 kB / 1.005 GB, free: 0.918 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.057e-05/0.009998, allocations: 28.36 kB / 1.005 GB, free: 0.8906 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.01107, allocations: 226 kB / 1.005 GB, free: 0.6641 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.01108, allocations: 4.188 kB / 1.005 GB, free: 0.6602 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.01111, allocations: 8.297 kB / 1.005 GB, free: 0.6523 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.01112, allocations: 384 / 1.005 GB, free: 0.6523 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.01197, allocations: 122.4 kB / 1.006 GB, free: 0.5352 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004434/0.01241, allocations: 277.1 kB / 1.006 GB, free: 240 kB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.01361, allocations: 182.5 kB / 1.006 GB, free: 48 kB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008287/0.01443, allocations: 116.8 kB / 1.006 GB, free: 15.93 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.01446, allocations: 8 kB / 1.006 GB, free: 15.92 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/0.01553, allocations: 237.8 kB / 1.006 GB, free: 15.68 MB / 0.92 GB Notification: Performance of pre-optimization done (n=16): time 1.934e-06/0.01553, allocations: 0 / 1.006 GB, free: 15.68 MB / 0.92 GB Notification: Performance of matching and sorting (n=16): time 0.002793/0.01832, allocations: 0.5245 MB / 1.007 GB, free: 15.15 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.01838, allocations: 63.39 kB / 1.007 GB, free: 15.07 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005254/0.01891, allocations: 409.9 kB / 1.007 GB, free: 14.67 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.759e-05/0.01898, allocations: 41.69 kB / 1.007 GB, free: 14.62 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.849e-05/0.01908, allocations: 101.4 kB / 1.007 GB, free: 14.52 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 6.451e-05/0.01914, allocations: 43.67 kB / 1.007 GB, free: 14.47 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/0.01935, allocations: 125.5 kB / 1.008 GB, free: 14.34 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.01952, allocations: 322.8 kB / 1.008 GB, free: 14.02 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.01988, allocations: 195.3 kB / 1.008 GB, free: 13.82 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004264/0.02031, allocations: 249.2 kB / 1.008 GB, free: 13.54 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.02073, allocations: 271.3 kB / 1.009 GB, free: 13.24 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.02073, allocations: 4 kB / 1.009 GB, free: 13.24 MB / 0.92 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009628/0.02169, allocations: 0.5625 MB / 1.009 GB, free: 12.64 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-05/0.02178, allocations: 79.38 kB / 1.009 GB, free: 12.55 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.02179, allocations: 0 / 1.009 GB, free: 12.55 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.02181, allocations: 4 kB / 1.009 GB, free: 12.55 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.02199, allocations: 19.98 kB / 1.009 GB, free: 12.53 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.022, allocations: 11.86 kB / 1.009 GB, free: 12.52 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005063/0.02251, allocations: 68.03 kB / 1.009 GB, free: 12.45 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.02261, allocations: 63.98 kB / 1.009 GB, free: 12.39 MB / 0.92 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.0002562/0.02287, allocations: 194.5 kB / 1.01 GB, free: 12.2 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-05/0.02294, allocations: 35.77 kB / 1.01 GB, free: 12.16 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.738e-05/0.02302, allocations: 43.67 kB / 1.01 GB, free: 12.12 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.02303, allocations: 4 kB / 1.01 GB, free: 12.11 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.02303, allocations: 0 / 1.01 GB, free: 12.11 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.02304, allocations: 11.88 kB / 1.01 GB, free: 12.1 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002381/0.02542, allocations: 0.7054 MB / 1.01 GB, free: 11.36 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.02543, allocations: 3.984 kB / 1.01 GB, free: 11.35 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.5e-05/0.02546, allocations: 4 kB / 1.01 GB, free: 11.35 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.02546, allocations: 3.938 kB / 1.01 GB, free: 11.34 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/0.02551, allocations: 31.91 kB / 1.01 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.02552, allocations: 4 kB / 1.01 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.02552, allocations: 0 / 1.01 GB, free: 11.31 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.02746, allocations: 0.5026 MB / 1.011 GB, free: 10.79 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002718/0.02774, allocations: 129.5 kB / 1.011 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.491e-05/0.02782, allocations: 23.92 kB / 1.011 GB, free: 10.64 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004997/0.02832, allocations: 35.97 kB / 1.011 GB, free: 10.61 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.02836, allocations: 7.984 kB / 1.011 GB, free: 10.6 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.67e-05/0.02844, allocations: 59.97 kB / 1.011 GB, free: 10.54 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003436/0.02878, allocations: 295.1 kB / 1.011 GB, free: 10.25 MB / 0.92 GB Notification: Performance of sort global known variables: time 8e-08/0.02878, allocations: 0 / 1.011 GB, free: 10.25 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003544/0.02913, allocations: 64 kB / 1.011 GB, free: 10.19 MB / 0.92 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.0001774/0.02931, allocations: 125.2 kB / 1.012 GB, free: 10.06 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001431/0.03074, allocations: 493.8 kB / 1.012 GB, free: 9.539 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.03074, allocations: 4 kB / 1.012 GB, free: 9.535 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0008499/0.03159, allocations: 124.2 kB / 1.012 GB, free: 9.414 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.03197, allocations: 31.83 kB / 1.012 GB, free: 9.387 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.03357, allocations: 0.5657 MB / 1.013 GB, free: 8.793 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001957/0.03377, allocations: 163 kB / 1.013 GB, free: 8.617 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 6.349e-05/0.03383, allocations: 17.14 kB / 1.013 GB, free: 8.602 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.03388, allocations: 16.48 kB / 1.013 GB, free: 8.586 MB / 0.92 GB Notification: Performance of SimCode: time 4.21e-07/0.03388, allocations: 0 / 1.013 GB, free: 8.586 MB / 0.92 GB Notification: Performance of Templates: time 0.01085/0.04473, allocations: 5.951 MB / 1.019 GB, free: 2.559 MB / 0.92 GB " [Timeout remaining time 300] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 800] 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: 9.059259191155434]