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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009176/0.0009179, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7508/0.7508, allocations: 133.6 MB / 141.6 MB, free: 2.926 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.457/1.457, allocations: 221.5 MB / 395.5 MB, free: 10.75 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.0008974/0.0008974, allocations: 100.7 kB / 478.2 MB, free: 1.273 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.444e-05, allocations: 8.203 kB / 0.5535 GB, free: 8.941 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5417/0.5417, allocations: 82.3 MB / 0.6339 GB, free: 40.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1521/0.6939, allocations: 112.5 MB / 0.7437 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/0.6943, allocations: 71.95 kB / 0.7438 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01418/0.7085, allocations: 4.465 MB / 0.7482 GB, free: 5.754 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.373e-06/0.7085, allocations: 0 / 0.7482 GB, free: 5.754 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.847e-05/0.7086, allocations: 4 kB / 0.7482 GB, free: 5.75 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.0008965/0.7095, allocations: 0.5865 MB / 0.7487 GB, free: 5.094 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.7095, allocations: 8.031 kB / 0.7487 GB, free: 5.086 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.436e-05/0.7096, allocations: 31.72 kB / 0.7488 GB, free: 5.055 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.71, allocations: 254.5 kB / 0.749 GB, free: 4.762 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.71, allocations: 4 kB / 0.749 GB, free: 4.758 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.264e-05/0.7101, allocations: 16 kB / 0.749 GB, free: 4.742 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001173/0.7102, allocations: 35.98 kB / 0.7491 GB, free: 4.707 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002262/0.7104, allocations: 141.5 kB / 0.7492 GB, free: 4.562 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.7105, allocations: 0 / 0.7492 GB, free: 4.562 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.7105, allocations: 7.938 kB / 0.7492 GB, free: 4.555 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.7105, allocations: 0 / 0.7492 GB, free: 4.555 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003686/0.7109, allocations: 301.9 kB / 0.7495 GB, free: 4.223 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.7111, allocations: 122.6 kB / 0.7496 GB, free: 4.094 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.348e-05/0.7112, allocations: 48.84 kB / 0.7497 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.7112, allocations: 4 kB / 0.7497 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.7116, allocations: 213 kB / 0.7499 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.7116, allocations: 0 / 0.7499 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=18): time 0.0004369/0.7121, allocations: 210.3 kB / 0.7501 GB, free: 3.609 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.7121, allocations: 63.39 kB / 0.7501 GB, free: 3.535 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.7124, allocations: 238.3 kB / 0.7504 GB, free: 3.301 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.741e-05/0.7125, allocations: 37.7 kB / 0.7504 GB, free: 3.258 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.841e-05/0.7125, allocations: 93.34 kB / 0.7505 GB, free: 3.164 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.7126, allocations: 35.61 kB / 0.7505 GB, free: 3.129 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.7127, allocations: 4 kB / 0.7505 GB, free: 3.125 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.7128, allocations: 326.8 kB / 0.7508 GB, free: 2.797 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.713, allocations: 88.2 kB / 0.7509 GB, free: 2.707 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.7132, allocations: 146.2 kB / 0.7511 GB, free: 2.543 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.7134, allocations: 68.64 kB / 0.7511 GB, free: 2.473 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.7134, allocations: 4 kB / 0.7511 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005672/0.714, allocations: 322.1 kB / 0.7514 GB, free: 2.152 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.518e-05/0.714, allocations: 75.39 kB / 0.7515 GB, free: 2.066 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.7141, allocations: 4 kB / 0.7515 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.7141, allocations: 3.984 kB / 0.7515 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.7143, allocations: 31.91 kB / 0.7515 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.7143, allocations: 0 / 0.7515 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.7147, allocations: 48.06 kB / 0.7516 GB, free: 1.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.81e-05/0.7148, allocations: 51.98 kB / 0.7516 GB, free: 1.93 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 () * 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.0001529/0.7149, allocations: 132 kB / 0.7518 GB, free: 1.793 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003119/0.7152, allocations: 206 kB / 0.752 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.559e-05/0.7153, allocations: 23.72 kB / 0.752 GB, free: 1.562 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.633e-05/0.7153, allocations: 30.03 kB / 0.752 GB, free: 1.531 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.7154, allocations: 3.938 kB / 0.752 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.7154, allocations: 11.94 kB / 0.752 GB, free: 1.516 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.7154, allocations: 3.984 kB / 0.752 GB, free: 1.512 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007036/0.7161, allocations: 0.5191 MB / 0.7525 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.7161, allocations: 0 / 0.7525 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.186e-05/0.7162, allocations: 4 kB / 0.7525 GB, free: 0.9453 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.7162, allocations: 4 kB / 0.7525 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.7162, allocations: 11.97 kB / 0.7526 GB, free: 0.9297 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.7162, allocations: 0 / 0.7526 GB, free: 0.9297 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.7162, allocations: 4 kB / 0.7526 GB, free: 0.9258 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003675/0.7166, allocations: 313.3 kB / 0.7529 GB, free: 0.6055 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.7168, allocations: 156.6 kB / 0.753 GB, free: 444 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.583e-05/0.7169, allocations: 8 kB / 0.753 GB, free: 436 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.717, allocations: 11.98 kB / 0.753 GB, free: 424 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.737e-05/0.7171, allocations: 11.98 kB / 0.753 GB, free: 412 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.68e-05/0.7172, allocations: 35.97 kB / 0.7531 GB, free: 376 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001786/0.7173, allocations: 194 kB / 0.7533 GB, free: 180 kB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7174, allocations: 0 / 0.7533 GB, free: 180 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003356/0.7177, allocations: 44.38 kB / 0.7533 GB, free: 136 kB / 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) * 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.0007621/0.7185, allocations: 0.8662 MB / 0.7541 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005069/0.719, allocations: 324.9 kB / 0.7545 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.719, allocations: 12 kB / 0.7545 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.7191, allocations: 67.83 kB / 0.7545 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.7194, allocations: 16.88 kB / 0.7545 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007468/0.7201, allocations: 319.7 kB / 0.7549 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.7205, allocations: 0.7513 MB / 0.7556 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001673/0.7207, allocations: 41.19 kB / 0.7556 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.7208, allocations: 43.42 kB / 0.7557 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of SimCode: time 3.4e-07/0.7208, allocations: 0 / 0.7557 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03028/0.7511, allocations: 4.954 MB / 0.7605 GB, free: 8.645 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002902/0.7515, allocations: 119.8 kB / 0.7606 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.431, allocations: 7.969 kB / 0.7606 GB, free: 8.445 MB / 0.5417 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)