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.0009018/0.000902, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005416/0.005416, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.342/1.342, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7837/0.7837, allocations: 132.3 MB / 423.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003074, allocations: 11.98 kB / 0.5041 GB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4457/0.4461, allocations: 81.57 MB / 0.5837 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001595/0.4477, allocations: 1.202 MB / 0.5849 GB, free: 3.148 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009661/0.4487, allocations: 444.9 kB / 0.5853 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.403e-05/0.4488, allocations: 3.938 kB / 0.5853 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.708e-05/0.4489, allocations: 2.859 kB / 0.5853 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.449, allocations: 26.25 kB / 0.5854 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005969/0.4496, allocations: 222.3 kB / 0.5856 GB, free: 2.734 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003416/0.4499, allocations: 289.6 kB / 0.5859 GB, free: 2.637 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.151e-05/0.45, allocations: 9.062 kB / 0.5859 GB, free: 2.633 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.4503, allocations: 210.5 kB / 0.5861 GB, free: 2.582 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000267/0.4506, allocations: 120.3 kB / 0.5862 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.451e-05/0.4507, allocations: 10 kB / 0.5862 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.115e-05/0.4507, allocations: 9.5 kB / 0.5862 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.4509, allocations: 76.28 kB / 0.5863 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.4511, allocations: 143.6 kB / 0.5864 GB, free: 2.426 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003905/0.4515, allocations: 276.9 kB / 0.5867 GB, free: 2.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4515, allocations: 0.9062 kB / 0.5867 GB, free: 2.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4515, allocations: 0 / 0.5867 GB, free: 2.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.4515, allocations: 0 / 0.5867 GB, free: 2.34 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.001078/0.4526, allocations: 0.628 MB / 0.5873 GB, free: 1.746 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.4527, allocations: 9.938 kB / 0.5873 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.006e-05/0.4527, allocations: 39.25 kB / 0.5873 GB, free: 1.703 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.32e-05/0.4528, allocations: 30.39 kB / 0.5874 GB, free: 1.691 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.4531, allocations: 257.7 kB / 0.5876 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.4532, allocations: 8.609 kB / 0.5876 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.138e-05/0.4532, allocations: 19.41 kB / 0.5876 GB, free: 1.449 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.4536, allocations: 145.7 kB / 0.5878 GB, free: 1.395 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.4536, allocations: 1.281 kB / 0.5878 GB, free: 1.395 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.4536, allocations: 4.938 kB / 0.5878 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4537, allocations: 10.47 kB / 0.5878 GB, free: 1.383 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001448/0.4538, allocations: 44.48 kB / 0.5878 GB, free: 1.371 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000396/0.4542, allocations: 316.5 kB / 0.5881 GB, free: 1.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.4545, allocations: 123.6 kB / 0.5882 GB, free: 1.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.4547, allocations: 61.75 kB / 0.5883 GB, free: 1.043 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.4547, allocations: 6.172 kB / 0.5883 GB, free: 1.039 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005029/0.4552, allocations: 227 kB / 0.5885 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of pre-optimization done (n=18): time 1.442e-06/0.4552, allocations: 0 / 0.5885 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006135/0.4559, allocations: 274.6 kB / 0.5888 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.4559, allocations: 60.98 kB / 0.5888 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003108/0.4562, allocations: 292.2 kB / 0.5891 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.4563, allocations: 37.44 kB / 0.5892 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.4563, allocations: 91.38 kB / 0.5892 GB, free: 0.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.877e-05/0.4564, allocations: 40.38 kB / 0.5893 GB, free: 484 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-05/0.4565, allocations: 36.83 kB / 0.5893 GB, free: 456 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.361e-05/0.4565, allocations: 325.8 kB / 0.5896 GB, free: 128 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.4568, allocations: 95.75 kB / 0.5897 GB, free: 96 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000267/0.457, allocations: 148.2 kB / 0.5899 GB, free: 4 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004166/0.4575, allocations: 252 kB / 0.5901 GB, free: 15.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.4575, allocations: 5.75 kB / 0.5901 GB, free: 15.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008131/0.4583, allocations: 404.6 kB / 0.5905 GB, free: 15.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.457e-05/0.4584, allocations: 77.42 kB / 0.5906 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.4584, allocations: 1.281 kB / 0.5906 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.4584, allocations: 16.02 kB / 0.5906 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.4586, allocations: 26.89 kB / 0.5906 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.4587, allocations: 2.547 kB / 0.5906 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005433/0.4592, allocations: 69.39 kB / 0.5907 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.753e-05/0.4593, allocations: 54.98 kB / 0.5907 GB, free: 15.53 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.0002193/0.4595, allocations: 177.1 kB / 0.5909 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.127e-05/0.4596, allocations: 28.66 kB / 0.5909 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.631e-05/0.4597, allocations: 32.45 kB / 0.591 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.4597, allocations: 1.781 kB / 0.591 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.4597, allocations: 1.156 kB / 0.591 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.4597, allocations: 0.7031 kB / 0.591 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009415/0.4606, allocations: 0.5587 MB / 0.5915 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4607, allocations: 1.344 kB / 0.5915 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.065e-05/0.4607, allocations: 12.2 kB / 0.5915 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.4607, allocations: 1.156 kB / 0.5915 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.4608, allocations: 12.67 kB / 0.5915 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4608, allocations: 0 / 0.5915 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4608, allocations: 0 / 0.5915 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005112/0.4613, allocations: 325.7 kB / 0.5918 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.4615, allocations: 167.1 kB / 0.592 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.4616, allocations: 9.188 kB / 0.592 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.4618, allocations: 12.25 kB / 0.592 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.925e-05/0.4619, allocations: 17.09 kB / 0.592 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.335e-05/0.4619, allocations: 28.83 kB / 0.5921 GB, free: 14.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.4622, allocations: 208.9 kB / 0.5923 GB, free: 14.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4622, allocations: 0 / 0.5923 GB, free: 14.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000354/0.4626, allocations: 48.64 kB / 0.5923 GB, free: 14.51 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.0008799/0.4635, allocations: 0.8714 MB / 0.5932 GB, free: 13.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000623/0.4641, allocations: 348.6 kB / 0.5935 GB, free: 13.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4641, allocations: 0 / 0.5935 GB, free: 13.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.4643, allocations: 73.92 kB / 0.5936 GB, free: 13.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.4646, allocations: 25.83 kB / 0.5936 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003363/0.468, allocations: 2.453 MB / 0.596 GB, free: 11.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.4683, allocations: 0.7421 MB / 0.5967 GB, free: 11.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001484/0.4685, allocations: 39.02 kB / 0.5968 GB, free: 11.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.4687, allocations: 42.8 kB / 0.5968 GB, free: 11.01 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.4687, allocations: 0 / 0.5968 GB, free: 11.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1629/0.6315, allocations: 5.018 MB / 0.6017 GB, free: 9.012 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002751/0.6319, allocations: 179.5 kB / 0.6019 GB, free: 8.758 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.012/2.644, allocations: 1.969 kB / 0.6019 GB, free: 8.758 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/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)