Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002265/0.002265, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.457/1.457, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002536/0.002536, allocations: 281 kB / 312.7 MB, free: 2.602 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.228/1.228, allocations: 180.6 MB / 0.5369 GB, free: 14.56 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002945/0.002945, allocations: 108.8 kB / 0.7395 GB, free: 28.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1757, allocations: 95.39 MB / 0.8326 GB, free: 8.336 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.00285/0.1786, allocations: 1.522 MB / 0.8341 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001309/0.1799, allocations: 0.532 MB / 0.8346 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.06e-05/0.18, allocations: 3.938 kB / 0.8346 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 9.897e-05/0.1801, allocations: 7.875 kB / 0.8346 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.1802, allocations: 27.84 kB / 0.8347 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008134/0.181, allocations: 318.2 kB / 0.835 GB, free: 5.918 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005444/0.1815, allocations: 487.4 kB / 0.8354 GB, free: 5.441 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.523e-05/0.1816, allocations: 4 kB / 0.8354 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003727/0.182, allocations: 275.7 kB / 0.8357 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.1822, allocations: 135.6 kB / 0.8358 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.1824, allocations: 28 kB / 0.8359 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 9.379e-05/0.1825, allocations: 24 kB / 0.8359 GB, free: 4.984 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.1826, allocations: 119.7 kB / 0.836 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.1828, allocations: 155.2 kB / 0.8361 GB, free: 4.715 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004508/0.1832, allocations: 430.6 kB / 0.8365 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1832, allocations: 0 / 0.8365 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of FrontEnd: time 4.228e-06/0.1832, allocations: 4 kB / 0.8366 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.1832, allocations: 0 / 0.8366 GB, free: 4.289 MB / 0.5762 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.001239/0.1845, allocations: 0.7989 MB / 0.8373 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.1845, allocations: 9.938 kB / 0.8373 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.264e-05/0.1846, allocations: 42.73 kB / 0.8374 GB, free: 3.359 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1847, allocations: 48.7 kB / 0.8374 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004376/0.1851, allocations: 260.7 kB / 0.8377 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/0.1851, allocations: 16.38 kB / 0.8377 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.738e-05/0.1852, allocations: 28.36 kB / 0.8377 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009335/0.1862, allocations: 217.9 kB / 0.8379 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1862, allocations: 3.938 kB / 0.8379 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.1862, allocations: 4 kB / 0.8379 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1862, allocations: 0 / 0.8379 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000719/0.1869, allocations: 99.92 kB / 0.838 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003981/0.1873, allocations: 312.5 kB / 0.8383 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009866/0.1883, allocations: 158.5 kB / 0.8385 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007081/0.189, allocations: 108.8 kB / 0.8386 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.1891, allocations: 7.938 kB / 0.8386 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009664/0.19, allocations: 223 kB / 0.8388 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.19, allocations: 4 kB / 0.8388 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.002469/0.1925, allocations: 487.6 kB / 0.8393 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.1925, allocations: 67.39 kB / 0.8393 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004627/0.193, allocations: 409.9 kB / 0.8397 GB, free: 0.832 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.718e-05/0.1931, allocations: 37.7 kB / 0.8398 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.79e-05/0.1932, allocations: 97.44 kB / 0.8399 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.214e-05/0.1932, allocations: 43.69 kB / 0.8399 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.1934, allocations: 125.4 kB / 0.84 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1936, allocations: 330.8 kB / 0.8403 GB, free: 192 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003304/0.1939, allocations: 191.4 kB / 0.8405 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003627/0.1942, allocations: 239.1 kB / 0.8407 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.1946, allocations: 271.3 kB / 0.841 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1946, allocations: 3.938 kB / 0.841 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008744/0.1955, allocations: 0.5573 MB / 0.8416 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.452e-05/0.1956, allocations: 87.31 kB / 0.8416 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1956, allocations: 192 / 0.8416 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1956, allocations: 8 kB / 0.8416 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001642/0.1958, allocations: 19.92 kB / 0.8417 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.1958, allocations: 4 kB / 0.8417 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004766/0.1963, allocations: 63.78 kB / 0.8417 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.145e-05/0.1963, allocations: 59.97 kB / 0.8418 GB, free: 14.59 MB / 0.5919 GB 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.0002857/0.1966, allocations: 201.6 kB / 0.842 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.731e-05/0.1967, allocations: 47.7 kB / 0.842 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.374e-05/0.1968, allocations: 39.67 kB / 0.8421 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1968, allocations: 0 / 0.8421 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1968, allocations: 0 / 0.8421 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1968, allocations: 0 / 0.8421 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.1991, allocations: 0.7122 MB / 0.8428 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1991, allocations: 0 / 0.8428 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.481e-05/0.1991, allocations: 4 kB / 0.8428 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.1991, allocations: 4 kB / 0.8428 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.1991, allocations: 19.97 kB / 0.8428 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.1992, allocations: 4 kB / 0.8428 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1992, allocations: 0 / 0.8428 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.2009, allocations: 489.4 kB / 0.8433 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.2012, allocations: 129.5 kB / 0.8434 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.332e-05/0.2012, allocations: 11.98 kB / 0.8434 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004485/0.2017, allocations: 31.97 kB / 0.8434 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.2017, allocations: 11.92 kB / 0.8434 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.687e-05/0.2018, allocations: 59.97 kB / 0.8435 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003732/0.2022, allocations: 291.1 kB / 0.8438 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.2022, allocations: 4 kB / 0.8438 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003809/0.2026, allocations: 71.94 kB / 0.8438 GB, free: 12.41 MB / 0.5919 GB 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.002119/0.2047, allocations: 1.026 MB / 0.8448 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001338/0.206, allocations: 477 kB / 0.8453 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.206, allocations: 0 / 0.8453 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007307/0.2067, allocations: 115.8 kB / 0.8454 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.2071, allocations: 33.95 kB / 0.8454 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004699/0.2118, allocations: 3.083 MB / 0.8484 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.212, allocations: 159 kB / 0.8486 GB, free: 7.277 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.487e-05/0.2121, allocations: 13.09 kB / 0.8486 GB, free: 7.266 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.959e-05/0.2122, allocations: 27.42 kB / 0.8486 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of SimCode: time 7.21e-07/0.2122, allocations: 0 / 0.8486 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.2464, allocations: 8.089 MB / 0.8565 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.52, allocations: 2.031 kB / 0.8565 GB, free: 15.21 MB / 0.6075 GB " [Timeout remaining time 648] (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --stepSize=40000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.051710105966777] Failed to read output from testmodel.py, exit status != 0: 11.62675030482933 11.65463616 11.466614474 Calling exit ...