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.001775/0.001774, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.002334/0.002334, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.407/2.407, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.268/1.268, allocations: 132.2 MB / 423.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008148/0.000815, allocations: 8 kB / 0.5033 GB, free: 4.156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9287/0.9295, allocations: 81.57 MB / 0.583 GB, free: 3.984 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002622/0.9322, allocations: 1.177 MB / 0.5841 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.9337, allocations: 385.6 kB / 0.5845 GB, free: 2.887 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.876e-05/0.9338, allocations: 3.938 kB / 0.5845 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 5.726e-05/0.9339, allocations: 8.391 kB / 0.5845 GB, free: 2.879 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.934, allocations: 17.92 kB / 0.5845 GB, free: 2.871 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.9352, allocations: 211.3 kB / 0.5847 GB, free: 2.773 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004048/0.9356, allocations: 151.4 kB / 0.5848 GB, free: 2.707 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.343e-05/0.9357, allocations: 16.64 kB / 0.5849 GB, free: 2.695 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004539/0.9362, allocations: 162 kB / 0.585 GB, free: 2.648 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004057/0.9366, allocations: 124.3 kB / 0.5851 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.362e-05/0.9367, allocations: 9.5 kB / 0.5851 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.258e-05/0.9368, allocations: 9.281 kB / 0.5851 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001934/0.937, allocations: 78.61 kB / 0.5852 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.9371, allocations: 65.52 kB / 0.5853 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004329/0.9376, allocations: 206 kB / 0.5855 GB, free: 2.496 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.9376, allocations: 0 / 0.5855 GB, free: 2.496 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.237e-06/0.9376, allocations: 1.125 kB / 0.5855 GB, free: 2.496 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.9376, allocations: 4 kB / 0.5855 GB, free: 2.492 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.001522/0.9392, allocations: 0.6216 MB / 0.5861 GB, free: 1.906 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.612e-05/0.9392, allocations: 8.719 kB / 0.5861 GB, free: 1.906 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.404e-05/0.9393, allocations: 39.41 kB / 0.5861 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.9395, allocations: 34.48 kB / 0.5862 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004788/0.94, allocations: 249.6 kB / 0.5864 GB, free: 1.617 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.992e-05/0.9401, allocations: 17.88 kB / 0.5864 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.9402, allocations: 19.5 kB / 0.5864 GB, free: 1.605 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005402/0.9407, allocations: 148.5 kB / 0.5866 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.9408, allocations: 0 / 0.5866 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.069e-05/0.9408, allocations: 1.906 kB / 0.5866 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.9408, allocations: 6.234 kB / 0.5866 GB, free: 1.543 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.9411, allocations: 47.06 kB / 0.5866 GB, free: 1.531 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006801/0.9418, allocations: 311.9 kB / 0.5869 GB, free: 1.289 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.9423, allocations: 139 kB / 0.5871 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.9423, allocations: 3.5 kB / 0.5871 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000783/0.9431, allocations: 216 kB / 0.5873 GB, free: 1.133 MB / 430.1 MB Notification: Performance of pre-optimization done (n=18): time 2.675e-06/0.9431, allocations: 0 / 0.5873 GB, free: 1.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=18): time 0.001051/0.9442, allocations: 268.8 kB / 0.5875 GB, free: 1.035 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.9443, allocations: 58.16 kB / 0.5876 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005598/0.9448, allocations: 289.7 kB / 0.5879 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.672e-05/0.9449, allocations: 36.89 kB / 0.5879 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.592e-05/0.945, allocations: 92.61 kB / 0.588 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.659e-05/0.9451, allocations: 46.34 kB / 0.588 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.912e-05/0.9452, allocations: 12.84 kB / 0.588 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.358e-05/0.9453, allocations: 329.7 kB / 0.5884 GB, free: 332 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004026/0.9457, allocations: 89.8 kB / 0.5884 GB, free: 304 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/0.9462, allocations: 143.9 kB / 0.5886 GB, free: 216 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.9466, allocations: 155.8 kB / 0.5887 GB, free: 104 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.9466, allocations: 0.5 kB / 0.5887 GB, free: 104 kB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001376/0.948, allocations: 420.7 kB / 0.5891 GB, free: 15.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/0.9482, allocations: 71.81 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.9482, allocations: 7.438 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/0.9482, allocations: 6.938 kB / 0.5892 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003089/0.9486, allocations: 26.67 kB / 0.5892 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/0.9486, allocations: 3.594 kB / 0.5892 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009207/0.9495, allocations: 64.62 kB / 0.5893 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.9497, allocations: 58.59 kB / 0.5894 GB, free: 15.81 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004758/0.9502, allocations: 176.9 kB / 0.5895 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.9505, allocations: 24.98 kB / 0.5896 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001162/0.9506, allocations: 31.67 kB / 0.5896 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.9506, allocations: 7.078 kB / 0.5896 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.9507, allocations: 0 / 0.5896 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.547e-06/0.9507, allocations: 1.844 kB / 0.5896 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.9523, allocations: 0.5678 MB / 0.5902 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.9523, allocations: 0 / 0.5902 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.706e-05/0.9524, allocations: 8.516 kB / 0.5902 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.9524, allocations: 2.031 kB / 0.5902 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.9524, allocations: 10.09 kB / 0.5902 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.9525, allocations: 1.984 kB / 0.5902 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.9525, allocations: 0 / 0.5902 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007882/0.9533, allocations: 328.5 kB / 0.5905 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.9536, allocations: 158.2 kB / 0.5906 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.9537, allocations: 10.61 kB / 0.5906 GB, free: 14.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.9541, allocations: 15.31 kB / 0.5907 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.9542, allocations: 18.62 kB / 0.5907 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.942e-05/0.9543, allocations: 28.47 kB / 0.5907 GB, free: 14.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004165/0.9547, allocations: 206.5 kB / 0.5909 GB, free: 14.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.9547, allocations: 0 / 0.5909 GB, free: 14.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007771/0.9555, allocations: 55.83 kB / 0.591 GB, free: 14.79 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001717/0.9572, allocations: 0.864 MB / 0.5918 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.9588, allocations: 346.9 kB / 0.5921 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.9588, allocations: 0 / 0.5921 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.9592, allocations: 68.56 kB / 0.5922 GB, free: 13.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00064/0.9598, allocations: 23.52 kB / 0.5922 GB, free: 13.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002672/0.9625, allocations: 1.602 MB / 0.5938 GB, free: 12.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.9632, allocations: 0.7464 MB / 0.5945 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002692/0.9635, allocations: 38.69 kB / 0.5945 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002481/0.9638, allocations: 47.27 kB / 0.5946 GB, free: 11.62 MB / 446.1 MB Notification: Performance of SimCode: time 2.836e-06/0.9638, allocations: 4 kB / 0.5946 GB, free: 11.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03089/0.9947, allocations: 4.964 MB / 0.5994 GB, free: 9.879 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000334/0.9951, allocations: 161 kB / 0.5996 GB, free: 9.645 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.998/3.993, allocations: 0 / 0.5996 GB, free: 9.645 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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) Environment - environmentSimulation: