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.001184/0.001184, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7633/0.7633, allocations: 132.2 MB / 422.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002277/0.002277, allocations: 64 kB / 0.5019 GB, free: 3.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4155, allocations: 80.19 MB / 0.5802 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002132/0.4177, allocations: 1.477 MB / 0.5816 GB, free: 3.543 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007857/0.4185, allocations: 427.9 kB / 0.582 GB, free: 3.266 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.163e-05/0.4185, allocations: 4.844 kB / 0.582 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.465e-05/0.4186, allocations: 5.906 kB / 0.582 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.175e-05/0.4187, allocations: 23.52 kB / 0.5821 GB, free: 3.246 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005583/0.4192, allocations: 243.9 kB / 0.5823 GB, free: 3.129 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002907/0.4195, allocations: 318.1 kB / 0.5826 GB, free: 3.004 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.993e-05/0.4196, allocations: 13.05 kB / 0.5826 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.4198, allocations: 183.1 kB / 0.5828 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.42, allocations: 106.7 kB / 0.5829 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.947e-05/0.4201, allocations: 18.38 kB / 0.5829 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.795e-05/0.4202, allocations: 18.88 kB / 0.5829 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.552e-05/0.4203, allocations: 81.75 kB / 0.583 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001404/0.4204, allocations: 122.9 kB / 0.5831 GB, free: 2.805 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002796/0.4207, allocations: 294 kB / 0.5834 GB, free: 2.691 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.4207, allocations: 0 / 0.5834 GB, free: 2.691 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4207, allocations: 0 / 0.5834 GB, free: 2.691 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.4207, allocations: 0.8438 kB / 0.5834 GB, free: 2.691 MB / 430.1 MB 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.0009551/0.4217, allocations: 0.6917 MB / 0.5841 GB, free: 2.094 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.4217, allocations: 12.88 kB / 0.5841 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.025e-05/0.4218, allocations: 44.53 kB / 0.5841 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.391e-05/0.4218, allocations: 31.8 kB / 0.5842 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.4221, allocations: 258.4 kB / 0.5844 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.4221, allocations: 16.97 kB / 0.5844 GB, free: 1.785 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.609e-05/0.4222, allocations: 19.75 kB / 0.5844 GB, free: 1.781 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.4224, allocations: 148.5 kB / 0.5846 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.4225, allocations: 2.031 kB / 0.5846 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.477e-05/0.4225, allocations: 0.6562 kB / 0.5846 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4225, allocations: 1.75 kB / 0.5846 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.4226, allocations: 49.39 kB / 0.5846 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002827/0.4229, allocations: 320.8 kB / 0.5849 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.4232, allocations: 132.1 kB / 0.5851 GB, free: 1.395 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.4233, allocations: 60.94 kB / 0.5851 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.4234, allocations: 5.656 kB / 0.5851 GB, free: 1.367 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004243/0.4238, allocations: 212.8 kB / 0.5853 GB, free: 1.285 MB / 430.1 MB Notification: Performance of pre-optimization done (n=18): time 1.773e-06/0.4238, allocations: 3.938 kB / 0.5853 GB, free: 1.281 MB / 430.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006357/0.4244, allocations: 277.6 kB / 0.5856 GB, free: 1.18 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.4245, allocations: 61.72 kB / 0.5857 GB, free: 1.113 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.4248, allocations: 287.3 kB / 0.5859 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.784e-05/0.4248, allocations: 41.91 kB / 0.586 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.566e-05/0.4249, allocations: 87.91 kB / 0.5861 GB, free: 0.832 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.438e-05/0.4249, allocations: 50.91 kB / 0.5861 GB, free: 0.793 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.4251, allocations: 104 kB / 0.5862 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.634e-05/0.4252, allocations: 320.9 kB / 0.5865 GB, free: 440 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.4254, allocations: 94.98 kB / 0.5866 GB, free: 412 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/0.4256, allocations: 148.9 kB / 0.5867 GB, free: 320 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.426, allocations: 247.7 kB / 0.587 GB, free: 128 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.426, allocations: 1.156 kB / 0.587 GB, free: 128 kB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007355/0.4267, allocations: 417.3 kB / 0.5874 GB, free: 15.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.253e-05/0.4268, allocations: 74.14 kB / 0.5874 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4268, allocations: 2.922 kB / 0.5875 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.4268, allocations: 2.719 kB / 0.5875 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.427, allocations: 35.52 kB / 0.5875 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.427, allocations: 2.625 kB / 0.5875 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005269/0.4276, allocations: 61.25 kB / 0.5875 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.95e-05/0.4277, allocations: 50.23 kB / 0.5876 GB, free: 15.84 MB / 446.1 MB 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.000365/0.428, allocations: 178.3 kB / 0.5878 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-05/0.4281, allocations: 36.64 kB / 0.5878 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.384e-05/0.4282, allocations: 27.55 kB / 0.5878 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4282, allocations: 3.766 kB / 0.5878 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.4282, allocations: 0 / 0.5878 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4282, allocations: 0.6562 kB / 0.5878 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008684/0.4291, allocations: 0.5555 MB / 0.5884 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.4291, allocations: 4 kB / 0.5884 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.716e-05/0.4291, allocations: 8.891 kB / 0.5884 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4291, allocations: 1.906 kB / 0.5884 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.4292, allocations: 18.97 kB / 0.5884 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.4292, allocations: 0.7188 kB / 0.5884 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4292, allocations: 0.6562 kB / 0.5884 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004601/0.4297, allocations: 324.1 kB / 0.5887 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.4299, allocations: 155.4 kB / 0.5889 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.266e-05/0.4299, allocations: 9.656 kB / 0.5889 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.4301, allocations: 13.56 kB / 0.5889 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.191e-05/0.4302, allocations: 18.33 kB / 0.5889 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-05/0.4303, allocations: 33.06 kB / 0.5889 GB, free: 14.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002091/0.4305, allocations: 212.2 kB / 0.5891 GB, free: 14.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4305, allocations: 0 / 0.5891 GB, free: 14.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003335/0.4308, allocations: 47.91 kB / 0.5892 GB, free: 14.82 MB / 446.1 MB 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.0009098/0.4318, allocations: 0.8755 MB / 0.59 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006546/0.4324, allocations: 352.2 kB / 0.5904 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4324, allocations: 0 / 0.5904 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.4326, allocations: 73.53 kB / 0.5904 GB, free: 13.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.433, allocations: 27.41 kB / 0.5905 GB, free: 13.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003143/0.4361, allocations: 2.387 MB / 0.5928 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.4366, allocations: 0.7448 MB / 0.5935 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001513/0.4368, allocations: 34.09 kB / 0.5936 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.4369, allocations: 51.33 kB / 0.5936 GB, free: 11.38 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4369, allocations: 0 / 0.5936 GB, free: 11.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.4612, allocations: 5.272 MB / 0.5988 GB, free: 9.227 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/8.003, allocations: 6.062 kB / 0.5988 GB, free: 9.223 MB / 446.1 MB (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)