Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.738/1.738, allocations: 289.9 MB / 297.4 MB, free: 6.406 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 184.9 kB / 366.7 MB, free: 1.695 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 205.3 MB / 0.626 GB, free: 7.152 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008519/0.0008518, allocations: 96.19 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.34e-05/1.34e-05, allocations: 0 / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6189/0.6189, allocations: 116.3 MB / 0.9733 GB, free: 76.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.182/0.801, allocations: 140.9 MB / 1.111 GB, free: 9.223 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.8013, allocations: 71.95 kB / 1.111 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01408/0.8154, allocations: 4.542 MB / 1.115 GB, free: 4.672 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8155, allocations: 0 / 1.115 GB, free: 4.672 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.259e-05/0.8155, allocations: 4 kB / 1.115 GB, free: 4.668 MB / 0.7136 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.0007181/0.8162, allocations: 0.625 MB / 1.116 GB, free: 3.961 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.8163, allocations: 12.02 kB / 1.116 GB, free: 3.949 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.631e-05/0.8164, allocations: 31.72 kB / 1.116 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.8167, allocations: 254.5 kB / 1.116 GB, free: 3.633 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.8167, allocations: 4 kB / 1.116 GB, free: 3.629 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.877e-05/0.8168, allocations: 18.38 kB / 1.116 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001236/0.8169, allocations: 47.97 kB / 1.116 GB, free: 3.566 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.8172, allocations: 145.2 kB / 1.117 GB, free: 3.422 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.8172, allocations: 3.938 kB / 1.117 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.8172, allocations: 8 kB / 1.117 GB, free: 3.41 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.8172, allocations: 0 / 1.117 GB, free: 3.41 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.8176, allocations: 301.9 kB / 1.117 GB, free: 3.078 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.8178, allocations: 98.52 kB / 1.117 GB, free: 2.973 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.131e-05/0.8179, allocations: 52.84 kB / 1.117 GB, free: 2.918 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.8179, allocations: 12 kB / 1.117 GB, free: 2.906 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.8181, allocations: 151.3 kB / 1.117 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.8181, allocations: 0 / 1.117 GB, free: 2.746 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16): time 0.0004768/0.8186, allocations: 245.1 kB / 1.117 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.8187, allocations: 63.39 kB / 1.117 GB, free: 2.426 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.8189, allocations: 242.3 kB / 1.118 GB, free: 2.18 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.8189, allocations: 29.7 kB / 1.118 GB, free: 2.145 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/0.819, allocations: 97.44 kB / 1.118 GB, free: 2.043 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.8191, allocations: 35.59 kB / 1.118 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.293e-05/0.8191, allocations: 8 kB / 1.118 GB, free: 2 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.8192, allocations: 318.8 kB / 1.118 GB, free: 1.68 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.8194, allocations: 71.98 kB / 1.118 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.8196, allocations: 126 kB / 1.118 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.8197, allocations: 71.94 kB / 1.118 GB, free: 1.395 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.8197, allocations: 11.83 kB / 1.118 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005152/0.8203, allocations: 291.5 kB / 1.119 GB, free: 1.094 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.884e-05/0.8203, allocations: 83.38 kB / 1.119 GB, free: 1 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.8204, allocations: 0 / 1.119 GB, free: 1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.8204, allocations: 4 kB / 1.119 GB, free: 0.9961 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.8205, allocations: 27.88 kB / 1.119 GB, free: 0.9688 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.8205, allocations: 0 / 1.119 GB, free: 0.9688 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.8209, allocations: 35.88 kB / 1.119 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.711e-05/0.8209, allocations: 43.98 kB / 1.119 GB, free: 0.8906 MB / 0.7136 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.8211, allocations: 137.5 kB / 1.119 GB, free: 0.75 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003403/0.8214, allocations: 238.6 kB / 1.119 GB, free: 0.5117 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/0.8215, allocations: 27.62 kB / 1.119 GB, free: 496 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.966e-05/0.8215, allocations: 30.03 kB / 1.119 GB, free: 468 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.8215, allocations: 4 kB / 1.119 GB, free: 464 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8216, allocations: 0 / 1.119 GB, free: 464 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.8216, allocations: 0 / 1.119 GB, free: 464 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007236/0.8223, allocations: 0.5546 MB / 1.12 GB, free: 15.86 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.8223, allocations: 4 kB / 1.12 GB, free: 15.85 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.082e-05/0.8224, allocations: 17.23 kB / 1.12 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.8224, allocations: 4 kB / 1.12 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.8224, allocations: 15.97 kB / 1.12 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.8224, allocations: 0 / 1.12 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.8224, allocations: 0 / 1.12 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003874/0.8228, allocations: 341.3 kB / 1.12 GB, free: 15.47 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.823, allocations: 160.7 kB / 1.12 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.755e-05/0.8231, allocations: 15.95 kB / 1.12 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.8235, allocations: 31.97 kB / 1.12 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.8236, allocations: 7.984 kB / 1.12 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.8236, allocations: 43.97 kB / 1.12 GB, free: 15.2 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001569/0.8238, allocations: 194 kB / 1.121 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8238, allocations: 0 / 1.121 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003268/0.8241, allocations: 56.36 kB / 1.121 GB, free: 14.96 MB / 0.7292 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006735/0.8248, allocations: 0.8816 MB / 1.122 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004297/0.8252, allocations: 322.6 kB / 1.122 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8253, allocations: 0 / 1.122 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.8254, allocations: 64.36 kB / 1.122 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.8256, allocations: 20.44 kB / 1.122 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006719/0.8263, allocations: 331.4 kB / 1.122 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.8266, allocations: 0.7513 MB / 1.123 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.145e-05/0.8267, allocations: 12.77 kB / 1.123 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.847e-05/0.8267, allocations: 19.44 kB / 1.123 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of SimCode: time 2.5e-07/0.8267, allocations: 0 / 1.123 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02324/0.85, allocations: 4.529 MB / 1.127 GB, free: 8.008 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.8502, allocations: 131.1 kB / 1.128 GB, free: 7.816 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/2.497, allocations: 0 / 1.128 GB, free: 7.816 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)