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.009145/0.009145, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002195/0.002195, allocations: 202.7 kB / 16.68 MB, free: 5.934 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8912/0.8912, allocations: 135.6 MB / 426.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001884, allocations: 65.8 kB / 0.5857 GB, free: 21.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.1722, allocations: 81.02 MB / 0.6648 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002797/0.1751, allocations: 1.48 MB / 0.6663 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001031/0.1761, allocations: 417.4 kB / 0.6667 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.89e-05/0.1762, allocations: 0 / 0.6667 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.803e-05/0.1763, allocations: 7.875 kB / 0.6667 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.1764, allocations: 28.22 kB / 0.6667 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007049/0.1771, allocations: 242.1 kB / 0.6669 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003994/0.1775, allocations: 319.5 kB / 0.6672 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.128e-05/0.1776, allocations: 8 kB / 0.6672 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.1779, allocations: 191.7 kB / 0.6674 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.1781, allocations: 108.1 kB / 0.6675 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.912e-05/0.1782, allocations: 16 kB / 0.6675 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.685e-05/0.1783, allocations: 24 kB / 0.6676 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.1784, allocations: 75.78 kB / 0.6676 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.1786, allocations: 123.3 kB / 0.6678 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.1789, allocations: 283.2 kB / 0.668 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1789, allocations: 0 / 0.668 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1789, allocations: 3.938 kB / 0.668 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.281e-06/0.179, allocations: 0 / 0.668 GB, free: 2.496 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.001277/0.1802, allocations: 0.7038 MB / 0.6687 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/0.1803, allocations: 17.11 kB / 0.6687 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.142e-05/0.1804, allocations: 34.75 kB / 0.6688 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.854e-05/0.1805, allocations: 40.73 kB / 0.6688 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.1808, allocations: 263.8 kB / 0.6691 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/0.1808, allocations: 12.11 kB / 0.6691 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.762e-05/0.1809, allocations: 20 kB / 0.6691 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.1812, allocations: 145.1 kB / 0.6692 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1812, allocations: 3.938 kB / 0.6692 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.1812, allocations: 4 kB / 0.6692 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1813, allocations: 7.938 kB / 0.6692 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.1814, allocations: 47.97 kB / 0.6693 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003802/0.1818, allocations: 317.4 kB / 0.6696 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.1821, allocations: 138.6 kB / 0.6697 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.1822, allocations: 52.84 kB / 0.6698 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.1823, allocations: 3.984 kB / 0.6698 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004916/0.1828, allocations: 211.8 kB / 0.67 GB, free: 312 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.864e-06/0.1828, allocations: 0 / 0.67 GB, free: 312 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.000636/0.1834, allocations: 279.1 kB / 0.6702 GB, free: 28 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.116e-05/0.1835, allocations: 63.41 kB / 0.6703 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.1839, allocations: 290.9 kB / 0.6706 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.274e-05/0.1839, allocations: 41.69 kB / 0.6706 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.197e-05/0.184, allocations: 89.14 kB / 0.6707 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.488e-05/0.1841, allocations: 47.67 kB / 0.6708 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.1843, allocations: 105.8 kB / 0.6709 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1844, allocations: 322.8 kB / 0.6712 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.1846, allocations: 92.17 kB / 0.6712 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002559/0.1849, allocations: 156.7 kB / 0.6714 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003478/0.1853, allocations: 251 kB / 0.6716 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1853, allocations: 0 / 0.6716 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007201/0.186, allocations: 407.2 kB / 0.672 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.424e-05/0.1861, allocations: 71.39 kB / 0.6721 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.1861, allocations: 0 / 0.6721 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1861, allocations: 4.188 kB / 0.6721 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.1863, allocations: 35.91 kB / 0.6721 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.1863, allocations: 4 kB / 0.6721 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.1868, allocations: 55.91 kB / 0.6722 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.932e-05/0.1869, allocations: 47.98 kB / 0.6722 GB, free: 13.86 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.0002218/0.1871, allocations: 181.7 kB / 0.6724 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.1872, allocations: 35.75 kB / 0.6724 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.891e-05/0.1873, allocations: 30.25 kB / 0.6725 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1873, allocations: 4 kB / 0.6725 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1873, allocations: 3.984 kB / 0.6725 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1873, allocations: 0 / 0.6725 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000879/0.1882, allocations: 0.5606 MB / 0.673 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1882, allocations: 0 / 0.673 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.498e-05/0.1882, allocations: 11.98 kB / 0.673 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1882, allocations: 0 / 0.673 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.1883, allocations: 19.98 kB / 0.6731 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.1883, allocations: 0 / 0.6731 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1883, allocations: 0 / 0.6731 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004754/0.1888, allocations: 336.5 kB / 0.6734 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002461/0.189, allocations: 152.9 kB / 0.6735 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/0.1891, allocations: 8 kB / 0.6735 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.1893, allocations: 11.98 kB / 0.6735 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.1894, allocations: 11.98 kB / 0.6736 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.1894, allocations: 35.98 kB / 0.6736 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002025/0.1896, allocations: 209.9 kB / 0.6738 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1896, allocations: 0 / 0.6738 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003038/0.1899, allocations: 48 kB / 0.6738 GB, free: 12.12 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.0007994/0.1908, allocations: 0.8763 MB / 0.6747 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005628/0.1913, allocations: 346.6 kB / 0.675 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1913, allocations: 0 / 0.675 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.1915, allocations: 79.89 kB / 0.6751 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.1918, allocations: 25.5 kB / 0.6751 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.195, allocations: 2.393 MB / 0.6775 GB, free: 8.223 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.1954, allocations: 0.7435 MB / 0.6782 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001207/0.1955, allocations: 33.44 kB / 0.6782 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.1956, allocations: 43.41 kB / 0.6783 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of SimCode: time 6.11e-07/0.1956, allocations: 4 kB / 0.6783 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02744/0.2231, allocations: 5.294 MB / 0.6834 GB, free: 2.168 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.9/8.123, allocations: 10.73 kB / 0.6834 GB, free: 2.16 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)