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.001591/0.001591, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8247/0.8247, allocations: 133.4 MB / 146.7 MB, free: 10.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.371/2.371, allocations: 221.3 MB / 400.4 MB, free: 5.805 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.001323/0.001323, allocations: 104 kB / 483.3 MB, free: 5.879 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 2.912e-05/2.914e-05, allocations: 2.688 kB / 0.5601 GB, free: 87.91 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1474, allocations: 82.3 MB / 0.6405 GB, free: 7.742 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5598/0.7073, allocations: 113.1 MB / 0.751 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001659/0.7075, allocations: 73.72 kB / 0.751 GB, free: 11.97 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01201/0.7195, allocations: 4.481 MB / 0.7554 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7195, allocations: 0 / 0.7554 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.241e-05/0.7196, allocations: 3.844 kB / 0.7554 GB, free: 27.39 MB / 0.5105 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.0007871/0.7204, allocations: 0.5923 MB / 0.756 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.7204, allocations: 11.66 kB / 0.756 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.949e-05/0.7205, allocations: 36.17 kB / 0.756 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.113e-05/0.7206, allocations: 30.97 kB / 0.7561 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.7209, allocations: 248.9 kB / 0.7563 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.7209, allocations: 11.25 kB / 0.7563 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.452e-05/0.721, allocations: 25.31 kB / 0.7563 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.7213, allocations: 139.8 kB / 0.7565 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.7213, allocations: 0 / 0.7565 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.7213, allocations: 7.922 kB / 0.7565 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.7213, allocations: 0 / 0.7565 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.7214, allocations: 47.14 kB / 0.7565 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.7217, allocations: 336.9 kB / 0.7568 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.7219, allocations: 127.8 kB / 0.757 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.498e-05/0.722, allocations: 57.84 kB / 0.757 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.7221, allocations: 3.844 kB / 0.757 GB, free: 26.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003327/0.7224, allocations: 213.8 kB / 0.7572 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 1.763e-06/0.7224, allocations: 3.938 kB / 0.7572 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0003878/0.7228, allocations: 222.3 kB / 0.7574 GB, free: 26 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.7229, allocations: 66.61 kB / 0.7575 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.7231, allocations: 244.7 kB / 0.7577 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.31e-05/0.7232, allocations: 38.83 kB / 0.7578 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.801e-05/0.7232, allocations: 92.14 kB / 0.7579 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.612e-05/0.7233, allocations: 47.2 kB / 0.7579 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.7233, allocations: 7.5 kB / 0.7579 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.7235, allocations: 326.9 kB / 0.7582 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.7237, allocations: 89.44 kB / 0.7583 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.7239, allocations: 159.2 kB / 0.7585 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.7241, allocations: 156.6 kB / 0.7586 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.7241, allocations: 0 / 0.7586 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005895/0.7247, allocations: 414.9 kB / 0.759 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.464e-05/0.7248, allocations: 71.23 kB / 0.7591 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.7248, allocations: 7.875 kB / 0.7591 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.7248, allocations: 0 / 0.7591 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.7249, allocations: 38 kB / 0.7591 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.725, allocations: 3.656 kB / 0.7591 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003409/0.7253, allocations: 45.44 kB / 0.7592 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.7254, allocations: 49.45 kB / 0.7592 GB, free: 24.92 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.0001362/0.7256, allocations: 143.1 kB / 0.7594 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.709e-05/0.7256, allocations: 27.23 kB / 0.7594 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.973e-05/0.7257, allocations: 32.38 kB / 0.7594 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.7257, allocations: 0 / 0.7594 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.7257, allocations: 0 / 0.7594 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.7257, allocations: 3.844 kB / 0.7594 GB, free: 24.76 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007508/0.7265, allocations: 0.5583 MB / 0.76 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.7265, allocations: 0 / 0.76 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.142e-05/0.7265, allocations: 10.59 kB / 0.76 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.7266, allocations: 7.953 kB / 0.76 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.7266, allocations: 7.859 kB / 0.76 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.7266, allocations: 0 / 0.76 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.7266, allocations: 3.812 kB / 0.76 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.727, allocations: 319.2 kB / 0.7603 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/0.7272, allocations: 156.4 kB / 0.7604 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.7272, allocations: 7.844 kB / 0.7604 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.7274, allocations: 15.48 kB / 0.7605 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.118e-05/0.7275, allocations: 15.66 kB / 0.7605 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.762e-05/0.7275, allocations: 34.14 kB / 0.7605 GB, free: 24.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001705/0.7277, allocations: 198.9 kB / 0.7607 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7277, allocations: 0 / 0.7607 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002979/0.728, allocations: 64.2 kB / 0.7608 GB, free: 23.92 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.0007335/0.7287, allocations: 0.872 MB / 0.7616 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004845/0.7292, allocations: 338.6 kB / 0.7619 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.7292, allocations: 0 / 0.7619 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.7293, allocations: 81.8 kB / 0.762 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.7296, allocations: 15.67 kB / 0.762 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006411/0.7302, allocations: 344.4 kB / 0.7624 GB, free: 22.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/0.7306, allocations: 0.7525 MB / 0.7631 GB, free: 22.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001261/0.7307, allocations: 40.39 kB / 0.7631 GB, free: 22.08 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.7308, allocations: 41.33 kB / 0.7632 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of SimCode: time 2.3e-07/0.7308, allocations: 0 / 0.7632 GB, free: 22.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01475/0.7456, allocations: 5.409 MB / 0.7685 GB, free: 19.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001185/0.7457, allocations: 134.4 kB / 0.7686 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.404, allocations: 7.812 kB / 0.7686 GB, free: 19.11 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)