Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_Buildings_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.0009774/0.0009774, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009624/0.0009625, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.559/2.559, allocations: 390.3 MB / 0.6653 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.000354, allocations: 8 kB / 0.8146 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8101/0.8105, allocations: 142.3 MB / 0.9536 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001351/0.8119, allocations: 1.18 MB / 0.9547 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007367/0.8127, allocations: 390.4 kB / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.57e-05/0.8127, allocations: 4.844 kB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.273e-05/0.8128, allocations: 11.92 kB / 0.9551 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.688e-05/0.8129, allocations: 15.52 kB / 0.9551 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005598/0.8134, allocations: 217.3 kB / 0.9553 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.8136, allocations: 158 kB / 0.9555 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.227e-05/0.8137, allocations: 8.469 kB / 0.9555 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.8139, allocations: 169.3 kB / 0.9557 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.8142, allocations: 129.1 kB / 0.9558 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.129e-05/0.8142, allocations: 14.12 kB / 0.9558 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.939e-05/0.8143, allocations: 9.25 kB / 0.9558 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.877e-05/0.8144, allocations: 83.33 kB / 0.9559 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.016e-05/0.8144, allocations: 70.11 kB / 0.9559 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.8146, allocations: 199 kB / 0.9561 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.8146, allocations: 0 / 0.9561 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.673e-06/0.8147, allocations: 0 / 0.9561 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.8147, allocations: 0 / 0.9561 GB, free: 6.219 MB / 0.7169 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.0007585/0.8154, allocations: 0.6679 MB / 0.9568 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.8155, allocations: 13.48 kB / 0.9568 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.8155, allocations: 37.34 kB / 0.9568 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.78e-05/0.8156, allocations: 32.94 kB / 0.9569 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.8159, allocations: 250.4 kB / 0.9571 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.967e-05/0.8159, allocations: 17.14 kB / 0.9571 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.907e-05/0.816, allocations: 18.12 kB / 0.9571 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.8169, allocations: 208.3 kB / 0.9573 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.817, allocations: 3.984 kB / 0.9573 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.757e-05/0.817, allocations: 9.469 kB / 0.9574 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.817, allocations: 1.156 kB / 0.9574 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007358/0.8177, allocations: 115.6 kB / 0.9575 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000283/0.818, allocations: 307.6 kB / 0.9578 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.819, allocations: 193.3 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.8191, allocations: 2.5 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009037/0.82, allocations: 224.4 kB / 0.9582 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.82, allocations: 0 / 0.9582 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00254/0.8226, allocations: 481 kB / 0.9586 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.8226, allocations: 67.48 kB / 0.9587 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000307/0.8229, allocations: 293.8 kB / 0.959 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.827e-05/0.823, allocations: 36.58 kB / 0.959 GB, free: 4 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.002e-05/0.8231, allocations: 89.27 kB / 0.9591 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.445e-05/0.8231, allocations: 42.36 kB / 0.9591 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/0.8231, allocations: 8.125 kB / 0.9591 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.318e-05/0.8232, allocations: 321.6 kB / 0.9594 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.8234, allocations: 87.94 kB / 0.9595 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.8236, allocations: 137.2 kB / 0.9597 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.8238, allocations: 154.5 kB / 0.9598 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.8239, allocations: 1.188 kB / 0.9598 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006431/0.8245, allocations: 387.3 kB / 0.9602 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.099e-05/0.8246, allocations: 79.55 kB / 0.9602 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.8246, allocations: 1.844 kB / 0.9602 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.8246, allocations: 3.062 kB / 0.9603 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001838/0.8248, allocations: 22.27 kB / 0.9603 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.8248, allocations: 3.031 kB / 0.9603 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004973/0.8253, allocations: 68.08 kB / 0.9603 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.611e-05/0.8254, allocations: 42.8 kB / 0.9604 GB, free: 2.953 MB / 0.7169 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$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 (26): * Single equations (assignments): 24 * 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.0001848/0.8256, allocations: 175.3 kB / 0.9605 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.8257, allocations: 27.84 kB / 0.9606 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.369e-05/0.8257, allocations: 27.89 kB / 0.9606 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.8258, allocations: 1.188 kB / 0.9606 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.8258, allocations: 1.125 kB / 0.9606 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.8258, allocations: 0 / 0.9606 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.8279, allocations: 0.7157 MB / 0.9613 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.8279, allocations: 4 kB / 0.9613 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.609e-05/0.8279, allocations: 7.969 kB / 0.9613 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.8279, allocations: 0.875 kB / 0.9613 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.565e-05/0.828, allocations: 17.31 kB / 0.9613 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.828, allocations: 0 / 0.9613 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.828, allocations: 0.875 kB / 0.9613 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.8297, allocations: 480.6 kB / 0.9618 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.8298, allocations: 157.1 kB / 0.9619 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.438e-05/0.8299, allocations: 13.59 kB / 0.962 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004474/0.8304, allocations: 39.92 kB / 0.962 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.475e-05/0.8304, allocations: 12.73 kB / 0.962 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.867e-05/0.8305, allocations: 42.17 kB / 0.962 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001901/0.8307, allocations: 207.6 kB / 0.9622 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8307, allocations: 1.375 kB / 0.9622 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003673/0.8311, allocations: 45 kB / 0.9623 GB, free: 1.645 MB / 0.7169 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 (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.001826/0.8329, allocations: 1.025 MB / 0.9633 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001102/0.834, allocations: 388.4 kB / 0.9637 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.834, allocations: 0 / 0.9637 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.8348, allocations: 131.5 kB / 0.9638 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.835, allocations: 20.11 kB / 0.9638 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.8371, allocations: 1.669 MB / 0.9654 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.8375, allocations: 0.7412 MB / 0.9662 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.774e-05/0.8376, allocations: 16.11 kB / 0.9662 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.107e-05/0.8376, allocations: 29.77 kB / 0.9662 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.8376, allocations: 0.9688 kB / 0.9662 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01809/0.8557, allocations: 4.512 MB / 0.9706 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.8559, allocations: 175.1 kB / 0.9708 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.774/2.63, allocations: 0 / 0.9708 GB, free: 11.75 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat does not exist to compare? outputFormat=mat