Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.0007519/0.000752, allocations: 86.72 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.0007917/0.0007917, 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.357/1.357, allocations: 223.2 MB / 240 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.001/1.001, allocations: 143.4 MB / 434.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003485, allocations: 8 kB / 0.5161 GB, free: 11.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1857, allocations: 83.41 MB / 0.5975 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime): time 0.002325/0.1881, allocations: 1.178 MB / 0.5987 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1894, allocations: 420.6 kB / 0.5991 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.488e-05/0.1895, allocations: 0 / 0.5991 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.1896, allocations: 3.938 kB / 0.5991 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.1898, allocations: 23.84 kB / 0.5991 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009155/0.1907, allocations: 211.3 kB / 0.5993 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004506/0.1911, allocations: 255.5 kB / 0.5996 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.578e-05/0.1912, allocations: 15.92 kB / 0.5996 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005685/0.1918, allocations: 227.6 kB / 0.5998 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003874/0.1922, allocations: 131.7 kB / 0.5999 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.1923, allocations: 12 kB / 0.5999 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.723e-05/0.1924, allocations: 8 kB / 0.5999 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.1926, allocations: 83.77 kB / 0.6 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.1927, allocations: 73.58 kB / 0.6001 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003128/0.1931, allocations: 207.8 kB / 0.6003 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1931, allocations: 0 / 0.6003 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.535e-06/0.1931, allocations: 0 / 0.6003 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.472e-05/0.1931, allocations: 4 kB / 0.6003 GB, free: 4.863 MB / 0.4981 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.001305/0.1944, allocations: 0.6682 MB / 0.6009 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1945, allocations: 8.031 kB / 0.6009 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.837e-05/0.1946, allocations: 42.56 kB / 0.601 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.1947, allocations: 35.66 kB / 0.601 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004329/0.1952, allocations: 250.5 kB / 0.6013 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.919e-05/0.1952, allocations: 19.98 kB / 0.6013 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.221e-05/0.1953, allocations: 19.94 kB / 0.6013 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.1965, allocations: 213.4 kB / 0.6015 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.1966, allocations: 0 / 0.6015 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.1966, allocations: 4 kB / 0.6015 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1966, allocations: 8 kB / 0.6015 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009381/0.1976, allocations: 99.92 kB / 0.6016 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005367/0.1981, allocations: 321.3 kB / 0.6019 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.1994, allocations: 190.6 kB / 0.6021 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009395/0.2004, allocations: 120.7 kB / 0.6022 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.2004, allocations: 7.984 kB / 0.6022 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.2016, allocations: 219.1 kB / 0.6024 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 3.397e-06/0.2016, allocations: 0 / 0.6024 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16): time 0.003197/0.2048, allocations: 480.3 kB / 0.6029 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/0.2049, allocations: 59.39 kB / 0.6029 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004818/0.2054, allocations: 294.9 kB / 0.6032 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.2055, allocations: 41.64 kB / 0.6033 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2057, allocations: 93.12 kB / 0.6033 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.469e-05/0.2058, allocations: 39.53 kB / 0.6034 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-05/0.2058, allocations: 8 kB / 0.6034 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.206, allocations: 326.8 kB / 0.6037 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.2063, allocations: 79.95 kB / 0.6038 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003282/0.2066, allocations: 141.9 kB / 0.6039 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.207, allocations: 149.3 kB / 0.6041 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.207, allocations: 0 / 0.6041 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009398/0.208, allocations: 396.6 kB / 0.6044 GB, free: 304 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.827e-05/0.2081, allocations: 71.39 kB / 0.6045 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2081, allocations: 0 / 0.6045 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.2081, allocations: 4 kB / 0.6045 GB, free: 216 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.2083, allocations: 27.91 kB / 0.6045 GB, free: 188 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.2084, allocations: 4 kB / 0.6045 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006117/0.209, allocations: 64.05 kB / 0.6046 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.5e-05/0.2091, allocations: 39.98 kB / 0.6046 GB, free: 80 kB / 0.4981 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.3185/0.5276, allocations: 172.1 kB / 0.6048 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.205e-05/0.5277, allocations: 26.92 kB / 0.6048 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.032e-05/0.5278, allocations: 28.81 kB / 0.6049 GB, free: 40.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.5278, allocations: 2.469 kB / 0.6049 GB, free: 40.73 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.5278, allocations: 4.328 kB / 0.6049 GB, free: 40.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.5278, allocations: 3.625 kB / 0.6049 GB, free: 40.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.5298, allocations: 0.7033 MB / 0.6056 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.5298, allocations: 1.719 kB / 0.6056 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.885e-05/0.5299, allocations: 6.328 kB / 0.6056 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.5299, allocations: 3.562 kB / 0.6056 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.34e-05/0.5299, allocations: 23.16 kB / 0.6056 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.53, allocations: 0.5 kB / 0.6056 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.53, allocations: 4.594 kB / 0.6056 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.5313, allocations: 467.5 kB / 0.606 GB, free: 40.31 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.5315, allocations: 160.6 kB / 0.6062 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.059e-05/0.5316, allocations: 11.97 kB / 0.6062 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003955/0.532, allocations: 36.81 kB / 0.6062 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.532, allocations: 7.094 kB / 0.6062 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/0.5321, allocations: 45.95 kB / 0.6063 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001912/0.5323, allocations: 205.7 kB / 0.6065 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5323, allocations: 3.344 kB / 0.6065 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000356/0.5326, allocations: 54.33 kB / 0.6065 GB, free: 40.14 MB / 0.4981 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.00157/0.5342, allocations: 1.014 MB / 0.6075 GB, free: 39.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009561/0.5352, allocations: 391.8 kB / 0.6079 GB, free: 39.36 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5352, allocations: 0 / 0.6079 GB, free: 39.36 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006207/0.5358, allocations: 126.8 kB / 0.608 GB, free: 39.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.5362, allocations: 27.66 kB / 0.6081 GB, free: 39.36 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.5383, allocations: 1.188 MB / 0.6092 GB, free: 38.83 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.5385, allocations: 0.7407 MB / 0.6099 GB, free: 38.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.676e-05/0.5386, allocations: 10.39 kB / 0.6099 GB, free: 38.13 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.5386, allocations: 27.02 kB / 0.61 GB, free: 38.12 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.5386, allocations: 3.375 kB / 0.61 GB, free: 38.12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01481/0.5535, allocations: 4.574 MB / 0.6144 GB, free: 37.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.5537, allocations: 196.1 kB / 0.6146 GB, free: 37.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.336, allocations: 0 / 0.6146 GB, free: 37.43 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Time_Examples_CalendarTime.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe 2>&1) Environment - environmentSimulation: