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/Complex 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) 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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002866/0.002866, allocations: 181 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6578/0.6578, allocations: 130.6 MB / 138.5 MB, free: 2.164 MB / 106.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.4 MB / 391.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 104.6 kB / 473.5 MB, free: 14.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.884e-06/7.925e-06, allocations: 3.938 kB / 0.5479 GB, free: 89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1621, allocations: 81.57 MB / 0.6276 GB, free: 18.18 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5117/0.6739, allocations: 112.1 MB / 0.7371 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.6742, allocations: 77.69 kB / 0.7371 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.01664/0.6908, allocations: 4.136 MB / 0.7412 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.506e-05/0.6909, allocations: 3.844 kB / 0.7412 GB, free: 10.94 MB / 0.4948 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.0009039/0.6918, allocations: 0.5897 MB / 0.7418 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.6918, allocations: 11.59 kB / 0.7418 GB, free: 26.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.692, allocations: 27.8 kB / 0.7418 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.6923, allocations: 250.5 kB / 0.742 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.6924, allocations: 8.203 kB / 0.742 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-05/0.6925, allocations: 17.06 kB / 0.7421 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001262/0.6926, allocations: 36.78 kB / 0.7421 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.6929, allocations: 144.3 kB / 0.7422 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.6929, allocations: 4.516 kB / 0.7422 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.6929, allocations: 1.031 kB / 0.7422 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.6929, allocations: 0 / 0.7422 GB, free: 26.12 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004484/0.6934, allocations: 303.6 kB / 0.7425 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.6936, allocations: 115.8 kB / 0.7426 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.136e-05/0.6937, allocations: 50.92 kB / 0.7427 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.6937, allocations: 5.016 kB / 0.7427 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.694, allocations: 174.1 kB / 0.7429 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.694, allocations: 0 / 0.7429 GB, free: 25.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.000366/0.6944, allocations: 173.8 kB / 0.743 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.6945, allocations: 61.11 kB / 0.7431 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.6947, allocations: 246 kB / 0.7433 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.309e-05/0.6948, allocations: 38.44 kB / 0.7434 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.975e-05/0.6949, allocations: 86.22 kB / 0.7434 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.6949, allocations: 48.83 kB / 0.7435 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.695, allocations: 4.375 kB / 0.7435 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.6951, allocations: 318.9 kB / 0.7438 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.6953, allocations: 87.28 kB / 0.7439 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/0.6955, allocations: 140.2 kB / 0.744 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.6956, allocations: 75.53 kB / 0.7441 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.6957, allocations: 0 / 0.7441 GB, free: 25.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005189/0.6962, allocations: 286.6 kB / 0.7444 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.6962, allocations: 8.594 kB / 0.7444 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.6962, allocations: 0.75 kB / 0.7444 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.6962, allocations: 3.906 kB / 0.7444 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.6964, allocations: 25.17 kB / 0.7444 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.6964, allocations: 4.562 kB / 0.7444 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.6969, allocations: 45.88 kB / 0.7444 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/0.6969, allocations: 54.47 kB / 0.7445 GB, free: 25.05 MB / 0.5105 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.000152/0.6971, allocations: 133.5 kB / 0.7446 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.878e-05/0.6971, allocations: 23.97 kB / 0.7446 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.006e-05/0.6972, allocations: 30.06 kB / 0.7447 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.6972, allocations: 20.42 kB / 0.7447 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.6972, allocations: 0 / 0.7447 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.6972, allocations: 0.75 kB / 0.7447 GB, free: 24.89 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006649/0.6979, allocations: 481.6 kB / 0.7451 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.6979, allocations: 7.922 kB / 0.7452 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-05/0.698, allocations: 9.844 kB / 0.7452 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.698, allocations: 0 / 0.7452 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/0.698, allocations: 16.11 kB / 0.7452 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.698, allocations: 0 / 0.7452 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.698, allocations: 4.75 kB / 0.7452 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003594/0.6984, allocations: 266.9 kB / 0.7454 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001961/0.6986, allocations: 152.9 kB / 0.7456 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.6987, allocations: 8.766 kB / 0.7456 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.6989, allocations: 9.719 kB / 0.7456 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.6989, allocations: 18.5 kB / 0.7456 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.699, allocations: 35.53 kB / 0.7457 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001717/0.6992, allocations: 195.8 kB / 0.7458 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003447/0.6995, allocations: 51.62 kB / 0.7459 GB, free: 24.27 MB / 0.5105 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.0001705/0.6997, allocations: 114.6 kB / 0.746 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004273/0.7001, allocations: 256 kB / 0.7462 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.7001, allocations: 3.938 kB / 0.7462 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.7003, allocations: 68.59 kB / 0.7463 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.7005, allocations: 27.12 kB / 0.7463 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005283/0.7011, allocations: 272.3 kB / 0.7466 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004951/0.7016, allocations: 0.7973 MB / 0.7474 GB, free: 23.27 MB / 0.5105 GB Notification: Performance of SimCode: time 2.8e-07/0.7016, allocations: 0 / 0.7474 GB, free: 23.27 MB / 0.5105 GB Notification: Performance of Templates: time 0.007914/0.7095, allocations: 4.319 MB / 0.7516 GB, free: 22.8 MB / 0.5105 GB make -j1 -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (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 & ./IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)