Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_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.00564/0.00564, allocations: 98.3 kB / 15.73 MB, free: 6.012 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.001305/0.001305, allocations: 196.7 kB / 16.68 MB, free: 5.93 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002622/0.002622, allocations: 289 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.018/1.018, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002721/0.002721, allocations: 91.86 kB / 0.6809 GB, free: 7.504 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3942, allocations: 86.98 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.003359/0.3976, allocations: 1.476 MB / 0.7673 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001236/0.3989, allocations: 433 kB / 0.7677 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.399, allocations: 0 / 0.7677 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.3992, allocations: 11.86 kB / 0.7677 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.3994, allocations: 24.25 kB / 0.7678 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009432/0.4004, allocations: 249.9 kB / 0.768 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004538/0.4008, allocations: 335.5 kB / 0.7683 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.586e-05/0.4009, allocations: 7.984 kB / 0.7683 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.4012, allocations: 191.7 kB / 0.7685 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.4015, allocations: 116.1 kB / 0.7686 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 5.618e-05/0.4015, allocations: 16 kB / 0.7686 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.286e-05/0.4016, allocations: 24 kB / 0.7687 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.4017, allocations: 83.72 kB / 0.7687 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.4019, allocations: 127.4 kB / 0.7689 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.4023, allocations: 288 kB / 0.7691 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4024, allocations: 4 kB / 0.7691 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.484e-06/0.4024, allocations: 0 / 0.7691 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.4024, allocations: 0 / 0.7691 GB, free: 0.5234 MB / 0.5294 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.001286/0.4037, allocations: 0.7539 MB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.4037, allocations: 12.03 kB / 0.7699 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.879e-05/0.4038, allocations: 42.73 kB / 0.7699 GB, free: 15.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.95e-05/0.4039, allocations: 32.78 kB / 0.77 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.4042, allocations: 267.7 kB / 0.7702 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.201e-05/0.4043, allocations: 20.11 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.47e-05/0.4044, allocations: 16 kB / 0.7703 GB, free: 15.25 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009874/0.4054, allocations: 197.4 kB / 0.7704 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.4054, allocations: 4 kB / 0.7704 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.4054, allocations: 11.98 kB / 0.7705 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4054, allocations: 0 / 0.7705 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007803/0.4062, allocations: 91.92 kB / 0.7705 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/0.4068, allocations: 309.4 kB / 0.7708 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.4079, allocations: 182.4 kB / 0.771 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007703/0.4087, allocations: 105.2 kB / 0.7711 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.4087, allocations: 0 / 0.7711 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001092/0.4098, allocations: 226.3 kB / 0.7713 GB, free: 14.07 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 2.525e-06/0.4099, allocations: 0 / 0.7713 GB, free: 14.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.002659/0.4125, allocations: 441.2 kB / 0.7717 GB, free: 13.64 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.4126, allocations: 67.39 kB / 0.7718 GB, free: 13.56 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.413, allocations: 287 kB / 0.7721 GB, free: 13.27 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.738e-05/0.4131, allocations: 37.7 kB / 0.7721 GB, free: 13.23 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.534e-05/0.4132, allocations: 97.12 kB / 0.7722 GB, free: 13.13 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.4133, allocations: 39.64 kB / 0.7723 GB, free: 13.09 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.4134, allocations: 93.58 kB / 0.7723 GB, free: 13 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.4136, allocations: 326.8 kB / 0.7727 GB, free: 12.67 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002181/0.4138, allocations: 83.94 kB / 0.7727 GB, free: 12.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.4141, allocations: 134 kB / 0.7729 GB, free: 12.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.4145, allocations: 244 kB / 0.7731 GB, free: 12.16 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.4145, allocations: 0 / 0.7731 GB, free: 12.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007229/0.4152, allocations: 392.7 kB / 0.7735 GB, free: 11.76 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.142e-05/0.4153, allocations: 75.38 kB / 0.7735 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4153, allocations: 0 / 0.7735 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.4153, allocations: 4 kB / 0.7735 GB, free: 11.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.4155, allocations: 23.92 kB / 0.7736 GB, free: 11.65 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.4155, allocations: 4 kB / 0.7736 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.416, allocations: 60.03 kB / 0.7736 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-05/0.4161, allocations: 39.98 kB / 0.7737 GB, free: 11.55 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * 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.0002802/0.4164, allocations: 173.7 kB / 0.7738 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.861e-05/0.4165, allocations: 27.84 kB / 0.7739 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.341e-05/0.4165, allocations: 30.3 kB / 0.7739 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.4166, allocations: 3.984 kB / 0.7739 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.4166, allocations: 4 kB / 0.7739 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4166, allocations: 3.938 kB / 0.7739 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002255/0.4188, allocations: 0.6936 MB / 0.7746 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4189, allocations: 4 kB / 0.7746 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.142e-05/0.4189, allocations: 11.92 kB / 0.7746 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.4189, allocations: 4 kB / 0.7746 GB, free: 10.53 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.419, allocations: 11.98 kB / 0.7746 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.419, allocations: 3.984 kB / 0.7746 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.419, allocations: 0 / 0.7746 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.4207, allocations: 454.7 kB / 0.775 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.421, allocations: 164.8 kB / 0.7752 GB, free: 9.879 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.424e-05/0.421, allocations: 8 kB / 0.7752 GB, free: 9.871 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004996/0.4215, allocations: 31.97 kB / 0.7752 GB, free: 9.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.4216, allocations: 15.86 kB / 0.7753 GB, free: 9.824 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.925e-05/0.4217, allocations: 43.97 kB / 0.7753 GB, free: 9.781 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002276/0.4219, allocations: 213.9 kB / 0.7755 GB, free: 9.574 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/0.4219, allocations: 0 / 0.7755 GB, free: 9.574 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004468/0.4223, allocations: 48 kB / 0.7755 GB, free: 9.527 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$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.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.002086/0.4244, allocations: 0.9872 MB / 0.7765 GB, free: 8.512 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001224/0.4257, allocations: 382.8 kB / 0.7769 GB, free: 8.113 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4257, allocations: 0 / 0.7769 GB, free: 8.113 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008249/0.4265, allocations: 115.9 kB / 0.777 GB, free: 8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.427, allocations: 28.98 kB / 0.777 GB, free: 7.977 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003838/0.4308, allocations: 2.364 MB / 0.7793 GB, free: 5.484 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.4314, allocations: 0.7452 MB / 0.78 GB, free: 4.715 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.292e-05/0.4315, allocations: 9.234 kB / 0.7801 GB, free: 4.707 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.451e-05/0.4316, allocations: 27.42 kB / 0.7801 GB, free: 4.68 MB / 0.545 GB Notification: Performance of SimCode: time 7.21e-07/0.4316, allocations: 3.938 kB / 0.7801 GB, free: 4.676 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.4599, allocations: 4.831 MB / 0.7848 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.267/8.727, allocations: 18.02 kB / 0.7848 GB, free: 15.93 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)