Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009582/0.0009584, allocations: 86.25 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008439/0.0008437, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.684/2.684, allocations: 409.4 MB / 0.684 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003289/0.0003289, allocations: 12 kB / 0.8378 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7165/0.7168, allocations: 146.8 MB / 0.9811 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001768/0.7186, allocations: 1.19 MB / 0.9823 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008777/0.7195, allocations: 415.1 kB / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.885e-05/0.7196, allocations: 0 / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.544e-05/0.7197, allocations: 11.92 kB / 0.9827 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.662e-05/0.7198, allocations: 11.92 kB / 0.9827 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005981/0.7204, allocations: 214.7 kB / 0.9829 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.7207, allocations: 255.5 kB / 0.9832 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.505e-05/0.7207, allocations: 7.984 kB / 0.9832 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003523/0.7211, allocations: 231.6 kB / 0.9834 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.7213, allocations: 131.7 kB / 0.9835 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.7214, allocations: 12 kB / 0.9835 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.455e-05/0.7214, allocations: 8 kB / 0.9835 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.7215, allocations: 87.77 kB / 0.9836 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.001e-05/0.7216, allocations: 69.58 kB / 0.9837 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.7219, allocations: 205.8 kB / 0.9839 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.7219, allocations: 4 kB / 0.9839 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7219, allocations: 0 / 0.9839 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.7219, allocations: 0 / 0.9839 GB, free: 3.418 MB / 0.7325 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.0009297/0.7228, allocations: 0.6565 MB / 0.9845 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.7229, allocations: 8.031 kB / 0.9845 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.862e-05/0.7229, allocations: 46.48 kB / 0.9846 GB, free: 2.613 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.344e-05/0.723, allocations: 31.62 kB / 0.9846 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.7233, allocations: 254.6 kB / 0.9848 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.046e-05/0.7234, allocations: 20 kB / 0.9849 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.7235, allocations: 19.94 kB / 0.9849 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000838/0.7243, allocations: 205.5 kB / 0.9851 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.7243, allocations: 0 / 0.9851 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.7243, allocations: 8 kB / 0.9851 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.7244, allocations: 7.984 kB / 0.9851 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006512/0.725, allocations: 111.8 kB / 0.9852 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003861/0.7254, allocations: 317.3 kB / 0.9855 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009018/0.7263, allocations: 190.5 kB / 0.9857 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006514/0.727, allocations: 112.8 kB / 0.9858 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.727, allocations: 4 kB / 0.9858 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000833/0.7279, allocations: 223.1 kB / 0.986 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 3.206e-06/0.7279, allocations: 4 kB / 0.986 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.002127/0.73, allocations: 478.5 kB / 0.9865 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.505e-05/0.7301, allocations: 63.39 kB / 0.9865 GB, free: 484 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.7303, allocations: 290.9 kB / 0.9868 GB, free: 180 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.7304, allocations: 37.7 kB / 0.9868 GB, free: 136 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.204e-05/0.7305, allocations: 89.14 kB / 0.9869 GB, free: 44 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/0.7305, allocations: 39.53 kB / 0.987 GB, free: 4 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.383e-05/0.7306, allocations: 8.078 kB / 0.987 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.7307, allocations: 326.8 kB / 0.9873 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.7309, allocations: 87.94 kB / 0.9874 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.7311, allocations: 143.4 kB / 0.9875 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.7314, allocations: 152.6 kB / 0.9876 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.7314, allocations: 0 / 0.9876 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006311/0.732, allocations: 397.6 kB / 0.988 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.29e-05/0.7321, allocations: 71.39 kB / 0.9881 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.7321, allocations: 0 / 0.9881 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.7321, allocations: 4 kB / 0.9881 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.7323, allocations: 27.86 kB / 0.9881 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.7323, allocations: 7.953 kB / 0.9881 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.7327, allocations: 63.98 kB / 0.9882 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-05/0.7328, allocations: 43.98 kB / 0.9882 GB, free: 14.62 MB / 0.7481 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001927/0.733, allocations: 169.7 kB / 0.9884 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.7331, allocations: 23.72 kB / 0.9884 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.73e-05/0.7331, allocations: 34.3 kB / 0.9885 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.7331, allocations: 0 / 0.9885 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.7331, allocations: 0 / 0.9885 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.7332, allocations: 7.938 kB / 0.9885 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00188/0.735, allocations: 0.7111 MB / 0.9892 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.7351, allocations: 0 / 0.9892 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.549e-05/0.7351, allocations: 8 kB / 0.9892 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.7351, allocations: 0 / 0.9892 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.697e-05/0.7352, allocations: 27.92 kB / 0.9892 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.7352, allocations: 0 / 0.9892 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7352, allocations: 0 / 0.9892 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.7367, allocations: 466.9 kB / 0.9896 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.7368, allocations: 160.7 kB / 0.9898 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.249e-05/0.7369, allocations: 8 kB / 0.9898 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.7373, allocations: 54.22 kB / 0.9898 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.7374, allocations: 11.98 kB / 0.9899 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.955e-05/0.7374, allocations: 35.98 kB / 0.9899 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001932/0.7376, allocations: 209.9 kB / 0.9901 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7376, allocations: 0 / 0.9901 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003237/0.738, allocations: 48 kB / 0.9901 GB, free: 12.58 MB / 0.7481 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 (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.001811/0.7398, allocations: 1.012 MB / 0.9911 GB, free: 11.55 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.7408, allocations: 401.4 kB / 0.9915 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.7408, allocations: 0 / 0.9915 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006451/0.7415, allocations: 120.3 kB / 0.9916 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.7418, allocations: 28.53 kB / 0.9917 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.7443, allocations: 1.183 MB / 0.9928 GB, free: 9.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.7446, allocations: 0.7439 MB / 0.9935 GB, free: 8.961 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.324e-05/0.7447, allocations: 13.08 kB / 0.9935 GB, free: 8.949 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.787e-05/0.7447, allocations: 23.42 kB / 0.9936 GB, free: 8.926 MB / 0.7481 GB Notification: Performance of SimCode: time 3.21e-07/0.7447, allocations: 0 / 0.9936 GB, free: 8.926 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.7609, allocations: 4.557 MB / 0.998 GB, free: 4.52 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001863/0.7612, allocations: 183.3 kB / 0.9982 GB, free: 4.281 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.684, allocations: 3.938 kB / 0.9982 GB, free: 4.277 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat does not exist to compare? outputFormat=mat