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.000855/0.000855, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008793/0.0008793, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9585/0.9585, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.828/1.828, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 0.9996 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.318e-05/2.516e-05, allocations: 5.094 kB / 0.9996 GB, free: 13.55 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002076/0.002102, allocations: 1.511 MB / 1.001 GB, free: 12.04 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001056/0.003157, allocations: 0.5312 MB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.942e-05/0.003217, allocations: 0 / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.003317, allocations: 11.81 kB / 1.002 GB, free: 11.49 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.003434, allocations: 35.56 kB / 1.002 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007293/0.004164, allocations: 322.8 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.00453, allocations: 487.4 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.296e-05/0.004573, allocations: 7.938 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.004915, allocations: 355.6 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.005123, allocations: 131.7 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.005173, allocations: 24 kB / 1.003 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.135e-05/0.005224, allocations: 28 kB / 1.003 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.005327, allocations: 119.6 kB / 1.003 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.00543, allocations: 127.7 kB / 1.003 GB, free: 9.891 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003765/0.005807, allocations: 458.8 kB / 1.004 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.00581, allocations: 4 kB / 1.004 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.02e-07/0.005811, allocations: 0 / 1.004 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 9.188e-06/0.00582, allocations: 0 / 1.004 GB, free: 9.438 MB / 0.9636 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.0008719/0.006692, allocations: 0.799 MB / 1.004 GB, free: 8.566 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.006732, allocations: 12.75 kB / 1.004 GB, free: 8.555 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.693e-05/0.006769, allocations: 38.73 kB / 1.004 GB, free: 8.508 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.757e-05/0.006856, allocations: 56.66 kB / 1.005 GB, free: 8.453 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.007123, allocations: 263.9 kB / 1.005 GB, free: 8.168 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.00716, allocations: 20.36 kB / 1.005 GB, free: 8.148 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.007206, allocations: 28.36 kB / 1.005 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.007729, allocations: 226 kB / 1.005 GB, free: 7.895 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.007738, allocations: 4.188 kB / 1.005 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.007756, allocations: 4.359 kB / 1.005 GB, free: 7.887 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.007762, allocations: 4.125 kB / 1.005 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/0.008129, allocations: 115.9 kB / 1.005 GB, free: 7.77 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002658/0.008395, allocations: 308.5 kB / 1.005 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/0.008913, allocations: 178.5 kB / 1.006 GB, free: 7.242 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/0.00926, allocations: 112.8 kB / 1.006 GB, free: 7.129 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.009286, allocations: 3.984 kB / 1.006 GB, free: 7.125 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004947/0.009781, allocations: 239.2 kB / 1.006 GB, free: 6.879 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=16): time 1.854e-06/0.009783, allocations: 0 / 1.006 GB, free: 6.879 MB / 0.9636 GB Notification: Performance of matching and sorting (n=16): time 0.001293/0.01108, allocations: 0.5306 MB / 1.006 GB, free: 6.344 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.01112, allocations: 55.41 kB / 1.007 GB, free: 6.277 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003696/0.01149, allocations: 413.9 kB / 1.007 GB, free: 5.863 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/0.01153, allocations: 41.69 kB / 1.007 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.01158, allocations: 97.44 kB / 1.007 GB, free: 5.719 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.01162, allocations: 39.72 kB / 1.007 GB, free: 5.68 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.01174, allocations: 137.4 kB / 1.007 GB, free: 5.539 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.09e-05/0.01182, allocations: 322.8 kB / 1.008 GB, free: 5.215 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.01203, allocations: 195.2 kB / 1.008 GB, free: 5.012 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002162/0.01224, allocations: 245.3 kB / 1.008 GB, free: 4.738 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002486/0.01249, allocations: 269.2 kB / 1.008 GB, free: 4.441 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.01249, allocations: 0 / 1.008 GB, free: 4.441 MB / 0.9636 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005497/0.01304, allocations: 0.5569 MB / 1.009 GB, free: 3.855 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.0131, allocations: 79.38 kB / 1.009 GB, free: 3.766 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.0131, allocations: 4 kB / 1.009 GB, free: 3.762 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.01312, allocations: 7.922 kB / 1.009 GB, free: 3.754 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.672e-05/0.01321, allocations: 27.92 kB / 1.009 GB, free: 3.727 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.01322, allocations: 4 kB / 1.009 GB, free: 3.723 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.01345, allocations: 68.03 kB / 1.009 GB, free: 3.656 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.77e-05/0.01351, allocations: 55.98 kB / 1.009 GB, free: 3.602 MB / 0.9636 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.000155/0.01367, allocations: 201.7 kB / 1.009 GB, free: 3.398 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/0.0137, allocations: 35.77 kB / 1.009 GB, free: 3.363 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.874e-05/0.01375, allocations: 43.69 kB / 1.009 GB, free: 3.32 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.01376, allocations: 3.938 kB / 1.009 GB, free: 3.316 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.01376, allocations: 0 / 1.009 GB, free: 3.316 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.01377, allocations: 3.984 kB / 1.009 GB, free: 3.312 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.01494, allocations: 0.7396 MB / 1.01 GB, free: 2.52 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.01494, allocations: 7.938 kB / 1.01 GB, free: 2.512 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.449e-05/0.01497, allocations: 7.984 kB / 1.01 GB, free: 2.504 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.01497, allocations: 0 / 1.01 GB, free: 2.504 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.01499, allocations: 19.98 kB / 1.01 GB, free: 2.484 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.015, allocations: 4 kB / 1.01 GB, free: 2.48 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.015, allocations: 7.922 kB / 1.01 GB, free: 2.473 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008749/0.01587, allocations: 0.4995 MB / 1.011 GB, free: 1.957 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.01605, allocations: 129.5 kB / 1.011 GB, free: 1.828 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.341e-05/0.01609, allocations: 16 kB / 1.011 GB, free: 1.812 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.01631, allocations: 39.95 kB / 1.011 GB, free: 1.773 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.711e-05/0.01634, allocations: 7.984 kB / 1.011 GB, free: 1.766 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.01638, allocations: 59.98 kB / 1.011 GB, free: 1.707 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001834/0.01656, allocations: 291.1 kB / 1.011 GB, free: 1.422 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.01656, allocations: 0 / 1.011 GB, free: 1.422 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002331/0.0168, allocations: 67.98 kB / 1.011 GB, free: 1.355 MB / 0.9636 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.001061/0.01786, allocations: 1.067 MB / 1.012 GB, free: 272 kB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0006968/0.01855, allocations: 496 kB / 1.013 GB, free: 15.75 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01856, allocations: 4.125 kB / 1.013 GB, free: 15.74 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.0189, allocations: 115.9 kB / 1.013 GB, free: 15.63 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.01914, allocations: 39.42 kB / 1.013 GB, free: 15.59 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002852/0.022, allocations: 3.125 MB / 1.016 GB, free: 12.28 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.02211, allocations: 163 kB / 1.016 GB, free: 12.1 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 4.358e-05/0.02216, allocations: 13.14 kB / 1.016 GB, free: 12.09 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.02221, allocations: 28.48 kB / 1.016 GB, free: 12.06 MB / 0.9792 GB Notification: Performance of SimCode: time 4.4e-07/0.02221, allocations: 0 / 1.016 GB, free: 12.06 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.04417, allocations: 8.03 MB / 1.024 GB, free: 4.082 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.804/6.848, allocations: 1.688 kB / 1.024 GB, free: 4.082 MB / 0.9792 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --stepSize=643.381 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 840.0] 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 299] "" Variables in the reference:time,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.minute Variables in the result:calendarTime2016.day,calendarTime2016.hour,calendarTime2016.minute,calendarTime2016.month,calendarTime2016.offset,calendarTime2016.outputUnixTimeStamp,calendarTime2016.timZon,calendarTime2016.unixTimeStampLocal,calendarTime2016.weekDay,calendarTime2016.year,calendarTime2016.yearRef,calendarTime2016.zerTim,time [Calling sys.exit(0), Time elapsed: 12.715132158249617]