Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus.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.Validation.CalendarTimeMonthsPlus,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Time_Validation_CalendarTimeMonthsPlus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Time_Validation_CalendarTimeMonthsPlus",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.006166/0.006166, allocations: 97.41 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.001217/0.001217, allocations: 197 kB / 16.67 MB, free: 5.973 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.007/1.007, allocations: 135.1 MB / 425.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 0.5851 GB, free: 3.871 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4329/0.4343, allocations: 80.91 MB / 0.6641 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus): time 0.002293/0.4367, allocations: 1.489 MB / 0.6656 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009196/0.4376, allocations: 424.2 kB / 0.666 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.092e-05/0.4377, allocations: 1.344 kB / 0.666 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.4378, allocations: 3.938 kB / 0.666 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.4379, allocations: 23.72 kB / 0.666 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006181/0.4385, allocations: 242.3 kB / 0.6663 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002874/0.4388, allocations: 315.8 kB / 0.6666 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.4389, allocations: 9.062 kB / 0.6666 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.4391, allocations: 191.6 kB / 0.6667 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.4393, allocations: 116.1 kB / 0.6669 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.303e-05/0.4394, allocations: 17.66 kB / 0.6669 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.751e-05/0.4394, allocations: 18.81 kB / 0.6669 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.198e-05/0.4395, allocations: 80.97 kB / 0.667 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.4396, allocations: 119.2 kB / 0.6671 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.4399, allocations: 286.8 kB / 0.6674 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4399, allocations: 0 / 0.6674 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4399, allocations: 5.438 kB / 0.6674 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.112e-06/0.4399, allocations: 0 / 0.6674 GB, free: 4.926 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.001031/0.441, allocations: 0.6986 MB / 0.668 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.441, allocations: 9.438 kB / 0.6681 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.843e-05/0.4411, allocations: 37.31 kB / 0.6681 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.4412, allocations: 39.05 kB / 0.6681 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.4414, allocations: 259.3 kB / 0.6684 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.4415, allocations: 23.77 kB / 0.6684 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.205e-05/0.4416, allocations: 15.06 kB / 0.6684 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002688/0.4418, allocations: 154.7 kB / 0.6686 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.4418, allocations: 0 / 0.6686 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.4419, allocations: 5.547 kB / 0.6686 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4419, allocations: 1.438 kB / 0.6686 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.442, allocations: 45.81 kB / 0.6686 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002601/0.4423, allocations: 315.7 kB / 0.6689 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.4426, allocations: 142.4 kB / 0.669 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.4427, allocations: 53.78 kB / 0.6691 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.4427, allocations: 5.328 kB / 0.6691 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003866/0.4431, allocations: 210 kB / 0.6693 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.4431, allocations: 1.5 kB / 0.6693 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005459/0.4437, allocations: 279.5 kB / 0.6696 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.4437, allocations: 57.38 kB / 0.6696 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.4439, allocations: 289.9 kB / 0.6699 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.444, allocations: 44.78 kB / 0.6699 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.804e-05/0.444, allocations: 90.3 kB / 0.67 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.184e-05/0.4441, allocations: 49.83 kB / 0.6701 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.4442, allocations: 112.1 kB / 0.6702 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.945e-05/0.4443, allocations: 321.8 kB / 0.6705 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.4445, allocations: 91.25 kB / 0.6706 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.4447, allocations: 142.7 kB / 0.6707 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.445, allocations: 248 kB / 0.6709 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.445, allocations: 0 / 0.6709 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006589/0.4457, allocations: 410.5 kB / 0.6713 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.105e-05/0.4457, allocations: 75.23 kB / 0.6714 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.4457, allocations: 2.188 kB / 0.6714 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.4458, allocations: 2.375 kB / 0.6714 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.4459, allocations: 33.53 kB / 0.6714 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.446, allocations: 2.281 kB / 0.6714 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005111/0.4465, allocations: 59.72 kB / 0.6715 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-05/0.4466, allocations: 53.42 kB / 0.6716 GB, free: 1.594 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 (calTim.firstHourSampling,$PRE.calTim.firstHourSampling,calTim.firstDaySampling,$PRE.calTim.firstDaySampling,calTim.daySampleTrigger,$whenCondition1,calTim.hourSampleTrigger,$whenCondition2,calTim.epochLastMonth,$PRE.calTim.epochLastMonth,calTim.yearIndex,$PRE.calTim.yearIndex,calTim.daysSinceEpoch,$PRE.calTim.daysSinceEpoch,calTim.weekDay,$PRE.calTim.weekDay,calTim.hour,$PRE.calTim.hour,calTim.day,$PRE.calTim.day,calTim.month,$PRE.calTim.month,calTim.year,$PRE.calTim.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.0001456/0.4467, allocations: 169.7 kB / 0.6717 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.485e-05/0.4468, allocations: 36.38 kB / 0.6718 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.061e-05/0.4468, allocations: 32.19 kB / 0.6718 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4468, allocations: 1.188 kB / 0.6718 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4468, allocations: 5.094 kB / 0.6718 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.4468, allocations: 0 / 0.6718 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007036/0.4475, allocations: 0.5622 MB / 0.6723 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4476, allocations: 1.469 kB / 0.6723 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.354e-05/0.4476, allocations: 8.859 kB / 0.6723 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4476, allocations: 5.281 kB / 0.6724 GB, free: 0.9297 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.4476, allocations: 14.89 kB / 0.6724 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4477, allocations: 0 / 0.6724 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4477, allocations: 1.062 kB / 0.6724 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.448, allocations: 335.7 kB / 0.6727 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.4482, allocations: 155.7 kB / 0.6728 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.448e-05/0.4483, allocations: 7.438 kB / 0.6728 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.4485, allocations: 10.8 kB / 0.6729 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.4486, allocations: 15.86 kB / 0.6729 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.4486, allocations: 28.05 kB / 0.6729 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001575/0.4488, allocations: 209.4 kB / 0.6731 GB, free: 396 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4488, allocations: 4 kB / 0.6731 GB, free: 392 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003254/0.4491, allocations: 54.08 kB / 0.6732 GB, free: 380 kB / 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 (calTim.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.firstHourSampling,calTim.hour,calTim.yearIndex,calTim.epochLastMonth,calTim.month,calTim.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.0006993/0.4498, allocations: 0.8645 MB / 0.674 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005566/0.4504, allocations: 345.6 kB / 0.6743 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.4504, allocations: 4.125 kB / 0.6743 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.4505, allocations: 77.05 kB / 0.6744 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.4509, allocations: 21.78 kB / 0.6744 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.4538, allocations: 2.394 MB / 0.6768 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.4541, allocations: 0.7514 MB / 0.6775 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001236/0.4543, allocations: 39.14 kB / 0.6775 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.4544, allocations: 44.61 kB / 0.6776 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of SimCode: time 3e-07/0.4544, allocations: 0 / 0.6776 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.4763, allocations: 5.275 MB / 0.6827 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.334/8.81, allocations: 14.66 kB / 0.6827 GB, free: 9.961 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus_res.csv --start-time 172801 --stop-time 345601 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 69.12 IDEAS_dev_IDEAS_Utilities_Time_Validation_CalendarTimeMonthsPlus.fmu > IDEAS_dev_IDEAS.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe 2>&1)