Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_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.004351/0.004351, allocations: 185.5 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7618/0.7618, 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.5/1.5, 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.001069/0.001069, allocations: 99.52 kB / 477.8 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4839/0.485, allocations: 88.42 MB / 0.5529 GB, free: 89.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.6932, allocations: 82.3 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6185/1.312, allocations: 112.4 MB / 0.743 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/1.312, allocations: 69.97 kB / 0.7431 GB, free: 10.63 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.01458/1.327, allocations: 4.723 MB / 0.7477 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.327, allocations: 19.31 kB / 0.7477 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/1.327, allocations: 31.73 kB / 0.7478 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/1.327, allocations: 254.9 kB / 0.748 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/1.327, allocations: 4.422 kB / 0.748 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.21e-05/1.327, allocations: 13.61 kB / 0.748 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001354/1.328, allocations: 44.08 kB / 0.7481 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/1.328, allocations: 133.1 kB / 0.7482 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/1.328, allocations: 8.516 kB / 0.7482 GB, free: 25.56 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/1.328, allocations: 9.156 kB / 0.7482 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/1.328, allocations: 0 / 0.7482 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/1.328, allocations: 302.5 kB / 0.7485 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/1.329, allocations: 120 kB / 0.7486 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.485e-05/1.329, allocations: 48.88 kB / 0.7487 GB, free: 25.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/1.329, allocations: 8.547 kB / 0.7487 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003491/1.329, allocations: 166.9 kB / 0.7488 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 1.693e-06/1.329, allocations: 3.938 kB / 0.7488 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0003902/1.33, allocations: 174.2 kB / 0.749 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/1.33, allocations: 59.75 kB / 0.7491 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/1.33, allocations: 243.2 kB / 0.7493 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.416e-05/1.33, allocations: 38.66 kB / 0.7493 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/1.33, allocations: 86.2 kB / 0.7494 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/1.33, allocations: 38.64 kB / 0.7494 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/1.33, allocations: 0.6094 kB / 0.7494 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.33, allocations: 330.4 kB / 0.7498 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/1.331, allocations: 84.61 kB / 0.7498 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/1.331, allocations: 139.6 kB / 0.75 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/1.331, allocations: 82.72 kB / 0.7501 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.331, allocations: 0 / 0.7501 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005401/1.331, allocations: 286.9 kB / 0.7503 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/1.332, allocations: 3.844 kB / 0.7503 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/1.332, allocations: 0 / 0.7503 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/1.332, allocations: 4.531 kB / 0.7503 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/1.332, allocations: 28.86 kB / 0.7504 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/1.332, allocations: 8.641 kB / 0.7504 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004156/1.332, allocations: 42.25 kB / 0.7504 GB, free: 24.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.9e-05/1.332, allocations: 59.2 kB / 0.7505 GB, free: 24.48 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.0001824/1.332, allocations: 137.7 kB / 0.7506 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/1.333, allocations: 24.53 kB / 0.7506 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.924e-05/1.333, allocations: 27.23 kB / 0.7506 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/1.333, allocations: 7.75 kB / 0.7507 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/1.333, allocations: 0.75 kB / 0.7507 GB, free: 24.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/1.333, allocations: 4.828 kB / 0.7507 GB, free: 24.32 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008233/1.334, allocations: 484.9 kB / 0.7511 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/1.334, allocations: 7.875 kB / 0.7511 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.241e-05/1.334, allocations: 12.7 kB / 0.7511 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/1.334, allocations: 0.5625 kB / 0.7511 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/1.334, allocations: 12.59 kB / 0.7512 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/1.334, allocations: 0 / 0.7512 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/1.334, allocations: 0.5156 kB / 0.7512 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000355/1.334, allocations: 266.1 kB / 0.7514 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000557/1.335, allocations: 0.6473 MB / 0.752 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/1.335, allocations: 155 kB / 0.7522 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.68e-05/1.335, allocations: 9.938 kB / 0.7522 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/1.335, allocations: 8.234 kB / 0.7522 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.798e-05/1.335, allocations: 14.34 kB / 0.7522 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.293e-05/1.335, allocations: 32.53 kB / 0.7523 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.000228/1.336, allocations: 199.1 kB / 0.7524 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009465/1.336, allocations: 52.97 kB / 0.7525 GB, free: 23.17 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.0002066/1.337, allocations: 119.7 kB / 0.7526 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006545/1.337, allocations: 259.3 kB / 0.7529 GB, free: 23 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.337, allocations: 1.344 kB / 0.7529 GB, free: 23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001608/1.338, allocations: 62.14 kB / 0.7529 GB, free: 23 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/1.338, allocations: 25.36 kB / 0.7529 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000801/1.339, allocations: 276.7 kB / 0.7532 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006512/1.339, allocations: 0.7971 MB / 0.754 GB, free: 22.15 MB / 0.5105 GB Notification: Performance of SimCode: time 3e-07/1.339, allocations: 0 / 0.754 GB, free: 22.15 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)