Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001743/0.001743, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001874/0.001874, allocations: 217.2 kB / 22.25 MB, free: 5.105 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.513/1.513, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.14/3.14, allocations: 0.49 GB / 0.7951 GB, free: 35.47 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_12_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_12_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002504/0.002504, allocations: 67.08 kB / 1.154 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.3515, allocations: 176.1 MB / 1.326 GB, free: 1.582 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002813/0.3543, allocations: 1.528 MB / 1.327 GB, free: 52 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.3556, allocations: 0.5243 MB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.456e-05/0.3557, allocations: 0 / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 8.449e-05/0.3557, allocations: 3.938 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.3559, allocations: 31.78 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008408/0.3567, allocations: 320.7 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005339/0.3572, allocations: 487.5 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.3573, allocations: 11.98 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003882/0.3577, allocations: 279.6 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/0.358, allocations: 147.7 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 8.366e-05/0.3581, allocations: 28 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.289e-05/0.3581, allocations: 28 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.3583, allocations: 119.6 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.3585, allocations: 155.3 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004909/0.359, allocations: 434.6 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.359, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.252e-06/0.359, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.338e-06/0.359, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 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.001355/0.3603, allocations: 0.795 MB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3604, allocations: 8.031 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.3605, allocations: 42.73 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.3606, allocations: 52.7 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.3611, allocations: 260.6 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.857e-05/0.3611, allocations: 16.36 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.891e-05/0.3612, allocations: 28.38 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.3623, allocations: 214 kB / 1.331 GB, free: 12.01 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3623, allocations: 7.875 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.3623, allocations: 0 / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3623, allocations: 4 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008179/0.3631, allocations: 99.86 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004253/0.3635, allocations: 308.5 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.3647, allocations: 166.5 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008023/0.3655, allocations: 104.8 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.3656, allocations: 0 / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.3666, allocations: 227.1 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.934e-06/0.3666, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002872/0.3695, allocations: 490.9 kB / 1.332 GB, free: 10.56 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.3695, allocations: 59.39 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005982/0.3701, allocations: 413.9 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.538e-05/0.3702, allocations: 41.69 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.3703, allocations: 93.45 kB / 1.333 GB, free: 9.93 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.56e-05/0.3703, allocations: 39.69 kB / 1.333 GB, free: 9.891 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.3706, allocations: 129.4 kB / 1.333 GB, free: 9.758 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002044/0.3708, allocations: 326.8 kB / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003526/0.3711, allocations: 191.3 kB / 1.334 GB, free: 9.23 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.3715, allocations: 245.2 kB / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004572/0.3719, allocations: 275 kB / 1.334 GB, free: 8.656 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3719, allocations: 0 / 1.334 GB, free: 8.656 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009256/0.3729, allocations: 0.548 MB / 1.335 GB, free: 8.078 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001725/0.373, allocations: 87.31 kB / 1.335 GB, free: 7.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.373, allocations: 3.984 kB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.3731, allocations: 4 kB / 1.335 GB, free: 7.973 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.3732, allocations: 27.92 kB / 1.335 GB, free: 7.945 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.3732, allocations: 3.984 kB / 1.335 GB, free: 7.941 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005389/0.3738, allocations: 64.03 kB / 1.335 GB, free: 7.879 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.332e-05/0.3739, allocations: 59.98 kB / 1.335 GB, free: 7.82 MB / 1.029 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.0002917/0.3742, allocations: 198.2 kB / 1.335 GB, free: 7.621 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.3742, allocations: 43.66 kB / 1.335 GB, free: 7.578 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.556e-05/0.3743, allocations: 43.67 kB / 1.335 GB, free: 7.535 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3743, allocations: 4 kB / 1.335 GB, free: 7.531 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3743, allocations: 0 / 1.335 GB, free: 7.531 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3743, allocations: 0 / 1.335 GB, free: 7.531 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002455/0.3768, allocations: 0.7083 MB / 1.336 GB, free: 6.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3768, allocations: 0 / 1.336 GB, free: 6.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.052e-05/0.3768, allocations: 4 kB / 1.336 GB, free: 6.766 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3768, allocations: 0 / 1.336 GB, free: 6.766 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.283e-05/0.3769, allocations: 23.97 kB / 1.336 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3769, allocations: 0 / 1.336 GB, free: 6.742 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3769, allocations: 11.88 kB / 1.336 GB, free: 6.73 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001981/0.3789, allocations: 486 kB / 1.336 GB, free: 6.242 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003261/0.3792, allocations: 129.9 kB / 1.337 GB, free: 6.113 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.621e-05/0.3793, allocations: 12 kB / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005371/0.3798, allocations: 35.97 kB / 1.337 GB, free: 6.066 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-05/0.3798, allocations: 7.984 kB / 1.337 GB, free: 6.059 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.33e-05/0.3799, allocations: 55.97 kB / 1.337 GB, free: 6.004 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003291/0.3802, allocations: 299.1 kB / 1.337 GB, free: 5.711 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3802, allocations: 0 / 1.337 GB, free: 5.711 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003908/0.3806, allocations: 63.98 kB / 1.337 GB, free: 5.648 MB / 1.029 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.002441/0.3831, allocations: 1.038 MB / 1.338 GB, free: 4.578 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001606/0.3847, allocations: 477.8 kB / 1.339 GB, free: 4.074 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3847, allocations: 384 / 1.339 GB, free: 4.074 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0008564/0.3855, allocations: 114.1 kB / 1.339 GB, free: 3.965 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.3859, allocations: 30.89 kB / 1.339 GB, free: 3.938 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004855/0.3908, allocations: 3.08 MB / 1.342 GB, free: 0.6719 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.391, allocations: 167 kB / 1.342 GB, free: 500 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.797e-05/0.391, allocations: 13.08 kB / 1.342 GB, free: 488 kB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.449e-05/0.3911, allocations: 23.42 kB / 1.342 GB, free: 464 kB / 1.029 GB Notification: Performance of SimCode: time 6.31e-07/0.3911, allocations: 0 / 1.342 GB, free: 464 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03619/0.4273, allocations: 8.092 MB / 1.35 GB, free: 8.41 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12, allocations: 5.781 kB / 1.35 GB, free: 8.406 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --stepSize=643.381 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 299] Reference file matches [Calling sys.exit(0), Time elapsed: 21.579235501005314]