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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 192.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7914/0.7914, allocations: 132.2 MB / 422.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 60.31 kB / 0.5019 GB, free: 8.645 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1366, allocations: 80.2 MB / 0.5802 GB, free: 8.664 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002503/0.1392, allocations: 1.477 MB / 0.5816 GB, free: 7.176 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008859/0.1401, allocations: 413 kB / 0.582 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.5e-05/0.1402, allocations: 11.94 kB / 0.582 GB, free: 6.758 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.781e-05/0.1402, allocations: 11.86 kB / 0.582 GB, free: 6.746 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.41e-05/0.1404, allocations: 24.22 kB / 0.5821 GB, free: 6.723 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006976/0.1411, allocations: 240.7 kB / 0.5823 GB, free: 6.492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.1414, allocations: 319.5 kB / 0.5826 GB, free: 6.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.484e-05/0.1415, allocations: 7.984 kB / 0.5826 GB, free: 6.172 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.1417, allocations: 183.7 kB / 0.5828 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1419, allocations: 108 kB / 0.5829 GB, free: 5.887 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.226e-05/0.142, allocations: 20 kB / 0.5829 GB, free: 5.867 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.1421, allocations: 20 kB / 0.5829 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.1422, allocations: 75.77 kB / 0.583 GB, free: 5.773 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.1423, allocations: 123.4 kB / 0.5831 GB, free: 5.652 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003123/0.1427, allocations: 291.3 kB / 0.5834 GB, free: 5.367 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1427, allocations: 0 / 0.5834 GB, free: 5.367 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1427, allocations: 0 / 0.5834 GB, free: 5.367 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1427, allocations: 0 / 0.5834 GB, free: 5.367 MB / 494.1 MB 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.001268/0.144, allocations: 0.696 MB / 0.5841 GB, free: 4.598 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.144, allocations: 12.03 kB / 0.5841 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.665e-05/0.1441, allocations: 34.75 kB / 0.5841 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.879e-05/0.1442, allocations: 32.66 kB / 0.5841 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.1445, allocations: 267.5 kB / 0.5844 GB, free: 4.211 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.1445, allocations: 16.11 kB / 0.5844 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.484e-05/0.1446, allocations: 16 kB / 0.5844 GB, free: 4.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.1449, allocations: 145.5 kB / 0.5846 GB, free: 4.031 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1449, allocations: 0 / 0.5846 GB, free: 4.031 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.982e-05/0.145, allocations: 8 kB / 0.5846 GB, free: 4.023 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.145, allocations: 4 kB / 0.5846 GB, free: 4.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.1451, allocations: 47.95 kB / 0.5846 GB, free: 3.973 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003634/0.1455, allocations: 309.4 kB / 0.5849 GB, free: 3.621 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.1458, allocations: 134.6 kB / 0.5851 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.1459, allocations: 56.83 kB / 0.5851 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.1459, allocations: 8 kB / 0.5851 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004096/0.1463, allocations: 216 kB / 0.5853 GB, free: 3.191 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.1463, allocations: 0 / 0.5853 GB, free: 3.191 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005296/0.1469, allocations: 271.4 kB / 0.5856 GB, free: 2.922 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.1469, allocations: 67.34 kB / 0.5856 GB, free: 2.844 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.1472, allocations: 294.8 kB / 0.5859 GB, free: 2.551 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.467e-05/0.1472, allocations: 37.69 kB / 0.586 GB, free: 2.508 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.407e-05/0.1473, allocations: 93.14 kB / 0.5861 GB, free: 2.414 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.1473, allocations: 39.5 kB / 0.5861 GB, free: 2.375 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.1475, allocations: 109.7 kB / 0.5862 GB, free: 2.258 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1476, allocations: 330.7 kB / 0.5865 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.1479, allocations: 96.17 kB / 0.5866 GB, free: 1.832 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.1481, allocations: 146.4 kB / 0.5867 GB, free: 1.668 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/0.1484, allocations: 243.7 kB / 0.587 GB, free: 1.398 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1484, allocations: 4 kB / 0.587 GB, free: 1.395 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006409/0.1491, allocations: 418.4 kB / 0.5874 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/0.1492, allocations: 79.38 kB / 0.5875 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1492, allocations: 4.188 kB / 0.5875 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1492, allocations: 4 kB / 0.5875 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.1493, allocations: 23.92 kB / 0.5875 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.1494, allocations: 4 kB / 0.5875 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004908/0.1499, allocations: 67.72 kB / 0.5876 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-05/0.1499, allocations: 51.98 kB / 0.5876 GB, free: 0.7266 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001709/0.1501, allocations: 170.4 kB / 0.5878 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.1502, allocations: 27.66 kB / 0.5878 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.539e-05/0.1502, allocations: 34.25 kB / 0.5878 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1502, allocations: 4 kB / 0.5878 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1502, allocations: 3.984 kB / 0.5878 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1502, allocations: 0 / 0.5878 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007359/0.151, allocations: 0.5605 MB / 0.5884 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.151, allocations: 0 / 0.5884 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.514e-05/0.1511, allocations: 15.98 kB / 0.5884 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1511, allocations: 0 / 0.5884 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1511, allocations: 11.98 kB / 0.5884 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1511, allocations: 0 / 0.5884 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1511, allocations: 0 / 0.5884 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004472/0.1516, allocations: 321.2 kB / 0.5887 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.1517, allocations: 156.6 kB / 0.5889 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.1518, allocations: 11.98 kB / 0.5889 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.152, allocations: 19.92 kB / 0.5889 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.59e-05/0.1521, allocations: 23.97 kB / 0.5889 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-05/0.1521, allocations: 27.98 kB / 0.5889 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000185/0.1523, allocations: 209.9 kB / 0.5891 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.413e-06/0.1523, allocations: 0 / 0.5891 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003057/0.1526, allocations: 51.94 kB / 0.5892 GB, free: 15 MB / 0.4981 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007879/0.1534, allocations: 0.8693 MB / 0.59 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006021/0.154, allocations: 354.9 kB / 0.5904 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.154, allocations: 0 / 0.5904 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.1542, allocations: 75.88 kB / 0.5904 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.1545, allocations: 34.14 kB / 0.5905 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.1574, allocations: 2.371 MB / 0.5928 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.1577, allocations: 0.7435 MB / 0.5935 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001304/0.1578, allocations: 33.42 kB / 0.5936 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.1579, allocations: 47.41 kB / 0.5936 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.158, allocations: 4 kB / 0.5936 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05993/0.2179, allocations: 5.28 MB / 0.5988 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.212, allocations: 10.53 kB / 0.5988 GB, free: 5.102 MB / 0.4981 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/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)