Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_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.00723/0.00723, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001313/0.001313, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.441/1.441, 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/package.mo): time 0.8116/0.8116, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001198, allocations: 71.28 kB / 0.5808 GB, free: 24.2 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1543, allocations: 80.21 MB / 0.6591 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002562/0.1569, allocations: 1.475 MB / 0.6606 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008788/0.1578, allocations: 420.5 kB / 0.661 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.263e-05/0.1579, allocations: 4 kB / 0.661 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001003/0.158, allocations: 11.86 kB / 0.661 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.97e-05/0.1581, allocations: 24.23 kB / 0.661 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007314/0.1589, allocations: 245.8 kB / 0.6613 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000365/0.1592, allocations: 311.5 kB / 0.6616 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.255e-05/0.1593, allocations: 7.938 kB / 0.6616 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.1596, allocations: 195.7 kB / 0.6618 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.1598, allocations: 113.7 kB / 0.6619 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.097e-05/0.1599, allocations: 16 kB / 0.6619 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.036e-05/0.16, allocations: 20 kB / 0.6619 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.977e-05/0.1601, allocations: 83.7 kB / 0.662 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.1602, allocations: 119.4 kB / 0.6621 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.1605, allocations: 274.6 kB / 0.6624 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1605, allocations: 0 / 0.6624 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1605, allocations: 0 / 0.6624 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.899e-06/0.1606, allocations: 4 kB / 0.6624 GB, free: 7.508 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.001199/0.1618, allocations: 0.7001 MB / 0.663 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1618, allocations: 16.02 kB / 0.6631 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.007e-05/0.1619, allocations: 34.75 kB / 0.6631 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.679e-05/0.162, allocations: 32.66 kB / 0.6631 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.1623, allocations: 271.5 kB / 0.6634 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.1623, allocations: 8.125 kB / 0.6634 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.1624, allocations: 27.98 kB / 0.6634 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.1627, allocations: 148.8 kB / 0.6636 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1627, allocations: 0 / 0.6636 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.1627, allocations: 3.938 kB / 0.6636 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.1627, allocations: 4 kB / 0.6636 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001269/0.1629, allocations: 43.97 kB / 0.6636 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000332/0.1632, allocations: 313.3 kB / 0.6639 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002694/0.1635, allocations: 130.8 kB / 0.664 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.1636, allocations: 65.02 kB / 0.6641 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/0.1637, allocations: 4 kB / 0.6641 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004229/0.1641, allocations: 221.1 kB / 0.6643 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.492e-06/0.1641, allocations: 0 / 0.6643 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005677/0.1647, allocations: 271.3 kB / 0.6646 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.1647, allocations: 67.38 kB / 0.6646 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.165, allocations: 290.9 kB / 0.6649 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.1651, allocations: 37.7 kB / 0.6649 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.599e-05/0.1651, allocations: 93.12 kB / 0.665 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.05e-05/0.1652, allocations: 43.52 kB / 0.6651 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.1654, allocations: 101.7 kB / 0.6652 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1655, allocations: 322.8 kB / 0.6655 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.1657, allocations: 96.11 kB / 0.6656 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.1659, allocations: 146.4 kB / 0.6657 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.1663, allocations: 248 kB / 0.6659 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.1663, allocations: 0 / 0.6659 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006523/0.1669, allocations: 416.6 kB / 0.6663 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/0.167, allocations: 71.39 kB / 0.6664 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.167, allocations: 0 / 0.6664 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.167, allocations: 4 kB / 0.6664 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.1672, allocations: 31.91 kB / 0.6664 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1672, allocations: 4 kB / 0.6664 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005188/0.1678, allocations: 63.98 kB / 0.6665 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.929e-05/0.1678, allocations: 47.98 kB / 0.6666 GB, free: 2.863 MB / 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: 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.0001838/0.168, allocations: 174.6 kB / 0.6667 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/0.1681, allocations: 31.64 kB / 0.6668 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.558e-05/0.1681, allocations: 26.25 kB / 0.6668 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.1682, allocations: 4 kB / 0.6668 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1682, allocations: 4 kB / 0.6668 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1682, allocations: 0 / 0.6668 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007727/0.169, allocations: 0.5683 MB / 0.6673 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.169, allocations: 0 / 0.6673 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.575e-05/0.169, allocations: 11.98 kB / 0.6673 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.169, allocations: 0 / 0.6673 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.1691, allocations: 15.98 kB / 0.6674 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1691, allocations: 0 / 0.6674 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1691, allocations: 0 / 0.6674 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.1695, allocations: 324.8 kB / 0.6677 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.1696, allocations: 152.7 kB / 0.6678 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.725e-05/0.1697, allocations: 19.92 kB / 0.6678 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.1699, allocations: 11.98 kB / 0.6679 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.17, allocations: 11.98 kB / 0.6679 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.17, allocations: 31.98 kB / 0.6679 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001738/0.1702, allocations: 209.9 kB / 0.6681 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1702, allocations: 0 / 0.6681 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003115/0.1705, allocations: 48 kB / 0.6681 GB, free: 1.145 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: 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.0007499/0.1713, allocations: 0.8727 MB / 0.669 GB, free: 248 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005587/0.1719, allocations: 346.5 kB / 0.6693 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1719, allocations: 0 / 0.6693 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.172, allocations: 78.55 kB / 0.6694 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/0.1724, allocations: 29.25 kB / 0.6694 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.1753, allocations: 2.378 MB / 0.6717 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.1756, allocations: 0.7435 MB / 0.6725 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001106/0.1757, allocations: 33.42 kB / 0.6725 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.1758, allocations: 51.41 kB / 0.6726 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.1758, allocations: 0 / 0.6726 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02429/0.2001, allocations: 5.406 MB / 0.6778 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/8.048, allocations: 5.906 kB / 0.6778 GB, free: 7.125 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)