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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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: translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7284/0.7284, allocations: 140.1 MB / 156 MB, free: 5.164 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 178.9 kB / 188.5 MB, free: 15.82 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.4 MB / 426.3 MB, free: 8.453 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008919/0.0008918, allocations: 86.34 kB / 0.4945 GB, free: 8.391 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001587/0.001587, allocations: 273.2 kB / 0.5729 GB, free: 66.21 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005268/0.0005269, allocations: 16 kB / 0.662 GB, free: 6.809 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3615, allocations: 79.29 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.497, allocations: 109 MB / 0.8459 GB, free: 1.223 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.4973, allocations: 79.94 kB / 0.846 GB, free: 1.145 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.01332/0.5106, allocations: 4.466 MB / 0.8503 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5107, allocations: 0 / 0.8503 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.989e-05/0.5107, allocations: 4 kB / 0.8503 GB, free: 12.68 MB / 0.5261 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.001054/0.5118, allocations: 0.6221 MB / 0.8509 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.5118, allocations: 8.031 kB / 0.8509 GB, free: 11.97 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.512, allocations: 36.59 kB / 0.851 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.5124, allocations: 255.7 kB / 0.8512 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.5124, allocations: 12.38 kB / 0.8512 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.837e-05/0.5125, allocations: 20.36 kB / 0.8513 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.5128, allocations: 150 kB / 0.8514 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.5128, allocations: 192 / 0.8514 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.5129, allocations: 7.938 kB / 0.8514 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.5129, allocations: 0 / 0.8514 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.513, allocations: 51.91 kB / 0.8515 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004117/0.5134, allocations: 333.2 kB / 0.8518 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.5137, allocations: 122.7 kB / 0.8519 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.5138, allocations: 54.09 kB / 0.8519 GB, free: 10.85 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.5139, allocations: 11.92 kB / 0.852 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004033/0.5143, allocations: 208.2 kB / 0.8521 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=18): time 2.084e-06/0.5143, allocations: 0 / 0.8521 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=18): time 0.0005853/0.5149, allocations: 278.2 kB / 0.8524 GB, free: 10.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.5149, allocations: 67.39 kB / 0.8525 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.5152, allocations: 283 kB / 0.8527 GB, free: 9.98 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.415e-05/0.5153, allocations: 37.7 kB / 0.8528 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.442e-05/0.5154, allocations: 93.12 kB / 0.8529 GB, free: 9.844 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.5155, allocations: 47.44 kB / 0.8529 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.5155, allocations: 8 kB / 0.8529 GB, free: 9.789 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.5156, allocations: 322.8 kB / 0.8532 GB, free: 9.465 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.5159, allocations: 100.2 kB / 0.8533 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.5162, allocations: 154.4 kB / 0.8535 GB, free: 9.191 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.5166, allocations: 245.2 kB / 0.8537 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.5166, allocations: 0 / 0.8537 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007812/0.5174, allocations: 425 kB / 0.8541 GB, free: 8.488 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.417e-05/0.5175, allocations: 75.39 kB / 0.8542 GB, free: 8.402 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.5175, allocations: 0 / 0.8542 GB, free: 8.402 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.5175, allocations: 4 kB / 0.8542 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.5177, allocations: 36.03 kB / 0.8542 GB, free: 8.363 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.5177, allocations: 8 kB / 0.8542 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.518, allocations: 51.81 kB / 0.8543 GB, free: 8.305 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.032e-05/0.5181, allocations: 51.98 kB / 0.8543 GB, free: 8.254 MB / 0.5261 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 () * 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.0002018/0.5183, allocations: 181.7 kB / 0.8545 GB, free: 8.066 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.072e-05/0.5184, allocations: 23.72 kB / 0.8545 GB, free: 8.043 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.72e-05/0.5185, allocations: 34.25 kB / 0.8546 GB, free: 8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.5185, allocations: 3.938 kB / 0.8546 GB, free: 7.996 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.5185, allocations: 4 kB / 0.8546 GB, free: 7.992 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.5185, allocations: 0 / 0.8546 GB, free: 7.992 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008071/0.5193, allocations: 0.5615 MB / 0.8551 GB, free: 7.375 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.5193, allocations: 3.938 kB / 0.8551 GB, free: 7.371 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.667e-05/0.5194, allocations: 11.98 kB / 0.8551 GB, free: 7.359 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.179e-06/0.5194, allocations: 4 kB / 0.8551 GB, free: 7.355 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.5194, allocations: 11.98 kB / 0.8551 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.5194, allocations: 0 / 0.8551 GB, free: 7.344 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5194, allocations: 4 kB / 0.8552 GB, free: 7.34 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.5199, allocations: 316.9 kB / 0.8555 GB, free: 7.016 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.52, allocations: 160.7 kB / 0.8556 GB, free: 6.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.35e-05/0.5201, allocations: 11.98 kB / 0.8556 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.5203, allocations: 4 kB / 0.8556 GB, free: 6.824 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.765e-05/0.5203, allocations: 27.91 kB / 0.8556 GB, free: 6.797 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/0.5204, allocations: 27.98 kB / 0.8557 GB, free: 6.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001913/0.5206, allocations: 209.9 kB / 0.8559 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.8e-07/0.5206, allocations: 0 / 0.8559 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003341/0.5209, allocations: 48 kB / 0.8559 GB, free: 6.52 MB / 0.5261 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) * 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.0001588/0.5211, allocations: 124.9 kB / 0.856 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0006121/0.5217, allocations: 350.5 kB / 0.8564 GB, free: 6.023 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5217, allocations: 4.375 kB / 0.8564 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.5219, allocations: 71.89 kB / 0.8564 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.5222, allocations: 31.12 kB / 0.8565 GB, free: 5.918 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006985/0.5229, allocations: 435.4 kB / 0.8569 GB, free: 5.465 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.5233, allocations: 0.7476 MB / 0.8576 GB, free: 4.691 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.000158/0.5235, allocations: 41.08 kB / 0.8577 GB, free: 4.652 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.5236, allocations: 31.42 kB / 0.8577 GB, free: 4.621 MB / 0.5261 GB Notification: Performance of SimCode: time 3.01e-07/0.5236, allocations: 0 / 0.8577 GB, free: 4.621 MB / 0.5261 GB Notification: Performance of Templates: time 0.008416/0.5321, allocations: 4.385 MB / 0.862 GB, free: 240 kB / 0.5261 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)