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.001424/0.001424, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001687/0.001687, allocations: 217.3 kB / 22.26 MB, free: 5.078 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.54/1.54, allocations: 230.6 MB / 256 MB, free: 8.008 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.277/3.277, allocations: 0.49 GB / 0.7951 GB, free: 33.43 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.002821/0.002821, allocations: 65.97 kB / 1.154 GB, free: 25.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3447, allocations: 176.1 MB / 1.326 GB, free: 1.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002901/0.3476, allocations: 1.543 MB / 1.327 GB, free: 420 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001257/0.3488, allocations: 0.55 MB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.961e-05/0.3489, allocations: 4 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.383e-05/0.349, allocations: 11.86 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.3491, allocations: 31.78 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008416/0.3499, allocations: 306.3 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006509/0.3506, allocations: 487.5 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.395e-05/0.3506, allocations: 8 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005346/0.3511, allocations: 279.6 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004011/0.3515, allocations: 155.4 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.783e-05/0.3516, allocations: 24 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.624e-05/0.3517, allocations: 28 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.3519, allocations: 123.6 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.3521, allocations: 187 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.3525, allocations: 426.6 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3525, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3525, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.405e-05/0.3525, allocations: 0 / 1.33 GB, free: 13.83 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.001358/0.3539, allocations: 0.8081 MB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3539, allocations: 8.031 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.803e-05/0.354, allocations: 42.73 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.3541, allocations: 52.7 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.3546, allocations: 260.7 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.046e-05/0.3546, allocations: 16.36 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.842e-05/0.3547, allocations: 24.38 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009901/0.3557, allocations: 218 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.3557, allocations: 3.938 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.3557, allocations: 3.938 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.3557, allocations: 4 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007332/0.3565, allocations: 99.92 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004667/0.3569, allocations: 364.3 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.3579, allocations: 162.5 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007144/0.3587, allocations: 104.8 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.3587, allocations: 0 / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009873/0.3597, allocations: 227.1 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.3597, allocations: 4 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002453/0.3621, allocations: 487.8 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.3622, allocations: 63.38 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004726/0.3627, allocations: 413.9 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.115e-05/0.3627, allocations: 41.69 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.3628, allocations: 93.45 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.595e-05/0.3629, allocations: 39.69 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/0.3631, allocations: 125.5 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3633, allocations: 322.8 kB / 1.334 GB, free: 9.684 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.3635, allocations: 123.9 kB / 1.334 GB, free: 9.562 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002988/0.3638, allocations: 169.9 kB / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004019/0.3642, allocations: 278.7 kB / 1.334 GB, free: 9.07 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3642, allocations: 0 / 1.334 GB, free: 9.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008542/0.3651, allocations: 488.7 kB / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.359e-05/0.3652, allocations: 95.31 kB / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3652, allocations: 192 / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.3652, allocations: 8 kB / 1.335 GB, free: 8.461 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.3654, allocations: 19.92 kB / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3654, allocations: 4 kB / 1.335 GB, free: 8.438 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004898/0.3659, allocations: 63.78 kB / 1.335 GB, free: 8.375 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.142e-05/0.366, allocations: 63.97 kB / 1.335 GB, free: 8.312 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.0002514/0.3662, allocations: 194.2 kB / 1.335 GB, free: 8.117 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.3663, allocations: 43.66 kB / 1.335 GB, free: 8.074 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.386e-05/0.3664, allocations: 47.67 kB / 1.335 GB, free: 8.027 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3664, allocations: 0 / 1.335 GB, free: 8.027 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3664, allocations: 0 / 1.335 GB, free: 8.027 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3664, allocations: 0 / 1.335 GB, free: 8.027 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.3686, allocations: 0.72 MB / 1.336 GB, free: 7.254 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3686, allocations: 0 / 1.336 GB, free: 7.254 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.926e-05/0.3686, allocations: 4 kB / 1.336 GB, free: 7.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/0.3686, allocations: 3.984 kB / 1.336 GB, free: 7.246 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.3687, allocations: 19.97 kB / 1.336 GB, free: 7.227 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3687, allocations: 0 / 1.336 GB, free: 7.227 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3687, allocations: 0 / 1.336 GB, free: 7.227 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.3704, allocations: 487.3 kB / 1.336 GB, free: 6.734 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003124/0.3707, allocations: 133.9 kB / 1.337 GB, free: 6.602 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.92e-05/0.3708, allocations: 12 kB / 1.337 GB, free: 6.59 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004707/0.3713, allocations: 27.97 kB / 1.337 GB, free: 6.562 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.3713, allocations: 11.98 kB / 1.337 GB, free: 6.551 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.542e-05/0.3714, allocations: 59.97 kB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003253/0.3717, allocations: 291.1 kB / 1.337 GB, free: 6.203 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3717, allocations: 0 / 1.337 GB, free: 6.203 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003977/0.3721, allocations: 71.98 kB / 1.337 GB, free: 6.133 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.002063/0.3742, allocations: 1.029 MB / 1.338 GB, free: 5.078 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001305/0.3755, allocations: 414.5 kB / 1.338 GB, free: 4.648 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3755, allocations: 0 / 1.338 GB, free: 4.648 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007311/0.3762, allocations: 107.9 kB / 1.339 GB, free: 4.543 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.3766, allocations: 27.44 kB / 1.339 GB, free: 4.52 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004471/0.381, allocations: 2.8 MB / 1.341 GB, free: 1.59 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.3815, allocations: 0.7708 MB / 1.342 GB, free: 0.793 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.045e-05/0.3815, allocations: 13.09 kB / 1.342 GB, free: 0.7812 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.406e-05/0.3816, allocations: 23.42 kB / 1.342 GB, free: 0.7578 MB / 1.029 GB Notification: Performance of SimCode: time 9.11e-07/0.3816, allocations: 4 kB / 1.342 GB, free: 0.7539 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03687/0.4185, allocations: 6.428 MB / 1.348 GB, free: 10.34 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.58, allocations: 6.25 kB / 1.348 GB, free: 10.34 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.50549186603166]