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.006773/0.006773, allocations: 104.6 kB / 15.74 MB, free: 6.484 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.001511/0.001511, allocations: 189.1 kB / 16.67 MB, free: 6.379 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.276/1.276, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002221/0.002221, allocations: 279.1 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9018/0.9018, allocations: 169.2 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 95.86 kB / 0.6809 GB, free: 52 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1683, allocations: 86.97 MB / 0.7659 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002507/0.1709, allocations: 1.485 MB / 0.7673 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009138/0.1718, allocations: 427.3 kB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.869e-05/0.1719, allocations: 0 / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.417e-05/0.172, allocations: 7.875 kB / 0.7677 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.1721, allocations: 24.22 kB / 0.7678 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.1729, allocations: 247 kB / 0.768 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000397/0.1733, allocations: 327.5 kB / 0.7683 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.295e-05/0.1733, allocations: 16.27 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.1736, allocations: 191.7 kB / 0.7685 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.1739, allocations: 118.3 kB / 0.7686 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.626e-05/0.174, allocations: 16 kB / 0.7686 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.235e-05/0.174, allocations: 20 kB / 0.7686 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1741, allocations: 91.69 kB / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.1743, allocations: 123.4 kB / 0.7689 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003066/0.1746, allocations: 298.9 kB / 0.7691 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1746, allocations: 0 / 0.7691 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1746, allocations: 8 kB / 0.7691 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.1746, allocations: 0 / 0.7691 GB, free: 5.625 MB / 0.5606 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.001031/0.1757, allocations: 0.7345 MB / 0.7699 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1757, allocations: 8.031 kB / 0.7699 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.169e-05/0.1758, allocations: 38.73 kB / 0.7699 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.473e-05/0.1759, allocations: 28.66 kB / 0.7699 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.1762, allocations: 271.5 kB / 0.7702 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.1762, allocations: 16.12 kB / 0.7702 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.1763, allocations: 23.98 kB / 0.7702 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009204/0.1772, allocations: 205.4 kB / 0.7704 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1772, allocations: 0 / 0.7704 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.1773, allocations: 7.938 kB / 0.7704 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1773, allocations: 0 / 0.7704 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007228/0.178, allocations: 99.91 kB / 0.7705 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003984/0.1784, allocations: 317.3 kB / 0.7708 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009734/0.1794, allocations: 174.4 kB / 0.771 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000717/0.1801, allocations: 111.9 kB / 0.7711 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.1802, allocations: 0 / 0.7711 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009364/0.1811, allocations: 215.1 kB / 0.7713 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 3.516e-06/0.1811, allocations: 0 / 0.7713 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.002349/0.1835, allocations: 450.5 kB / 0.7717 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.1835, allocations: 59.41 kB / 0.7718 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.1838, allocations: 294.9 kB / 0.7721 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.1838, allocations: 33.7 kB / 0.7721 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.075e-05/0.1839, allocations: 93.14 kB / 0.7722 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.1839, allocations: 39.53 kB / 0.7722 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.1841, allocations: 97.39 kB / 0.7723 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1842, allocations: 326.8 kB / 0.7726 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.1844, allocations: 83.94 kB / 0.7727 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.1846, allocations: 145.4 kB / 0.7729 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.1849, allocations: 239.5 kB / 0.7731 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1849, allocations: 0 / 0.7731 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006278/0.1855, allocations: 384.6 kB / 0.7735 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.227e-05/0.1856, allocations: 79.58 kB / 0.7735 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1856, allocations: 4 kB / 0.7735 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1857, allocations: 4 kB / 0.7735 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.1858, allocations: 23.91 kB / 0.7736 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.1858, allocations: 4 kB / 0.7736 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.1863, allocations: 59.73 kB / 0.7736 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/0.1864, allocations: 39.98 kB / 0.7737 GB, free: 0.6562 MB / 0.5606 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 (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.0001615/0.1865, allocations: 174.3 kB / 0.7738 GB, free: 492 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.1866, allocations: 23.72 kB / 0.7738 GB, free: 468 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.208e-05/0.1866, allocations: 34.3 kB / 0.7739 GB, free: 436 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1866, allocations: 0 / 0.7739 GB, free: 436 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1867, allocations: 0 / 0.7739 GB, free: 436 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1867, allocations: 7.969 kB / 0.7739 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.336/0.5227, allocations: 0.685 MB / 0.7746 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/0.5228, allocations: 1.453 kB / 0.7746 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.304e-05/0.5228, allocations: 5.484 kB / 0.7746 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.5228, allocations: 2.906 kB / 0.7746 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.947e-05/0.5229, allocations: 15.8 kB / 0.7746 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.5229, allocations: 1.484 kB / 0.7746 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.5229, allocations: 0.6875 kB / 0.7746 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.5246, allocations: 456.4 kB / 0.775 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/0.5249, allocations: 159 kB / 0.7752 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.044e-05/0.5249, allocations: 15.48 kB / 0.7752 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004689/0.5254, allocations: 30.36 kB / 0.7752 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.5255, allocations: 16.89 kB / 0.7752 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-05/0.5255, allocations: 40.77 kB / 0.7753 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001921/0.5257, allocations: 213.1 kB / 0.7755 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5257, allocations: 1.156 kB / 0.7755 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003519/0.5261, allocations: 47.48 kB / 0.7755 GB, free: 14.57 MB / 0.5606 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 (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.001875/0.528, allocations: 0.9884 MB / 0.7765 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001124/0.5291, allocations: 381.4 kB / 0.7768 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5291, allocations: 0.9844 kB / 0.7769 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000756/0.5299, allocations: 118.5 kB / 0.777 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.5302, allocations: 25.95 kB / 0.777 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003063/0.5333, allocations: 2.359 MB / 0.7793 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/0.5335, allocations: 0.739 MB / 0.78 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.982e-05/0.5336, allocations: 14.56 kB / 0.78 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.424e-05/0.5336, allocations: 25.61 kB / 0.7801 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.5336, allocations: 1.422 kB / 0.7801 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.557, allocations: 4.938 MB / 0.7849 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.008/7.565, allocations: 6.875 kB / 0.7849 GB, free: 11 MB / 0.5606 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)