Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IBPSA_latest_IBPSA_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.001151/0.001151, allocations: 104.5 kB / 16.27 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 184.6 kB / 17.2 MB, free: 5.953 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.272/1.272, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7369/0.7369, allocations: 122.8 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 60.08 kB / 0.4912 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3545, allocations: 77.92 MB / 0.5673 GB, free: 32.78 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Time.Examples.CalendarTime): time 0.002612/0.3571, allocations: 1.507 MB / 0.5687 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.3583, allocations: 0.544 MB / 0.5693 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.417e-05/0.3584, allocations: 0.5625 kB / 0.5693 GB, free: 31.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.036e-05/0.3585, allocations: 7.547 kB / 0.5693 GB, free: 31.37 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.3586, allocations: 30.62 kB / 0.5693 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000719/0.3593, allocations: 305.2 kB / 0.5696 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005372/0.3599, allocations: 0.5049 MB / 0.5701 GB, free: 31.01 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.528e-05/0.3599, allocations: 15.58 kB / 0.5701 GB, free: 31 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003855/0.3603, allocations: 268.9 kB / 0.5704 GB, free: 30.92 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.3606, allocations: 135.9 kB / 0.5705 GB, free: 30.88 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.3607, allocations: 28.31 kB / 0.5705 GB, free: 30.88 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.3608, allocations: 27.09 kB / 0.5706 GB, free: 30.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.361, allocations: 110.6 kB / 0.5707 GB, free: 30.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.3612, allocations: 195.4 kB / 0.5708 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005501/0.3618, allocations: 420.8 kB / 0.5712 GB, free: 30.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3618, allocations: 1 kB / 0.5712 GB, free: 30.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3618, allocations: 1 kB / 0.5712 GB, free: 30.58 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.3618, allocations: 0 / 0.5712 GB, free: 30.58 MB / 446.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.001297/0.3631, allocations: 0.8744 MB / 0.5721 GB, free: 29.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.3632, allocations: 10.75 kB / 0.5721 GB, free: 29.84 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.775e-05/0.3632, allocations: 39.8 kB / 0.5721 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.3634, allocations: 51.97 kB / 0.5722 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.3638, allocations: 308 kB / 0.5725 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.355e-05/0.3638, allocations: 18.8 kB / 0.5725 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-05/0.3639, allocations: 25.52 kB / 0.5725 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.365, allocations: 210.4 kB / 0.5727 GB, free: 29.45 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.365, allocations: 3.938 kB / 0.5727 GB, free: 29.44 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.365, allocations: 7.312 kB / 0.5727 GB, free: 29.44 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.365, allocations: 1.438 kB / 0.5727 GB, free: 29.44 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000776/0.3658, allocations: 98.59 kB / 0.5728 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005381/0.3664, allocations: 399.9 kB / 0.5732 GB, free: 29.15 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.3675, allocations: 179.1 kB / 0.5734 GB, free: 29.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007921/0.3683, allocations: 108.4 kB / 0.5735 GB, free: 29.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.3683, allocations: 3.828 kB / 0.5735 GB, free: 29.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.3693, allocations: 226 kB / 0.5737 GB, free: 28.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=16): time 2.725e-06/0.3693, allocations: 6.547 kB / 0.5737 GB, free: 28.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=16): time 0.002703/0.3721, allocations: 483.3 kB / 0.5742 GB, free: 28.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.3721, allocations: 66.8 kB / 0.5742 GB, free: 28.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003945/0.3725, allocations: 416.2 kB / 0.5746 GB, free: 28.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.175e-05/0.3726, allocations: 40.34 kB / 0.5747 GB, free: 28.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.582e-05/0.3726, allocations: 95.42 kB / 0.5748 GB, free: 28.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.3727, allocations: 37.84 kB / 0.5748 GB, free: 28.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/0.3729, allocations: 129.1 kB / 0.5749 GB, free: 28.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.002e-05/0.373, allocations: 325.6 kB / 0.5752 GB, free: 28.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.3732, allocations: 118.1 kB / 0.5754 GB, free: 28.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.3735, allocations: 171 kB / 0.5755 GB, free: 27.96 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003583/0.3739, allocations: 280.8 kB / 0.5758 GB, free: 27.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3739, allocations: 0 / 0.5758 GB, free: 27.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007949/0.3747, allocations: 493.5 kB / 0.5763 GB, free: 27.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.736e-05/0.3748, allocations: 96.27 kB / 0.5763 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.3748, allocations: 5.172 kB / 0.5764 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3748, allocations: 2.75 kB / 0.5764 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.375, allocations: 22.8 kB / 0.5764 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.375, allocations: 3.359 kB / 0.5764 GB, free: 27.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005071/0.3755, allocations: 61.42 kB / 0.5764 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.964e-05/0.3756, allocations: 62.97 kB / 0.5765 GB, free: 27.46 MB / 446.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: 24 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * 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.0002016/0.3758, allocations: 197.7 kB / 0.5767 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.388e-05/0.3759, allocations: 42 kB / 0.5767 GB, free: 27.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.785e-05/0.376, allocations: 44.2 kB / 0.5768 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.376, allocations: 1.375 kB / 0.5768 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.376, allocations: 0.7969 kB / 0.5768 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.376, allocations: 2.172 kB / 0.5768 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002147/0.3781, allocations: 0.7467 MB / 0.5775 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.3782, allocations: 0.875 kB / 0.5775 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.572e-05/0.3782, allocations: 5 kB / 0.5775 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3782, allocations: 5.094 kB / 0.5775 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.3783, allocations: 17.67 kB / 0.5775 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3783, allocations: 1.75 kB / 0.5775 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3783, allocations: 0 / 0.5775 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.38, allocations: 481.8 kB / 0.578 GB, free: 26.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.3802, allocations: 203.6 kB / 0.5782 GB, free: 26.53 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.527e-05/0.3803, allocations: 15.12 kB / 0.5782 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004727/0.3808, allocations: 33.84 kB / 0.5782 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/0.3808, allocations: 7.5 kB / 0.5782 GB, free: 26.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.361e-05/0.3809, allocations: 57.23 kB / 0.5783 GB, free: 26.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002761/0.3812, allocations: 295.5 kB / 0.5786 GB, free: 26.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3812, allocations: 0 / 0.5786 GB, free: 26.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000374/0.3816, allocations: 68.81 kB / 0.5786 GB, free: 26.37 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$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.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.00186/0.3834, allocations: 1.025 MB / 0.5796 GB, free: 25.63 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.3847, allocations: 450.2 kB / 0.5801 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3847, allocations: 0 / 0.5801 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007461/0.3855, allocations: 115.8 kB / 0.5802 GB, free: 25.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.3858, allocations: 31.83 kB / 0.5802 GB, free: 25.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003494/0.3893, allocations: 2.779 MB / 0.5829 GB, free: 23.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.3895, allocations: 0.7724 MB / 0.5837 GB, free: 22.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.622e-05/0.3896, allocations: 14.73 kB / 0.5837 GB, free: 22.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/0.3897, allocations: 26.73 kB / 0.5837 GB, free: 22.51 MB / 446.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3897, allocations: 1.188 kB / 0.5837 GB, free: 22.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02471/0.4144, allocations: 6.165 MB / 0.5897 GB, free: 19.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.272/7.686, allocations: 4.781 kB / 0.5897 GB, free: 19.12 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 IBPSA_latest_IBPSA_Utilities_Time_Examples_CalendarTime.fmu > IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe 2>&1)