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.007278/0.007278, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001886/0.001886, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8759/0.8759, allocations: 132.2 MB / 422.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002117/0.002117, allocations: 66.86 kB / 0.5808 GB, free: 1.125 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1887, allocations: 80.2 MB / 0.6592 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.00317/0.1919, allocations: 1.475 MB / 0.6606 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001254/0.1932, allocations: 428 kB / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.349e-05/0.1933, allocations: 0 / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.1934, allocations: 19.86 kB / 0.661 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.1935, allocations: 16.23 kB / 0.661 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000729/0.1943, allocations: 255 kB / 0.6613 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000408/0.1947, allocations: 311.5 kB / 0.6616 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.199e-05/0.1947, allocations: 4 kB / 0.6616 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003/0.195, allocations: 191.7 kB / 0.6618 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.1953, allocations: 109.8 kB / 0.6619 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.509e-05/0.1954, allocations: 16 kB / 0.6619 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.59e-05/0.1955, allocations: 20 kB / 0.6619 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.1956, allocations: 75.78 kB / 0.662 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.1958, allocations: 131.3 kB / 0.6621 GB, free: 11 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003982/0.1962, allocations: 287.2 kB / 0.6624 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.1962, allocations: 0 / 0.6624 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.625e-06/0.1962, allocations: 0 / 0.6624 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.296e-06/0.1962, allocations: 0 / 0.6624 GB, free: 10.72 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.001399/0.1976, allocations: 0.7037 MB / 0.6631 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1977, allocations: 8.031 kB / 0.6631 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.903e-05/0.1978, allocations: 42.73 kB / 0.6631 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.321e-05/0.1979, allocations: 36.8 kB / 0.6631 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.1982, allocations: 275.7 kB / 0.6634 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.413e-05/0.1982, allocations: 12.12 kB / 0.6634 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.756e-05/0.1983, allocations: 23.98 kB / 0.6634 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003123/0.1986, allocations: 145.5 kB / 0.6636 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1986, allocations: 0 / 0.6636 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.1987, allocations: 0 / 0.6636 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.1987, allocations: 0 / 0.6636 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001458/0.1988, allocations: 51.97 kB / 0.6636 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003952/0.1992, allocations: 309.4 kB / 0.6639 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.1996, allocations: 126.7 kB / 0.664 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.1997, allocations: 60.83 kB / 0.6641 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.1997, allocations: 0 / 0.6641 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005024/0.2002, allocations: 227.6 kB / 0.6643 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 2.084e-06/0.2003, allocations: 0 / 0.6643 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006652/0.2009, allocations: 267.5 kB / 0.6646 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.201, allocations: 59.39 kB / 0.6646 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003205/0.2013, allocations: 298.9 kB / 0.6649 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.094e-05/0.2014, allocations: 37.7 kB / 0.665 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.608e-05/0.2015, allocations: 97.06 kB / 0.665 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.283e-05/0.2015, allocations: 47.67 kB / 0.6651 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.2017, allocations: 105.8 kB / 0.6652 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.2019, allocations: 322.8 kB / 0.6655 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.2021, allocations: 92.17 kB / 0.6656 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002714/0.2024, allocations: 142.4 kB / 0.6657 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.2028, allocations: 248 kB / 0.666 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2028, allocations: 7.938 kB / 0.666 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000739/0.2036, allocations: 404.7 kB / 0.6664 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.934e-05/0.2037, allocations: 79.38 kB / 0.6664 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.2037, allocations: 3.984 kB / 0.6664 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.2037, allocations: 4 kB / 0.6664 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.2039, allocations: 23.92 kB / 0.6665 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.2039, allocations: 4.188 kB / 0.6665 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004886/0.2044, allocations: 63.89 kB / 0.6665 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.04e-05/0.2045, allocations: 51.98 kB / 0.6666 GB, free: 6.074 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.0002183/0.2047, allocations: 174.3 kB / 0.6667 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-05/0.2048, allocations: 31.75 kB / 0.6668 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.603e-05/0.2048, allocations: 30.25 kB / 0.6668 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2049, allocations: 4 kB / 0.6668 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2049, allocations: 4 kB / 0.6668 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.2049, allocations: 3.984 kB / 0.6668 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008552/0.2057, allocations: 0.5684 MB / 0.6674 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2057, allocations: 0 / 0.6674 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.2058, allocations: 8 kB / 0.6674 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2058, allocations: 0 / 0.6674 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.2058, allocations: 19.97 kB / 0.6674 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2058, allocations: 0 / 0.6674 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2059, allocations: 0 / 0.6674 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004666/0.2063, allocations: 333.2 kB / 0.6677 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.2065, allocations: 148.9 kB / 0.6679 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.2066, allocations: 12 kB / 0.6679 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.2068, allocations: 11.98 kB / 0.6679 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.387e-05/0.2069, allocations: 19.97 kB / 0.6679 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.471e-05/0.2069, allocations: 27.98 kB / 0.6679 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002134/0.2071, allocations: 213.9 kB / 0.6681 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2071, allocations: 0 / 0.6681 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003095/0.2075, allocations: 44 kB / 0.6682 GB, free: 4.352 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.0008391/0.2083, allocations: 0.8734 MB / 0.669 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006199/0.2089, allocations: 342.9 kB / 0.6693 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2089, allocations: 3.938 kB / 0.6694 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.2091, allocations: 71.91 kB / 0.6694 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.2095, allocations: 24.86 kB / 0.6694 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.2128, allocations: 2.4 MB / 0.6718 GB, free: 472 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.2133, allocations: 0.7396 MB / 0.6725 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001278/0.2134, allocations: 41.42 kB / 0.6726 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.2135, allocations: 43.41 kB / 0.6726 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of SimCode: time 3.9e-07/0.2135, allocations: 0 / 0.6726 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.2426, allocations: 5.298 MB / 0.6778 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.397, allocations: 14.02 kB / 0.6778 GB, free: 10.45 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)