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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001548/0.001548, 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.9272/0.9272, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.808/1.808, allocations: 221.3 MB / 400.4 MB, free: 5.777 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.001014/0.001014, allocations: 88.89 kB / 483.3 MB, free: 5.801 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.521e-05, allocations: 1.938 kB / 0.5601 GB, free: 87.91 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1611, allocations: 82.31 MB / 0.6405 GB, free: 7.727 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6549/0.8161, allocations: 113.1 MB / 0.751 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.8164, allocations: 68.48 kB / 0.751 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01347/0.8299, allocations: 4.486 MB / 0.7554 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.064e-06/0.83, allocations: 0 / 0.7554 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.071e-05/0.83, allocations: 3.906 kB / 0.7554 GB, free: 27.43 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.001095/0.8311, allocations: 0.5875 MB / 0.756 GB, free: 26.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.8312, allocations: 7.812 kB / 0.756 GB, free: 26.9 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.765e-05/0.8312, allocations: 37.23 kB / 0.756 GB, free: 26.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.8314, allocations: 38.59 kB / 0.7561 GB, free: 26.85 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.8319, allocations: 247.8 kB / 0.7563 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.8319, allocations: 18.58 kB / 0.7563 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.937e-05/0.832, allocations: 19.41 kB / 0.7563 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.8323, allocations: 138.3 kB / 0.7565 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.8323, allocations: 3.938 kB / 0.7565 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.8324, allocations: 6.891 kB / 0.7565 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.8324, allocations: 0 / 0.7565 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.8325, allocations: 46.17 kB / 0.7565 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004328/0.833, allocations: 337.4 kB / 0.7568 GB, free: 26.31 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.8332, allocations: 121.4 kB / 0.757 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.884e-05/0.8333, allocations: 57.81 kB / 0.757 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.8334, allocations: 3.906 kB / 0.757 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000372/0.8337, allocations: 214.5 kB / 0.7572 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 1.442e-06/0.8337, allocations: 0 / 0.7572 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0004659/0.8342, allocations: 226 kB / 0.7574 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.8343, allocations: 55.25 kB / 0.7575 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.8346, allocations: 253.5 kB / 0.7577 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.121e-05/0.8346, allocations: 44.47 kB / 0.7578 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.591e-05/0.8347, allocations: 92.11 kB / 0.7579 GB, free: 25.76 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.501e-05/0.8348, allocations: 37.89 kB / 0.7579 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.8348, allocations: 7.469 kB / 0.7579 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.835, allocations: 325.8 kB / 0.7582 GB, free: 25.43 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.8353, allocations: 101.3 kB / 0.7583 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.8355, allocations: 150.2 kB / 0.7585 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.8357, allocations: 167.2 kB / 0.7586 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.8358, allocations: 0 / 0.7586 GB, free: 25.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006729/0.8364, allocations: 410.3 kB / 0.759 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.675e-05/0.8365, allocations: 77.38 kB / 0.7591 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.8365, allocations: 0 / 0.7591 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.8366, allocations: 3.844 kB / 0.7591 GB, free: 25.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.8367, allocations: 23.45 kB / 0.7591 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.8368, allocations: 3.844 kB / 0.7591 GB, free: 25.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003885/0.8372, allocations: 53.28 kB / 0.7592 GB, free: 25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-05/0.8372, allocations: 54.25 kB / 0.7592 GB, free: 24.99 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.0001543/0.8374, allocations: 137.8 kB / 0.7593 GB, free: 24.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.8374, allocations: 23.22 kB / 0.7594 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.512e-05/0.8375, allocations: 27.97 kB / 0.7594 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.8375, allocations: 3.844 kB / 0.7594 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.8375, allocations: 0 / 0.7594 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.8376, allocations: 7.984 kB / 0.7594 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008365/0.8384, allocations: 0.5621 MB / 0.76 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8384, allocations: 0 / 0.76 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.16e-05/0.8385, allocations: 3.844 kB / 0.76 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.8385, allocations: 3.844 kB / 0.76 GB, free: 24.45 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.8385, allocations: 15.02 kB / 0.76 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.8385, allocations: 0 / 0.76 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.8385, allocations: 7.828 kB / 0.76 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004044/0.8389, allocations: 322.7 kB / 0.7603 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/0.8391, allocations: 153.4 kB / 0.7604 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.8392, allocations: 11.47 kB / 0.7605 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.8394, allocations: 11.45 kB / 0.7605 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.081e-05/0.8394, allocations: 11.45 kB / 0.7605 GB, free: 24.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.8395, allocations: 38.91 kB / 0.7605 GB, free: 24.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002429/0.8397, allocations: 198.4 kB / 0.7607 GB, free: 24 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8398, allocations: 0 / 0.7607 GB, free: 24 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003716/0.8401, allocations: 61.81 kB / 0.7608 GB, free: 23.99 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.0007963/0.8409, allocations: 0.8612 MB / 0.7616 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0005796/0.8415, allocations: 341.8 kB / 0.7619 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.8416, allocations: 4.312 kB / 0.7619 GB, free: 23.13 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.8417, allocations: 74.86 kB / 0.762 GB, free: 23.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.842, allocations: 24.19 kB / 0.762 GB, free: 23.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008229/0.8428, allocations: 338.7 kB / 0.7623 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.8433, allocations: 0.7495 MB / 0.7631 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001558/0.8435, allocations: 36.61 kB / 0.7631 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.8437, allocations: 52.59 kB / 0.7632 GB, free: 22.14 MB / 0.5105 GB Notification: Performance of SimCode: time 8.61e-07/0.8437, allocations: 0 / 0.7632 GB, free: 22.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02091/0.8646, allocations: 5.41 MB / 0.7684 GB, free: 19.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.8648, allocations: 138.5 kB / 0.7686 GB, free: 19.19 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.52, allocations: 3.812 kB / 0.7686 GB, free: 19.19 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)