Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9099/0.9099, allocations: 141.8 MB / 149.3 MB, free: 9.184 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 164.9 kB / 182.2 MB, free: 9.449 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 221.5 MB / 436.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 94.08 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001644/0.001644, allocations: 264.1 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.798e-05/2.795e-05, allocations: 4 kB / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4691/0.4692, allocations: 82.77 MB / 0.7575 GB, free: 31.93 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1503/0.6195, allocations: 109.8 MB / 0.8647 GB, free: 2.008 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.6198, allocations: 75.94 kB / 0.8647 GB, free: 1.934 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01365/0.6335, allocations: 4.46 MB / 0.8691 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6336, allocations: 0 / 0.8691 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.707e-05/0.6336, allocations: 4 kB / 0.8691 GB, free: 13.47 MB / 0.5417 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.0008478/0.6344, allocations: 0.5827 MB / 0.8697 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.6345, allocations: 12.02 kB / 0.8697 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.558e-05/0.6346, allocations: 35.62 kB / 0.8697 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.6349, allocations: 246.6 kB / 0.8699 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.635, allocations: 3.953 kB / 0.8699 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/0.6351, allocations: 16 kB / 0.87 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001241/0.6352, allocations: 47.98 kB / 0.87 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.6354, allocations: 137.5 kB / 0.8701 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.6354, allocations: 4 kB / 0.8701 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.6355, allocations: 4 kB / 0.8701 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.6355, allocations: 0 / 0.8701 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003535/0.6358, allocations: 305.8 kB / 0.8704 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.6361, allocations: 114.7 kB / 0.8705 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.889e-05/0.6362, allocations: 52.84 kB / 0.8706 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.6362, allocations: 4 kB / 0.8706 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003717/0.6366, allocations: 217.7 kB / 0.8708 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.363e-06/0.6366, allocations: 0 / 0.8708 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0004125/0.637, allocations: 209.1 kB / 0.871 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.6371, allocations: 63.39 kB / 0.8711 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.6373, allocations: 238.3 kB / 0.8713 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.6374, allocations: 33.7 kB / 0.8713 GB, free: 10.97 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.791e-05/0.6374, allocations: 93.44 kB / 0.8714 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.573e-05/0.6375, allocations: 39.52 kB / 0.8714 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.6375, allocations: 4 kB / 0.8715 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.6376, allocations: 322.8 kB / 0.8718 GB, free: 10.51 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.6378, allocations: 92.16 kB / 0.8718 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.638, allocations: 134.2 kB / 0.872 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.6382, allocations: 74.39 kB / 0.872 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.6382, allocations: 0 / 0.872 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005358/0.6387, allocations: 322.2 kB / 0.8724 GB, free: 9.875 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.829e-05/0.6388, allocations: 72.95 kB / 0.8724 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.6388, allocations: 7.953 kB / 0.8724 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.6388, allocations: 0 / 0.8724 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.639, allocations: 40.09 kB / 0.8725 GB, free: 9.746 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.639, allocations: 1.25 kB / 0.8725 GB, free: 9.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.6394, allocations: 43.88 kB / 0.8725 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.563e-05/0.6395, allocations: 47.98 kB / 0.8726 GB, free: 9.656 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$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 (28): * Single equations (assignments): 26 * 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.0001496/0.6396, allocations: 143.9 kB / 0.8727 GB, free: 9.508 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000322/0.6399, allocations: 205.2 kB / 0.8729 GB, free: 9.301 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.64, allocations: 27.67 kB / 0.8729 GB, free: 9.273 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.287e-05/0.6401, allocations: 30.03 kB / 0.8729 GB, free: 9.242 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.6401, allocations: 0 / 0.8729 GB, free: 9.242 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.6401, allocations: 0 / 0.8729 GB, free: 9.242 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.6401, allocations: 0 / 0.8729 GB, free: 9.242 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006532/0.6407, allocations: 0.5276 MB / 0.8735 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6408, allocations: 0 / 0.8735 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-05/0.6408, allocations: 4 kB / 0.8735 GB, free: 8.668 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.6408, allocations: 8 kB / 0.8735 GB, free: 8.66 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.6409, allocations: 15.97 kB / 0.8735 GB, free: 8.645 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.6409, allocations: 0 / 0.8735 GB, free: 8.645 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.6409, allocations: 3.938 kB / 0.8735 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.6412, allocations: 304.8 kB / 0.8738 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.6414, allocations: 152.7 kB / 0.8739 GB, free: 8.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.349e-05/0.6414, allocations: 8 kB / 0.8739 GB, free: 8.152 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.6416, allocations: 15.98 kB / 0.874 GB, free: 8.137 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.204e-05/0.6417, allocations: 15.98 kB / 0.874 GB, free: 8.121 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.109e-05/0.6417, allocations: 27.98 kB / 0.874 GB, free: 8.094 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001597/0.6419, allocations: 194 kB / 0.8742 GB, free: 7.902 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6419, allocations: 0 / 0.8742 GB, free: 7.902 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003195/0.6422, allocations: 48 kB / 0.8742 GB, free: 7.855 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * 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.0006459/0.6429, allocations: 0.8624 MB / 0.8751 GB, free: 6.969 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004575/0.6433, allocations: 328 kB / 0.8754 GB, free: 6.625 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.6433, allocations: 3.938 kB / 0.8754 GB, free: 6.621 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.6434, allocations: 63.97 kB / 0.8754 GB, free: 6.559 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.6437, allocations: 20.88 kB / 0.8755 GB, free: 6.535 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007304/0.6445, allocations: 331 kB / 0.8758 GB, free: 6.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.6448, allocations: 0.7551 MB / 0.8765 GB, free: 5.395 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001334/0.6449, allocations: 37.2 kB / 0.8766 GB, free: 5.359 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.6451, allocations: 47.41 kB / 0.8766 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of SimCode: time 2.6e-07/0.6451, allocations: 0 / 0.8766 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02408/0.6691, allocations: 4.991 MB / 0.8815 GB, free: 348 kB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002364/0.6694, allocations: 146.2 kB / 0.8816 GB, free: 148 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.355, allocations: 2.391 kB / 0.8816 GB, free: 148 kB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)