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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7678/0.7678, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 190.1 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 221.3 MB / 441.4 MB, free: 4.621 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 94.14 kB / 0.5124 GB, free: 24.14 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001879/0.001879, allocations: 282.4 kB / 0.5939 GB, free: 7.996 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.42e-05/4.45e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.19 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5243/0.5244, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.6566, allocations: 110.4 MB / 0.8722 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.6569, allocations: 75.52 kB / 0.8723 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01325/0.6702, allocations: 4.494 MB / 0.8767 GB, free: 9.574 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.142e-06/0.6702, allocations: 0 / 0.8767 GB, free: 9.574 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.421e-05/0.6702, allocations: 4 kB / 0.8767 GB, free: 9.57 MB / 0.5417 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.00085/0.6711, allocations: 0.5789 MB / 0.8772 GB, free: 8.922 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.6712, allocations: 8.031 kB / 0.8772 GB, free: 8.914 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.612e-05/0.6712, allocations: 42.56 kB / 0.8773 GB, free: 8.863 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.6713, allocations: 35.61 kB / 0.8773 GB, free: 8.828 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.6717, allocations: 254.6 kB / 0.8776 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.6717, allocations: 11.95 kB / 0.8776 GB, free: 8.527 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.475e-05/0.6718, allocations: 20 kB / 0.8776 GB, free: 8.508 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002674/0.6721, allocations: 141.5 kB / 0.8777 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.6721, allocations: 0 / 0.8777 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.6721, allocations: 0 / 0.8777 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.6721, allocations: 4 kB / 0.8777 GB, free: 8.359 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.6722, allocations: 43.98 kB / 0.8778 GB, free: 8.316 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003905/0.6726, allocations: 333.2 kB / 0.8781 GB, free: 7.941 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.6729, allocations: 137.4 kB / 0.8782 GB, free: 7.801 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.673, allocations: 52.84 kB / 0.8783 GB, free: 7.746 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.673, allocations: 4 kB / 0.8783 GB, free: 7.742 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003946/0.6734, allocations: 213.4 kB / 0.8785 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/0.6735, allocations: 0 / 0.8785 GB, free: 7.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0004626/0.6739, allocations: 226.4 kB / 0.8787 GB, free: 7.293 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.674, allocations: 59.39 kB / 0.8788 GB, free: 7.223 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.6743, allocations: 251.4 kB / 0.879 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.6743, allocations: 45.69 kB / 0.879 GB, free: 6.926 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.278e-05/0.6744, allocations: 89.14 kB / 0.8791 GB, free: 6.836 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.263e-05/0.6745, allocations: 39.52 kB / 0.8792 GB, free: 6.797 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.6745, allocations: 8 kB / 0.8792 GB, free: 6.789 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.6746, allocations: 318.8 kB / 0.8795 GB, free: 6.469 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.6749, allocations: 100.2 kB / 0.8796 GB, free: 6.367 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.6751, allocations: 154.4 kB / 0.8797 GB, free: 6.195 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.6754, allocations: 150.3 kB / 0.8799 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.6754, allocations: 0 / 0.8799 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006772/0.676, allocations: 423 kB / 0.8803 GB, free: 5.605 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.04e-05/0.6761, allocations: 75.38 kB / 0.8803 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.6761, allocations: 0 / 0.8803 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.6762, allocations: 4 kB / 0.8803 GB, free: 5.516 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.6763, allocations: 27.92 kB / 0.8804 GB, free: 5.488 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.6763, allocations: 4 kB / 0.8804 GB, free: 5.484 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003489/0.6767, allocations: 48.03 kB / 0.8804 GB, free: 5.438 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-05/0.6768, allocations: 55.92 kB / 0.8805 GB, free: 5.383 MB / 0.5417 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 ($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 () * 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.000127/0.6769, allocations: 140 kB / 0.8806 GB, free: 5.238 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.357e-05/0.677, allocations: 27.67 kB / 0.8806 GB, free: 5.211 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.093e-05/0.677, allocations: 30.03 kB / 0.8807 GB, free: 5.18 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.6771, allocations: 4 kB / 0.8807 GB, free: 5.176 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6771, allocations: 0 / 0.8807 GB, free: 5.176 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.6771, allocations: 3.984 kB / 0.8807 GB, free: 5.172 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000778/0.6779, allocations: 0.5658 MB / 0.8812 GB, free: 4.551 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.6779, allocations: 0 / 0.8812 GB, free: 4.551 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.34e-05/0.6779, allocations: 11.94 kB / 0.8812 GB, free: 4.539 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.6779, allocations: 0 / 0.8812 GB, free: 4.539 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.678, allocations: 11.98 kB / 0.8812 GB, free: 4.527 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.678, allocations: 0 / 0.8812 GB, free: 4.527 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.678, allocations: 0 / 0.8812 GB, free: 4.527 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003896/0.6784, allocations: 320.1 kB / 0.8815 GB, free: 4.199 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.6786, allocations: 156.7 kB / 0.8817 GB, free: 4.027 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.756e-05/0.6786, allocations: 8 kB / 0.8817 GB, free: 4.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.6788, allocations: 15.98 kB / 0.8817 GB, free: 4.004 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.6789, allocations: 11.98 kB / 0.8817 GB, free: 3.992 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.6789, allocations: 35.97 kB / 0.8818 GB, free: 3.957 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001873/0.6791, allocations: 203.1 kB / 0.882 GB, free: 3.758 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6791, allocations: 0 / 0.882 GB, free: 3.758 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002935/0.6794, allocations: 48.38 kB / 0.882 GB, free: 3.711 MB / 0.5417 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 (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) * 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.0007371/0.6802, allocations: 0.8795 MB / 0.8829 GB, free: 2.809 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005363/0.6807, allocations: 346.7 kB / 0.8832 GB, free: 2.445 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.6807, allocations: 0 / 0.8832 GB, free: 2.445 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.6809, allocations: 73.33 kB / 0.8833 GB, free: 2.375 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.6811, allocations: 21.25 kB / 0.8833 GB, free: 2.352 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000733/0.6818, allocations: 343.6 kB / 0.8836 GB, free: 1.977 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.6822, allocations: 0.7438 MB / 0.8843 GB, free: 1.207 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001389/0.6823, allocations: 37.2 kB / 0.8844 GB, free: 1.168 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.6825, allocations: 55.34 kB / 0.8844 GB, free: 1.113 MB / 0.5417 GB Notification: Performance of SimCode: time 4.81e-07/0.6825, allocations: 0 / 0.8844 GB, free: 1.113 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01748/0.7, allocations: 5.44 MB / 0.8897 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/0.7002, allocations: 159.9 kB / 0.8899 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.499, allocations: 1.547 kB / 0.8899 GB, free: 11.59 MB / 0.5573 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/linux/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)