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-master/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-master/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: "" <> 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"}) [: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.003531/0.00353, allocations: 180.1 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7244/0.7244, allocations: 133.5 MB / 141.4 MB, free: 15.71 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.745/1.745, allocations: 221.3 MB / 395 MB, free: 10.19 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.001173/0.001173, allocations: 95.47 kB / 477.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5693/0.5706, allocations: 88.43 MB / 0.5529 GB, free: 88.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.8113, allocations: 82.3 MB / 0.6333 GB, free: 13.86 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6832/1.495, allocations: 112.4 MB / 0.743 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/1.495, allocations: 76.58 kB / 0.7431 GB, free: 10.78 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.01513/1.51, allocations: 4.728 MB / 0.7477 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/1.51, allocations: 12.56 kB / 0.7477 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.265e-05/1.51, allocations: 30.91 kB / 0.7478 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/1.511, allocations: 259 kB / 0.748 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/1.511, allocations: 4.641 kB / 0.748 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.047e-05/1.511, allocations: 13.05 kB / 0.748 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001105/1.511, allocations: 44.3 kB / 0.7481 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/1.511, allocations: 134 kB / 0.7482 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/1.511, allocations: 3.906 kB / 0.7482 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/1.511, allocations: 0.7969 kB / 0.7482 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/1.511, allocations: 4 kB / 0.7482 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/1.511, allocations: 301.8 kB / 0.7485 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/1.512, allocations: 120.1 kB / 0.7486 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.602e-05/1.512, allocations: 49.56 kB / 0.7487 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/1.512, allocations: 3.875 kB / 0.7487 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/1.512, allocations: 166.2 kB / 0.7488 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/1.512, allocations: 0 / 0.7488 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0003263/1.512, allocations: 177.8 kB / 0.749 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/1.512, allocations: 63.66 kB / 0.7491 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/1.513, allocations: 246.8 kB / 0.7493 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/1.513, allocations: 37.91 kB / 0.7493 GB, free: 25.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.042e-05/1.513, allocations: 87.16 kB / 0.7494 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/1.513, allocations: 41.67 kB / 0.7494 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/1.513, allocations: 3.844 kB / 0.7495 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001072/1.513, allocations: 318.8 kB / 0.7498 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/1.513, allocations: 91.47 kB / 0.7498 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/1.513, allocations: 138.8 kB / 0.75 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/1.513, allocations: 75.06 kB / 0.75 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.513, allocations: 4 kB / 0.7501 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005246/1.514, allocations: 283.8 kB / 0.7503 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/1.514, allocations: 7.781 kB / 0.7503 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/1.514, allocations: 3.109 kB / 0.7503 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/1.514, allocations: 2.562 kB / 0.7503 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/1.514, allocations: 29.58 kB / 0.7504 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/1.514, allocations: 4.453 kB / 0.7504 GB, free: 24.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/1.515, allocations: 45.75 kB / 0.7504 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/1.515, allocations: 54.64 kB / 0.7505 GB, free: 24.64 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.0001906/1.515, allocations: 137.8 kB / 0.7506 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/1.515, allocations: 25.28 kB / 0.7506 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.274e-05/1.515, allocations: 28.8 kB / 0.7506 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/1.515, allocations: 6.594 kB / 0.7507 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.515, allocations: 0 / 0.7507 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/1.515, allocations: 2.453 kB / 0.7507 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008184/1.516, allocations: 496.2 kB / 0.7511 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/1.516, allocations: 0.5625 kB / 0.7511 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.943e-05/1.516, allocations: 12.59 kB / 0.7511 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/1.516, allocations: 1.219 kB / 0.7511 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.323e-05/1.516, allocations: 9.672 kB / 0.7512 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/1.516, allocations: 1.766 kB / 0.7512 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.516, allocations: 0 / 0.7512 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000384/1.516, allocations: 273.3 kB / 0.7514 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004274/1.517, allocations: 0.6389 MB / 0.752 GB, free: 23.53 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/1.517, allocations: 155 kB / 0.7522 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/1.517, allocations: 8.484 kB / 0.7522 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/1.517, allocations: 8.719 kB / 0.7522 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/1.518, allocations: 17.58 kB / 0.7522 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.303e-05/1.518, allocations: 28.7 kB / 0.7522 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003066/1.518, allocations: 200 kB / 0.7524 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001037/1.519, allocations: 53.56 kB / 0.7525 GB, free: 23.33 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.0002406/1.519, allocations: 125.5 kB / 0.7526 GB, free: 23.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007221/1.52, allocations: 259.7 kB / 0.7529 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/1.52, allocations: 0 / 0.7529 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001574/1.52, allocations: 66.97 kB / 0.7529 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/1.52, allocations: 22.75 kB / 0.7529 GB, free: 23.15 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006516/1.521, allocations: 275.1 kB / 0.7532 GB, free: 23.03 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005257/1.522, allocations: 0.7974 MB / 0.754 GB, free: 22.31 MB / 0.5105 GB Notification: Performance of SimCode: time 1.012e-06/1.522, allocations: 0 / 0.754 GB, free: 22.31 MB / 0.5105 GB (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)