Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_IDEAS_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.005917/0.005917, allocations: 102.8 kB / 15.73 MB, free: 5.992 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.001295/0.001295, allocations: 193.2 kB / 16.67 MB, free: 5.914 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7949/0.7949, allocations: 135.1 MB / 425.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 69.22 kB / 0.5851 GB, free: 21.87 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1617, allocations: 80.92 MB / 0.6641 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002422/0.1642, allocations: 1.48 MB / 0.6656 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008776/0.1651, allocations: 419.4 kB / 0.666 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.745e-05/0.1652, allocations: 0 / 0.666 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.305e-05/0.1653, allocations: 11.86 kB / 0.666 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.69e-05/0.1654, allocations: 24.22 kB / 0.666 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006726/0.1661, allocations: 238.9 kB / 0.6662 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003644/0.1664, allocations: 315.5 kB / 0.6665 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.368e-05/0.1665, allocations: 12 kB / 0.6665 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.1668, allocations: 195.6 kB / 0.6667 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.167, allocations: 116.1 kB / 0.6668 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.916e-05/0.1671, allocations: 16 kB / 0.6669 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.802e-05/0.1671, allocations: 20 kB / 0.6669 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1672, allocations: 79.72 kB / 0.6669 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.1674, allocations: 119.4 kB / 0.6671 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002904/0.1677, allocations: 274.6 kB / 0.6673 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1677, allocations: 0 / 0.6673 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1677, allocations: 0 / 0.6673 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.1677, allocations: 0 / 0.6673 GB, free: 3.055 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.001158/0.1689, allocations: 0.7041 MB / 0.668 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.1689, allocations: 9.109 kB / 0.668 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.456e-05/0.169, allocations: 38.75 kB / 0.6681 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.591e-05/0.1691, allocations: 32.64 kB / 0.6681 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.1693, allocations: 259.5 kB / 0.6683 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.1694, allocations: 24.09 kB / 0.6684 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.1694, allocations: 16 kB / 0.6684 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.1697, allocations: 149.5 kB / 0.6685 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.1697, allocations: 0 / 0.6685 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/0.1698, allocations: 0 / 0.6685 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1698, allocations: 3.938 kB / 0.6685 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.1699, allocations: 47.97 kB / 0.6686 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003173/0.1702, allocations: 313.3 kB / 0.6689 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.1705, allocations: 134.7 kB / 0.669 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.1707, allocations: 61.09 kB / 0.669 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1707, allocations: 4 kB / 0.6691 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.1712, allocations: 227.6 kB / 0.6693 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.1712, allocations: 0 / 0.6693 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005595/0.1718, allocations: 270.9 kB / 0.6695 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.1718, allocations: 59.41 kB / 0.6696 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.1721, allocations: 283 kB / 0.6699 GB, free: 236 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.1721, allocations: 45.69 kB / 0.6699 GB, free: 184 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.1722, allocations: 93.05 kB / 0.67 GB, free: 88 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.643e-05/0.1722, allocations: 39.55 kB / 0.67 GB, free: 48 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.1724, allocations: 109.6 kB / 0.6701 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1725, allocations: 322.8 kB / 0.6704 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.1727, allocations: 100.1 kB / 0.6705 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.173, allocations: 144.7 kB / 0.6707 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.1733, allocations: 242.6 kB / 0.6709 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1733, allocations: 4 kB / 0.6709 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006494/0.174, allocations: 412.7 kB / 0.6713 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.219e-05/0.174, allocations: 71.39 kB / 0.6714 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1741, allocations: 3.984 kB / 0.6714 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1741, allocations: 4 kB / 0.6714 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.1743, allocations: 31.91 kB / 0.6714 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1743, allocations: 4 kB / 0.6714 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004667/0.1747, allocations: 55.89 kB / 0.6715 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.189e-05/0.1748, allocations: 55.98 kB / 0.6715 GB, free: 14.42 MB / 0.5137 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 (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,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.175, allocations: 173.7 kB / 0.6717 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.415e-05/0.1751, allocations: 31.56 kB / 0.6717 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.817e-05/0.1751, allocations: 34.25 kB / 0.6717 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1751, allocations: 0 / 0.6717 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1751, allocations: 4 kB / 0.6717 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.1751, allocations: 3.938 kB / 0.6718 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007742/0.1759, allocations: 0.5662 MB / 0.6723 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1759, allocations: 0 / 0.6723 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.718e-05/0.176, allocations: 11.98 kB / 0.6723 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.176, allocations: 0 / 0.6723 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.176, allocations: 11.98 kB / 0.6723 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.176, allocations: 0 / 0.6723 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.176, allocations: 0 / 0.6723 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004267/0.1765, allocations: 340.7 kB / 0.6727 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.1766, allocations: 148.7 kB / 0.6728 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.1767, allocations: 12 kB / 0.6728 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.1769, allocations: 15.98 kB / 0.6728 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.177, allocations: 15.92 kB / 0.6728 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.731e-05/0.177, allocations: 27.98 kB / 0.6729 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001779/0.1772, allocations: 213.9 kB / 0.6731 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1772, allocations: 0 / 0.6731 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003634/0.1776, allocations: 44 kB / 0.6731 GB, free: 12.68 MB / 0.5137 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) * Number of clocked states: 0 () * 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 (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.0007205/0.1783, allocations: 0.8779 MB / 0.674 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005463/0.1789, allocations: 340.6 kB / 0.6743 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1789, allocations: 0 / 0.6743 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.179, allocations: 71.91 kB / 0.6744 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.1794, allocations: 22.75 kB / 0.6744 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.1825, allocations: 2.395 MB / 0.6767 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.1828, allocations: 0.7474 MB / 0.6775 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001177/0.1829, allocations: 29.44 kB / 0.6775 GB, free: 8.004 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.1831, allocations: 51.41 kB / 0.6775 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of SimCode: time 1.793e-06/0.1831, allocations: 0 / 0.6775 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02631/0.2094, allocations: 5.305 MB / 0.6827 GB, free: 2.734 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/7.72, allocations: 0 / 0.6827 GB, free: 2.734 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)