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.006877/0.006877, allocations: 170.5 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7664/0.7664, allocations: 135.2 MB / 151 MB, free: 13.81 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.458/1.458, allocations: 223.1 MB / 406.8 MB, free: 3.227 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.0009456/0.0009456, allocations: 96.2 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005103/0.0005103, allocations: 11.98 kB / 0.5691 GB, free: 14.08 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5155/0.5161, allocations: 82.31 MB / 0.6495 GB, free: 36.03 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1582/0.6743, allocations: 113.2 MB / 0.76 GB, free: 2.699 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.6746, allocations: 75.94 kB / 0.7601 GB, free: 2.625 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01377/0.6884, allocations: 4.487 MB / 0.7645 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.412e-06/0.6884, allocations: 0 / 0.7645 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.604e-05/0.6885, allocations: 4 kB / 0.7645 GB, free: 14.13 MB / 0.5417 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.001003/0.6895, allocations: 0.6259 MB / 0.7651 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.6895, allocations: 8.031 kB / 0.7651 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.126e-05/0.6896, allocations: 42.55 kB / 0.7652 GB, free: 13.37 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.109e-05/0.6897, allocations: 27.72 kB / 0.7652 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.6901, allocations: 254.5 kB / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.6901, allocations: 8 kB / 0.7654 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.993e-05/0.6902, allocations: 23.98 kB / 0.7655 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.6905, allocations: 149.5 kB / 0.7656 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.6905, allocations: 0 / 0.7656 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.6906, allocations: 0 / 0.7656 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.6906, allocations: 4 kB / 0.7656 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.6907, allocations: 43.97 kB / 0.7657 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004056/0.6911, allocations: 325.3 kB / 0.766 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.6914, allocations: 138.6 kB / 0.7661 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.6915, allocations: 0 / 0.7661 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000453/0.6919, allocations: 213.4 kB / 0.7663 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.322e-06/0.6919, allocations: 0 / 0.7663 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0006264/0.6926, allocations: 274.2 kB / 0.7666 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.6926, allocations: 71.31 kB / 0.7666 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.6929, allocations: 254.1 kB / 0.7669 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.693, allocations: 41.69 kB / 0.7669 GB, free: 11.44 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.693, allocations: 85.14 kB / 0.767 GB, free: 11.35 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.253e-05/0.6931, allocations: 43.52 kB / 0.767 GB, free: 11.31 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.6931, allocations: 4 kB / 0.767 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.6933, allocations: 330.8 kB / 0.7674 GB, free: 10.97 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.6936, allocations: 100.2 kB / 0.7674 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002958/0.6939, allocations: 150.4 kB / 0.7676 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.6942, allocations: 160 kB / 0.7677 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.6942, allocations: 3.953 kB / 0.7677 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007944/0.695, allocations: 425.8 kB / 0.7682 GB, free: 10.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.588e-05/0.6951, allocations: 71.39 kB / 0.7682 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.6951, allocations: 4 kB / 0.7682 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.6951, allocations: 0 / 0.7682 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.6953, allocations: 32.09 kB / 0.7683 GB, free: 9.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.6953, allocations: 7.984 kB / 0.7683 GB, free: 9.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/0.6957, allocations: 51.81 kB / 0.7683 GB, free: 9.922 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.633e-05/0.6958, allocations: 51.98 kB / 0.7684 GB, free: 9.871 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002284/0.696, allocations: 177.7 kB / 0.7685 GB, free: 9.688 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.808e-05/0.6961, allocations: 35.56 kB / 0.7686 GB, free: 9.652 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.087e-05/0.6962, allocations: 34.25 kB / 0.7686 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.6962, allocations: 4 kB / 0.7686 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.6962, allocations: 0 / 0.7686 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6962, allocations: 0 / 0.7686 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008672/0.6971, allocations: 0.5583 MB / 0.7691 GB, free: 9.004 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.6971, allocations: 0 / 0.7691 GB, free: 9.004 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.288e-05/0.6971, allocations: 8 kB / 0.7692 GB, free: 8.996 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.6971, allocations: 3.984 kB / 0.7692 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.6972, allocations: 11.98 kB / 0.7692 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.6972, allocations: 4 kB / 0.7692 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6972, allocations: 0 / 0.7692 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004519/0.6976, allocations: 324.4 kB / 0.7695 GB, free: 8.645 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.6979, allocations: 160.7 kB / 0.7696 GB, free: 8.469 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.6979, allocations: 8 kB / 0.7696 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.6981, allocations: 7.984 kB / 0.7697 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.602e-05/0.6982, allocations: 23.97 kB / 0.7697 GB, free: 8.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.762e-05/0.6982, allocations: 27.98 kB / 0.7697 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001876/0.6984, allocations: 209.9 kB / 0.7699 GB, free: 8.195 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6984, allocations: 0 / 0.7699 GB, free: 8.195 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003285/0.6988, allocations: 56.38 kB / 0.77 GB, free: 8.141 MB / 0.5417 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 (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.0007711/0.6995, allocations: 0.8757 MB / 0.7708 GB, free: 7.238 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000621/0.7002, allocations: 362.7 kB / 0.7712 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.7002, allocations: 0 / 0.7712 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.7003, allocations: 69.67 kB / 0.7712 GB, free: 6.793 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.7006, allocations: 24.81 kB / 0.7712 GB, free: 6.766 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.702, allocations: 1.601 MB / 0.7728 GB, free: 5.094 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.7024, allocations: 0.7516 MB / 0.7735 GB, free: 4.316 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001442/0.7025, allocations: 37.08 kB / 0.7736 GB, free: 4.281 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.7027, allocations: 51.41 kB / 0.7736 GB, free: 4.23 MB / 0.5417 GB Notification: Performance of SimCode: time 2.3e-07/0.7027, allocations: 0 / 0.7736 GB, free: 4.23 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.7211, allocations: 5.366 MB / 0.7789 GB, free: 14.96 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.7214, allocations: 174.6 kB / 0.779 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/2.424, allocations: 0 / 0.779 GB, free: 14.73 MB / 0.5573 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)