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.00134/0.00134, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001443/0.001443, allocations: 207.6 kB / 22.24 MB, free: 5.262 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.777 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.252/3.252, allocations: 0.4892 GB / 0.7943 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] 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.00216/0.00216, allocations: 64.61 kB / 1.153 GB, free: 25.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3295, allocations: 176.1 MB / 1.325 GB, free: 2.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002818/0.3324, allocations: 1.519 MB / 1.327 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.3337, allocations: 0.5267 MB / 1.327 GB, free: 344 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.362e-05/0.3337, allocations: 0 / 1.327 GB, free: 344 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.116e-05/0.3338, allocations: 15.86 kB / 1.327 GB, free: 328 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.3339, allocations: 31.84 kB / 1.327 GB, free: 296 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000873/0.3348, allocations: 311.2 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006217/0.3354, allocations: 491.3 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.3355, allocations: 11.98 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004809/0.3359, allocations: 279.7 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000423/0.3364, allocations: 141.1 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.3365, allocations: 28 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.961e-05/0.3366, allocations: 27.94 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.3367, allocations: 111.7 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.3369, allocations: 155.3 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005/0.3374, allocations: 434.6 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3374, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3374, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.306e-05/0.3375, allocations: 0 / 1.329 GB, free: 14.34 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.001339/0.3388, allocations: 0.7989 MB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3388, allocations: 12.03 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.178e-05/0.3389, allocations: 38.75 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.339, allocations: 52.69 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.3395, allocations: 260.7 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.129e-05/0.3396, allocations: 20.36 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.041e-05/0.3397, allocations: 24.36 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009641/0.3406, allocations: 206 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3406, allocations: 7.938 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.3407, allocations: 11.98 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3407, allocations: 0 / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00074/0.3414, allocations: 95.92 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004862/0.3419, allocations: 304.5 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.3429, allocations: 170.4 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007104/0.3436, allocations: 96.78 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.3437, allocations: 4 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.3447, allocations: 223.1 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 2.314e-06/0.3447, allocations: 0 / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002493/0.3472, allocations: 491 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.3472, allocations: 67.33 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005029/0.3477, allocations: 409.9 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 7.616e-05/0.3478, allocations: 41.69 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.3479, allocations: 97.44 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.348, allocations: 47.62 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002407/0.3482, allocations: 129.4 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3484, allocations: 322.8 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.3487, allocations: 187.3 kB / 1.333 GB, free: 10.05 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000373/0.3491, allocations: 253.2 kB / 1.333 GB, free: 9.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004218/0.3495, allocations: 267.7 kB / 1.333 GB, free: 9.477 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3495, allocations: 0 / 1.333 GB, free: 9.477 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009389/0.3505, allocations: 0.5509 MB / 1.334 GB, free: 8.895 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.012e-05/0.3506, allocations: 87.31 kB / 1.334 GB, free: 8.797 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3506, allocations: 0 / 1.334 GB, free: 8.797 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.3506, allocations: 4 kB / 1.334 GB, free: 8.793 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.3508, allocations: 23.91 kB / 1.334 GB, free: 8.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.3508, allocations: 4 kB / 1.334 GB, free: 8.766 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004957/0.3513, allocations: 59.84 kB / 1.334 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.332e-05/0.3514, allocations: 68.08 kB / 1.334 GB, free: 8.641 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.0002661/0.3516, allocations: 194.2 kB / 1.334 GB, free: 8.445 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/0.3517, allocations: 47.66 kB / 1.334 GB, free: 8.398 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.3518, allocations: 39.69 kB / 1.334 GB, free: 8.359 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.353e-06/0.3518, allocations: 3.984 kB / 1.334 GB, free: 8.355 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.3518, allocations: 0 / 1.334 GB, free: 8.355 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3518, allocations: 3.984 kB / 1.334 GB, free: 8.352 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.3541, allocations: 0.7083 MB / 1.335 GB, free: 7.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3541, allocations: 0 / 1.335 GB, free: 7.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-05/0.3542, allocations: 7.984 kB / 1.335 GB, free: 7.582 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.3542, allocations: 4 kB / 1.335 GB, free: 7.578 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.931e-05/0.3542, allocations: 19.98 kB / 1.335 GB, free: 7.559 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.3542, allocations: 0 / 1.335 GB, free: 7.559 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3542, allocations: 0 / 1.335 GB, free: 7.559 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.356, allocations: 493.8 kB / 1.336 GB, free: 7.062 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.3563, allocations: 125.9 kB / 1.336 GB, free: 6.938 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.297e-05/0.3564, allocations: 12 kB / 1.336 GB, free: 6.926 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004732/0.3569, allocations: 31.95 kB / 1.336 GB, free: 6.895 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.3569, allocations: 11.98 kB / 1.336 GB, free: 6.883 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.429e-05/0.357, allocations: 59.98 kB / 1.336 GB, free: 6.824 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003656/0.3574, allocations: 291.1 kB / 1.336 GB, free: 6.539 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3574, allocations: 0 / 1.336 GB, free: 6.539 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004199/0.3578, allocations: 67.98 kB / 1.336 GB, free: 6.473 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.002173/0.3599, allocations: 1.042 MB / 1.337 GB, free: 5.398 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001344/0.3613, allocations: 465.9 kB / 1.338 GB, free: 4.906 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3613, allocations: 0 / 1.338 GB, free: 4.906 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007522/0.362, allocations: 119.1 kB / 1.338 GB, free: 4.793 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.3624, allocations: 39.28 kB / 1.338 GB, free: 4.758 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/0.3671, allocations: 3.078 MB / 1.341 GB, free: 1.496 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.3673, allocations: 163 kB / 1.341 GB, free: 1.316 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.07e-05/0.3673, allocations: 17.08 kB / 1.341 GB, free: 1.301 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.3674, allocations: 23.42 kB / 1.341 GB, free: 1.277 MB / 1.029 GB Notification: Performance of SimCode: time 6.51e-07/0.3674, allocations: 0 / 1.341 GB, free: 1.277 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.404, allocations: 8.061 MB / 1.349 GB, free: 9.258 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.02, allocations: 8.25 kB / 1.349 GB, free: 9.254 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.636746489908546]