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.0009452/0.0009452, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001051/0.001051, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7472/0.7472, allocations: 132.3 MB / 423.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004096/0.0004097, allocations: 8.906 kB / 0.5035 GB, free: 4.137 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5034/0.5038, allocations: 81.57 MB / 0.5831 GB, free: 3.992 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001403/0.5052, allocations: 1.188 MB / 0.5843 GB, free: 3.121 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009/0.5061, allocations: 404.1 kB / 0.5847 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.5062, allocations: 3.875 kB / 0.5847 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.949e-05/0.5063, allocations: 5.594 kB / 0.5847 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 9.234e-05/0.5064, allocations: 19.03 kB / 0.5847 GB, free: 2.852 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005823/0.507, allocations: 207.3 kB / 0.5849 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.5073, allocations: 245.8 kB / 0.5851 GB, free: 2.656 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.221e-05/0.5073, allocations: 8.328 kB / 0.5852 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003721/0.5077, allocations: 220.2 kB / 0.5854 GB, free: 2.602 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.5079, allocations: 129.9 kB / 0.5855 GB, free: 2.57 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.948e-05/0.508, allocations: 13.59 kB / 0.5855 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.903e-05/0.5081, allocations: 9.156 kB / 0.5855 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.5082, allocations: 82.45 kB / 0.5856 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.136e-05/0.5083, allocations: 64.98 kB / 0.5856 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.5085, allocations: 207.7 kB / 0.5858 GB, free: 2.445 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.5085, allocations: 3.938 kB / 0.5859 GB, free: 2.441 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.5085, allocations: 4 kB / 0.5859 GB, free: 2.438 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.5085, allocations: 0 / 0.5859 GB, free: 2.438 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.000868/0.5094, allocations: 0.6176 MB / 0.5865 GB, free: 1.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.5095, allocations: 10.45 kB / 0.5865 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.116e-05/0.5095, allocations: 39.11 kB / 0.5865 GB, free: 1.812 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.966e-05/0.5096, allocations: 34.53 kB / 0.5865 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002466/0.5099, allocations: 249.9 kB / 0.5868 GB, free: 1.566 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.5099, allocations: 16.88 kB / 0.5868 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.775e-05/0.51, allocations: 17.08 kB / 0.5868 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.5103, allocations: 147.7 kB / 0.587 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.5103, allocations: 0 / 0.587 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.5103, allocations: 3.375 kB / 0.587 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.5103, allocations: 1.031 kB / 0.587 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.5105, allocations: 52.89 kB / 0.587 GB, free: 1.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003203/0.5108, allocations: 311.8 kB / 0.5873 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.5111, allocations: 131.3 kB / 0.5874 GB, free: 1.176 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.5112, allocations: 56.67 kB / 0.5875 GB, free: 1.152 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.5112, allocations: 2.031 kB / 0.5875 GB, free: 1.152 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004826/0.5117, allocations: 213.5 kB / 0.5877 GB, free: 1.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.5117, allocations: 0 / 0.5877 GB, free: 1.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005962/0.5123, allocations: 271.7 kB / 0.5879 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.5124, allocations: 61.67 kB / 0.588 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002942/0.5127, allocations: 289.8 kB / 0.5883 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.5127, allocations: 41.31 kB / 0.5883 GB, free: 0.707 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.5128, allocations: 95.58 kB / 0.5884 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.008e-05/0.5129, allocations: 47.17 kB / 0.5885 GB, free: 0.582 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.5129, allocations: 8.562 kB / 0.5885 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.009e-05/0.513, allocations: 322.2 kB / 0.5888 GB, free: 268 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.5132, allocations: 90.05 kB / 0.5889 GB, free: 240 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.5134, allocations: 147.4 kB / 0.589 GB, free: 148 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.5137, allocations: 157.8 kB / 0.5891 GB, free: 36 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.5137, allocations: 0.7812 kB / 0.5892 GB, free: 36 kB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007318/0.5144, allocations: 410.6 kB / 0.5895 GB, free: 15.85 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.896e-05/0.5145, allocations: 77.22 kB / 0.5896 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.5145, allocations: 2.219 kB / 0.5896 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.5145, allocations: 10.97 kB / 0.5896 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.5147, allocations: 30.77 kB / 0.5897 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.5147, allocations: 6.875 kB / 0.5897 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.5152, allocations: 73.34 kB / 0.5897 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.5153, allocations: 50.84 kB / 0.5898 GB, free: 15.75 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.0001897/0.5155, allocations: 182.8 kB / 0.59 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.074e-05/0.5156, allocations: 23.62 kB / 0.59 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.086e-05/0.5156, allocations: 28.48 kB / 0.59 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.5156, allocations: 2.5 kB / 0.59 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.5157, allocations: 0 / 0.59 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5157, allocations: 6 kB / 0.59 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00091/0.5166, allocations: 0.5585 MB / 0.5906 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.5166, allocations: 0.9375 kB / 0.5906 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.493e-05/0.5167, allocations: 7.188 kB / 0.5906 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.5167, allocations: 1.281 kB / 0.5906 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.509e-05/0.5167, allocations: 15.75 kB / 0.5906 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.5167, allocations: 1.094 kB / 0.5906 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5167, allocations: 3.953 kB / 0.5906 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004522/0.5172, allocations: 324.1 kB / 0.5909 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.5174, allocations: 151.5 kB / 0.591 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.57e-05/0.5174, allocations: 9.594 kB / 0.5911 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.5176, allocations: 15.22 kB / 0.5911 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.5177, allocations: 23.03 kB / 0.5911 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-05/0.5178, allocations: 32.7 kB / 0.5911 GB, free: 14.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002436/0.518, allocations: 206.9 kB / 0.5913 GB, free: 14.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.518, allocations: 4 kB / 0.5913 GB, free: 14.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000354/0.5184, allocations: 47.16 kB / 0.5914 GB, free: 14.73 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.0009492/0.5194, allocations: 0.8701 MB / 0.5922 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005959/0.52, allocations: 345.2 kB / 0.5925 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.52, allocations: 4.125 kB / 0.5925 GB, free: 13.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.5201, allocations: 71.95 kB / 0.5926 GB, free: 13.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.5205, allocations: 20.95 kB / 0.5926 GB, free: 13.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.5228, allocations: 1.162 MB / 0.5938 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.5234, allocations: 0.7409 MB / 0.5945 GB, free: 12.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.5236, allocations: 39.41 kB / 0.5945 GB, free: 12.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.5237, allocations: 46.14 kB / 0.5946 GB, free: 12.31 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5237, allocations: 4.5 kB / 0.5946 GB, free: 12.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01706/0.5408, allocations: 4.997 MB / 0.5995 GB, free: 10.48 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001522/0.541, allocations: 176.3 kB / 0.5996 GB, free: 10.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.343, allocations: 0 / 0.5996 GB, free: 10.23 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: