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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001408/0.001409, allocations: 189.7 kB / 16.25 MB, free: 6.625 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.31/1.31, allocations: 222.9 MB / 239.9 MB, free: 4.488 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00208/0.002081, allocations: 280.3 kB / 290.3 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9301/0.9301, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 108.2 kB / 0.5948 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.204, allocations: 86.97 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.003161/0.2072, allocations: 1.542 MB / 0.6812 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.2082, allocations: 421.6 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.933e-05/0.2083, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.2085, allocations: 3.938 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.2086, allocations: 28.75 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007499/0.2094, allocations: 228.7 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004446/0.2098, allocations: 327.9 kB / 0.6822 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.57e-05/0.2099, allocations: 16.25 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000451/0.2104, allocations: 238.3 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003245/0.2107, allocations: 134.5 kB / 0.6826 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.592e-05/0.2108, allocations: 20 kB / 0.6826 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.2109, allocations: 20 kB / 0.6826 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.211, allocations: 87.69 kB / 0.6827 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.2112, allocations: 135.4 kB / 0.6828 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000466/0.2117, allocations: 299 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.2117, allocations: 0 / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.2117, allocations: 0.7812 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.2118, allocations: 4 kB / 0.6831 GB, free: 13.51 MB / 494.1 MB 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.001627/0.2134, allocations: 0.7397 MB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.2135, allocations: 8.031 kB / 0.6838 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.765e-05/0.2136, allocations: 43.08 kB / 0.6839 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.2137, allocations: 31.62 kB / 0.6839 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000425/0.2142, allocations: 255.3 kB / 0.6841 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.411e-05/0.2142, allocations: 12 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.2143, allocations: 25.05 kB / 0.6842 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.2153, allocations: 209.3 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.2153, allocations: 0 / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.2154, allocations: 0 / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.2154, allocations: 0 / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007182/0.2161, allocations: 99.91 kB / 0.6845 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003977/0.2165, allocations: 321.3 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.2175, allocations: 170.5 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007215/0.2183, allocations: 108.8 kB / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.2183, allocations: 0 / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.2194, allocations: 224.8 kB / 0.6853 GB, free: 11.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 2.074e-06/0.2194, allocations: 3.938 kB / 0.6853 GB, free: 11.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002426/0.2218, allocations: 445 kB / 0.6857 GB, free: 10.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.2219, allocations: 63.41 kB / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.2222, allocations: 291 kB / 0.686 GB, free: 10.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.657e-05/0.2223, allocations: 37.7 kB / 0.6861 GB, free: 10.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.021e-05/0.2224, allocations: 93.05 kB / 0.6862 GB, free: 10.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.913e-05/0.2225, allocations: 35.53 kB / 0.6862 GB, free: 10.11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.2226, allocations: 105.4 kB / 0.6863 GB, free: 9.996 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2228, allocations: 318.8 kB / 0.6866 GB, free: 9.676 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.223, allocations: 87.88 kB / 0.6867 GB, free: 9.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.2232, allocations: 136 kB / 0.6868 GB, free: 9.438 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.2236, allocations: 242.5 kB / 0.687 GB, free: 9.168 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2236, allocations: 3.938 kB / 0.687 GB, free: 9.164 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006716/0.2243, allocations: 394.3 kB / 0.6874 GB, free: 8.762 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.2244, allocations: 75.38 kB / 0.6875 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.2244, allocations: 0 / 0.6875 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.2244, allocations: 8.125 kB / 0.6875 GB, free: 8.668 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.2246, allocations: 35.92 kB / 0.6875 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.2246, allocations: 0 / 0.6875 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004788/0.2251, allocations: 59.8 kB / 0.6876 GB, free: 8.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.376e-05/0.2252, allocations: 35.98 kB / 0.6876 GB, free: 8.539 MB / 494.1 MB 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.0001941/0.2254, allocations: 178.4 kB / 0.6878 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.905e-05/0.2254, allocations: 31.66 kB / 0.6878 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.477e-05/0.2255, allocations: 26.3 kB / 0.6879 GB, free: 8.297 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2255, allocations: 4 kB / 0.6879 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2255, allocations: 0 / 0.6879 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2255, allocations: 0 / 0.6879 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002006/0.2275, allocations: 0.6952 MB / 0.6885 GB, free: 7.543 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.2275, allocations: 3.984 kB / 0.6885 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.356e-05/0.2276, allocations: 4 kB / 0.6885 GB, free: 7.535 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2276, allocations: 0 / 0.6885 GB, free: 7.535 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.2276, allocations: 15.97 kB / 0.6886 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.2276, allocations: 4 kB / 0.6886 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2277, allocations: 0 / 0.6886 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.2293, allocations: 442.9 kB / 0.689 GB, free: 7.066 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.2295, allocations: 160.7 kB / 0.6891 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.627e-05/0.2295, allocations: 15.94 kB / 0.6892 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.23, allocations: 31.97 kB / 0.6892 GB, free: 6.844 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.387e-05/0.23, allocations: 15.92 kB / 0.6892 GB, free: 6.828 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-05/0.2301, allocations: 39.97 kB / 0.6892 GB, free: 6.789 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.2303, allocations: 213.9 kB / 0.6894 GB, free: 6.586 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2303, allocations: 3.938 kB / 0.6894 GB, free: 6.582 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00031/0.2306, allocations: 48 kB / 0.6895 GB, free: 6.535 MB / 494.1 MB 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.001896/0.2325, allocations: 1.001 MB / 0.6905 GB, free: 5.508 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.2336, allocations: 386.9 kB / 0.6908 GB, free: 5.105 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2336, allocations: 0 / 0.6908 GB, free: 5.105 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000711/0.2344, allocations: 109.6 kB / 0.6909 GB, free: 5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.2347, allocations: 26.58 kB / 0.691 GB, free: 4.977 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.2383, allocations: 2.435 MB / 0.6933 GB, free: 2.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.2387, allocations: 0.7357 MB / 0.6941 GB, free: 1.648 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.08e-05/0.2387, allocations: 17.23 kB / 0.6941 GB, free: 1.633 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.668e-05/0.2388, allocations: 23.42 kB / 0.6941 GB, free: 1.609 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.2388, allocations: 0 / 0.6941 GB, free: 1.609 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.2547, allocations: 4.818 MB / 0.6988 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/0.2549, allocations: 212.2 kB / 0.699 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.009, allocations: 0 / 0.699 GB, free: 12.66 MB / 0.4981 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/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)