Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008862/0.0008859, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009726/0.0009726, allocations: 182.1 kB / 16.92 MB, free: 6.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005488/0.0005487, allocations: 12.28 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8266/0.8271, allocations: 142.4 MB / 0.9557 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001392/0.8286, allocations: 1.231 MB / 0.9569 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001143/0.8297, allocations: 0.5874 MB / 0.9575 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.145e-05/0.8298, allocations: 1 kB / 0.9575 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.621e-05/0.8299, allocations: 7.922 kB / 0.9575 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001014/0.83, allocations: 31.92 kB / 0.9575 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005891/0.8306, allocations: 278.7 kB / 0.9578 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.8309, allocations: 449 kB / 0.9582 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.183e-05/0.831, allocations: 12.06 kB / 0.9582 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003695/0.8314, allocations: 304.6 kB / 0.9585 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.8316, allocations: 157.9 kB / 0.9587 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.545e-05/0.8317, allocations: 13.75 kB / 0.9587 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.304e-05/0.8318, allocations: 13.75 kB / 0.9587 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.8319, allocations: 123.5 kB / 0.9588 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.8321, allocations: 209.2 kB / 0.959 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.8323, allocations: 305.8 kB / 0.9593 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.8324, allocations: 0 / 0.9593 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.184e-06/0.8324, allocations: 0 / 0.9593 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.939e-06/0.8324, allocations: 1.156 kB / 0.9593 GB, free: 5.199 MB / 0.7169 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.000891/0.8333, allocations: 0.7538 MB / 0.96 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.8333, allocations: 18.25 kB / 0.96 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.8334, allocations: 53.34 kB / 0.9601 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.8337, allocations: 302.3 kB / 0.9604 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.299e-05/0.8338, allocations: 22.58 kB / 0.9604 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.815e-05/0.8339, allocations: 26.88 kB / 0.9604 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.8349, allocations: 226.5 kB / 0.9606 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.8349, allocations: 192 / 0.9606 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.835, allocations: 5.312 kB / 0.9607 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.835, allocations: 5.312 kB / 0.9607 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008073/0.8358, allocations: 120.8 kB / 0.9608 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003452/0.8362, allocations: 388.2 kB / 0.9611 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.8373, allocations: 194.2 kB / 0.9613 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008156/0.8381, allocations: 121.5 kB / 0.9614 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.8381, allocations: 2.562 kB / 0.9614 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009613/0.8391, allocations: 230.4 kB / 0.9617 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.8391, allocations: 0 / 0.9617 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.002758/0.8419, allocations: 0.5157 MB / 0.9622 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.8419, allocations: 59.78 kB / 0.9622 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003719/0.8423, allocations: 414 kB / 0.9626 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.847e-05/0.8424, allocations: 42.31 kB / 0.9627 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.305e-05/0.8425, allocations: 99.42 kB / 0.9628 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.8425, allocations: 34.23 kB / 0.9628 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.51e-05/0.8426, allocations: 38.67 kB / 0.9628 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.8426, allocations: 326.2 kB / 0.9631 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.8429, allocations: 121.4 kB / 0.9633 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002694/0.8432, allocations: 167.5 kB / 0.9634 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.8435, allocations: 279.5 kB / 0.9637 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.8435, allocations: 7.922 kB / 0.9637 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007577/0.8443, allocations: 483.8 kB / 0.9641 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.68e-05/0.8444, allocations: 96.44 kB / 0.9642 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.8444, allocations: 1.781 kB / 0.9642 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.8444, allocations: 6.953 kB / 0.9642 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.8446, allocations: 22.33 kB / 0.9643 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.8446, allocations: 2.156 kB / 0.9643 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005241/0.8451, allocations: 70.77 kB / 0.9643 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.733e-05/0.8452, allocations: 64.81 kB / 0.9644 GB, free: 1.48 MB / 0.7169 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.0001864/0.8454, allocations: 195.2 kB / 0.9646 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.332e-05/0.8455, allocations: 41.22 kB / 0.9646 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.296e-05/0.8455, allocations: 39.56 kB / 0.9647 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.8456, allocations: 1.781 kB / 0.9647 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.8456, allocations: 3.984 kB / 0.9647 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.8456, allocations: 4.969 kB / 0.9647 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002185/0.8478, allocations: 0.7695 MB / 0.9654 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.8478, allocations: 0 / 0.9654 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.424e-05/0.8478, allocations: 8.375 kB / 0.9654 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.8478, allocations: 0 / 0.9654 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.8479, allocations: 20.44 kB / 0.9655 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.8479, allocations: 1 kB / 0.9655 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.8479, allocations: 0 / 0.9655 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.8497, allocations: 0.4951 MB / 0.9659 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/0.8499, allocations: 203 kB / 0.9661 GB, free: 284 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.314e-05/0.85, allocations: 13.98 kB / 0.9661 GB, free: 276 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.8505, allocations: 39.59 kB / 0.9662 GB, free: 260 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.792e-05/0.8505, allocations: 9.047 kB / 0.9662 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.771e-05/0.8506, allocations: 53.52 kB / 0.9662 GB, free: 252 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000264/0.8509, allocations: 297.7 kB / 0.9665 GB, free: 64 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8509, allocations: 0 / 0.9665 GB, free: 64 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000374/0.8512, allocations: 65.7 kB / 0.9666 GB, free: 56 kB / 0.7169 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.0001512/0.8514, allocations: 113 kB / 0.9667 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001343/0.8528, allocations: 454.1 kB / 0.9671 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8528, allocations: 0 / 0.9671 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008685/0.8536, allocations: 140.5 kB / 0.9673 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003821/0.854, allocations: 32.81 kB / 0.9673 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.8557, allocations: 0.7159 MB / 0.968 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.856, allocations: 0.7712 MB / 0.9687 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.8561, allocations: 22.8 kB / 0.9688 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.8561, allocations: 0 / 0.9688 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of Templates: time 0.005906/0.862, allocations: 3.717 MB / 0.9724 GB, free: 12.31 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches