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/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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.00116, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008786/0.008786, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.661/1.661, allocations: 223.3 MB / 240.3 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.016/1.016, allocations: 135.3 MB / 426.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.0003721, allocations: 12 kB / 0.5077 GB, free: 4.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2201, allocations: 82.31 MB / 0.5881 GB, free: 2.516 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.00171/0.2219, allocations: 1.188 MB / 0.5892 GB, free: 1.316 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.2229, allocations: 447.8 kB / 0.5897 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.283e-05/0.223, allocations: 0 / 0.5897 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.761e-05/0.2231, allocations: 3.938 kB / 0.5897 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.2232, allocations: 24.22 kB / 0.5897 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006008/0.2238, allocations: 225.8 kB / 0.5899 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.2241, allocations: 291.8 kB / 0.5902 GB, free: 360 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.879e-05/0.2241, allocations: 4 kB / 0.5902 GB, free: 356 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.2244, allocations: 210.3 kB / 0.5904 GB, free: 148 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.2247, allocations: 123.6 kB / 0.5905 GB, free: 24 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.718e-05/0.2247, allocations: 8 kB / 0.5905 GB, free: 16 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.559e-05/0.2248, allocations: 8 kB / 0.5905 GB, free: 8 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.2249, allocations: 75.78 kB / 0.5906 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.2251, allocations: 145.1 kB / 0.5907 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002993/0.2254, allocations: 279.2 kB / 0.591 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2254, allocations: 4 kB / 0.591 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2254, allocations: 0 / 0.591 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.2254, allocations: 0 / 0.591 GB, free: 15.51 MB / 0.4981 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.001088/0.2265, allocations: 0.618 MB / 0.5916 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.2266, allocations: 11.97 kB / 0.5916 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.645e-05/0.2266, allocations: 34.56 kB / 0.5916 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.432e-05/0.2267, allocations: 39.7 kB / 0.5917 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.227, allocations: 254.3 kB / 0.5919 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.545e-05/0.2271, allocations: 15.98 kB / 0.5919 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.1e-05/0.2271, allocations: 16 kB / 0.592 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003157/0.2274, allocations: 153.5 kB / 0.5921 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2275, allocations: 0 / 0.5921 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.2275, allocations: 3.984 kB / 0.5921 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.2275, allocations: 0 / 0.5921 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.2277, allocations: 51.86 kB / 0.5922 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003903/0.228, allocations: 313.3 kB / 0.5925 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002959/0.2284, allocations: 130.7 kB / 0.5926 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.2285, allocations: 60.83 kB / 0.5926 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.2285, allocations: 3.984 kB / 0.5926 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005131/0.2291, allocations: 232 kB / 0.5929 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.733e-06/0.2291, allocations: 0 / 0.5929 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006214/0.2297, allocations: 267.4 kB / 0.5931 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.562e-05/0.2298, allocations: 63.33 kB / 0.5932 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.2301, allocations: 294.9 kB / 0.5935 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.42e-05/0.2302, allocations: 41.7 kB / 0.5935 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.2303, allocations: 89.05 kB / 0.5936 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.974e-05/0.2303, allocations: 43.58 kB / 0.5936 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.656e-05/0.2304, allocations: 37.7 kB / 0.5937 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.2306, allocations: 322.8 kB / 0.594 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.2308, allocations: 92.17 kB / 0.5941 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.2311, allocations: 150.4 kB / 0.5942 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/0.2315, allocations: 245.2 kB / 0.5944 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2315, allocations: 3.938 kB / 0.5944 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000722/0.2322, allocations: 413.4 kB / 0.5948 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.221e-05/0.2323, allocations: 71.39 kB / 0.5949 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.2323, allocations: 8 kB / 0.5949 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.2323, allocations: 3.938 kB / 0.5949 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.2325, allocations: 31.91 kB / 0.5949 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.2325, allocations: 192 / 0.5949 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005146/0.2331, allocations: 75.8 kB / 0.595 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.338e-05/0.2331, allocations: 51.98 kB / 0.5951 GB, free: 11 MB / 0.4981 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 (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.0002134/0.2334, allocations: 177.7 kB / 0.5952 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.2334, allocations: 23.72 kB / 0.5953 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.273e-05/0.2335, allocations: 34.19 kB / 0.5953 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.2335, allocations: 7.938 kB / 0.5953 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2335, allocations: 0 / 0.5953 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2335, allocations: 0 / 0.5953 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008491/0.2344, allocations: 0.5644 MB / 0.5958 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2344, allocations: 0 / 0.5958 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.101e-05/0.2344, allocations: 8 kB / 0.5959 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2344, allocations: 4 kB / 0.5959 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.2345, allocations: 15.97 kB / 0.5959 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2345, allocations: 0 / 0.5959 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2345, allocations: 0 / 0.5959 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004321/0.2349, allocations: 333.2 kB / 0.5962 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.2351, allocations: 152.6 kB / 0.5963 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.2352, allocations: 8 kB / 0.5963 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.2354, allocations: 19.98 kB / 0.5964 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.11e-05/0.2354, allocations: 15.97 kB / 0.5964 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.2355, allocations: 27.98 kB / 0.5964 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001845/0.2357, allocations: 209.9 kB / 0.5966 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2357, allocations: 0 / 0.5966 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002974/0.236, allocations: 52 kB / 0.5967 GB, free: 9.273 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.0007381/0.2367, allocations: 0.8714 MB / 0.5975 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005444/0.2373, allocations: 344.4 kB / 0.5978 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2373, allocations: 0 / 0.5978 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.2374, allocations: 71.91 kB / 0.5979 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.2378, allocations: 21.81 kB / 0.5979 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003134/0.2409, allocations: 2.452 MB / 0.6003 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.2413, allocations: 0.757 MB / 0.6011 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001489/0.2415, allocations: 33.42 kB / 0.6011 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.2416, allocations: 47.42 kB / 0.6011 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of SimCode: time 2.494e-06/0.2417, allocations: 0 / 0.6011 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4109/0.6526, allocations: 5.001 MB / 0.606 GB, free: 49.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.6528, allocations: 184.7 kB / 0.6062 GB, free: 48.83 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.302/2.955, allocations: 3.562 kB / 0.6062 GB, free: 48.83 MB / 0.4981 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/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)