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.005742/0.005743, allocations: 100.6 kB / 15.73 MB, free: 6.047 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.001299/0.001299, allocations: 195.3 kB / 16.68 MB, free: 5.969 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8016/0.8016, allocations: 135.1 MB / 425.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.53 kB / 0.5851 GB, free: 21.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1447, allocations: 80.93 MB / 0.6641 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002719/0.1475, allocations: 1.469 MB / 0.6656 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008943/0.1484, allocations: 431.3 kB / 0.666 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.371e-05/0.1485, allocations: 0 / 0.666 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.1486, allocations: 7.875 kB / 0.666 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.1487, allocations: 24.22 kB / 0.666 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007222/0.1495, allocations: 239 kB / 0.6662 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.1499, allocations: 315.5 kB / 0.6665 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.471e-05/0.1499, allocations: 15.98 kB / 0.6665 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002982/0.1502, allocations: 199.6 kB / 0.6667 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.1505, allocations: 112.1 kB / 0.6668 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.159e-05/0.1506, allocations: 19.94 kB / 0.6669 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.345e-05/0.1506, allocations: 20 kB / 0.6669 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.066e-05/0.1507, allocations: 75.72 kB / 0.6669 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1508, allocations: 119.4 kB / 0.6671 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.1511, allocations: 278.6 kB / 0.6673 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1512, allocations: 0 / 0.6673 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.243e-06/0.1512, allocations: 4 kB / 0.6673 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.1512, allocations: 0 / 0.6673 GB, free: 3.008 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.001169/0.1523, allocations: 0.7002 MB / 0.668 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1524, allocations: 9.109 kB / 0.668 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.389e-05/0.1524, allocations: 38.69 kB / 0.6681 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.37e-05/0.1525, allocations: 32.64 kB / 0.6681 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.1529, allocations: 259.6 kB / 0.6683 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.1529, allocations: 20.11 kB / 0.6684 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.141e-05/0.153, allocations: 20 kB / 0.6684 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.1532, allocations: 145.5 kB / 0.6685 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1533, allocations: 0 / 0.6685 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.1533, allocations: 0 / 0.6685 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1533, allocations: 0 / 0.6685 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.1534, allocations: 51.91 kB / 0.6686 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003243/0.1538, allocations: 309.3 kB / 0.6689 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.1541, allocations: 142.8 kB / 0.669 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.1542, allocations: 53.09 kB / 0.669 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.1542, allocations: 7.984 kB / 0.6691 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004159/0.1546, allocations: 227.6 kB / 0.6693 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.1546, allocations: 0 / 0.6693 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005686/0.1552, allocations: 274.8 kB / 0.6695 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.1553, allocations: 55.41 kB / 0.6696 GB, free: 488 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.1555, allocations: 287 kB / 0.6699 GB, free: 192 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.592e-05/0.1556, allocations: 41.69 kB / 0.6699 GB, free: 144 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.62e-05/0.1556, allocations: 97.05 kB / 0.67 GB, free: 44 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.134e-05/0.1557, allocations: 39.59 kB / 0.67 GB, free: 4 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1559, allocations: 109.6 kB / 0.6701 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.156, allocations: 326.8 kB / 0.6704 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.1562, allocations: 92.19 kB / 0.6705 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.1565, allocations: 140.7 kB / 0.6707 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.1568, allocations: 251.2 kB / 0.6709 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1568, allocations: 4 kB / 0.6709 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006706/0.1575, allocations: 410.2 kB / 0.6713 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.497e-05/0.1576, allocations: 75.39 kB / 0.6714 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1576, allocations: 0 / 0.6714 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.1576, allocations: 7.938 kB / 0.6714 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.1578, allocations: 27.91 kB / 0.6714 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.1578, allocations: 4 kB / 0.6714 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.1583, allocations: 63.98 kB / 0.6715 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.113e-05/0.1584, allocations: 51.98 kB / 0.6715 GB, free: 14.38 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.0001729/0.1586, allocations: 173.7 kB / 0.6717 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.146e-05/0.1586, allocations: 31.56 kB / 0.6717 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.902e-05/0.1587, allocations: 30.25 kB / 0.6717 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1587, allocations: 0 / 0.6717 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.1587, allocations: 4 kB / 0.6718 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1587, allocations: 4 kB / 0.6718 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007956/0.1595, allocations: 0.5626 MB / 0.6723 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1595, allocations: 0 / 0.6723 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.626e-05/0.1596, allocations: 15.98 kB / 0.6723 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1596, allocations: 0 / 0.6723 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.1596, allocations: 11.98 kB / 0.6723 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1596, allocations: 0 / 0.6723 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1596, allocations: 0 / 0.6723 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004201/0.1601, allocations: 338.8 kB / 0.6727 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.1603, allocations: 152.7 kB / 0.6728 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.1603, allocations: 8 kB / 0.6728 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.1605, allocations: 11.98 kB / 0.6728 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.261e-05/0.1606, allocations: 15.98 kB / 0.6728 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.1606, allocations: 31.98 kB / 0.6729 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001734/0.1608, allocations: 209.9 kB / 0.6731 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1608, allocations: 0 / 0.6731 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003121/0.1611, allocations: 51.98 kB / 0.6731 GB, free: 12.64 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.0006938/0.1618, allocations: 0.8715 MB / 0.674 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005324/0.1624, allocations: 348.8 kB / 0.6743 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1624, allocations: 0 / 0.6743 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.1626, allocations: 68.34 kB / 0.6744 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.1629, allocations: 24.88 kB / 0.6744 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.1657, allocations: 2.393 MB / 0.6767 GB, free: 8.766 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.166, allocations: 0.7474 MB / 0.6775 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000113/0.1661, allocations: 37.36 kB / 0.6775 GB, free: 7.957 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.1662, allocations: 43.42 kB / 0.6775 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of SimCode: time 4.21e-07/0.1662, allocations: 0 / 0.6775 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0218/0.188, allocations: 5.401 MB / 0.6828 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.562/7.75, allocations: 5.562 kB / 0.6828 GB, free: 2.594 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)