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/Buildings 9.1.1-maint.9.1.x/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) 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) 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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.522/2.522, allocations: 390.3 MB / 405.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001488/0.001489, allocations: 183 kB / 498.1 MB, free: 5.73 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.864/1.864, allocations: 223.2 MB / 0.7948 GB, free: 18.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009614/0.0009612, allocations: 96.33 kB / 0.9346 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004479, allocations: 9.969 kB / 1.084 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3552, allocations: 142.4 MB / 1.223 GB, free: 89.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2069/0.5622, allocations: 151.9 MB / 1.371 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/0.5626, allocations: 71.97 kB / 1.371 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01488/0.5775, allocations: 4.592 MB / 1.376 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.214e-06/0.5775, allocations: 0 / 1.376 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.852e-05/0.5776, allocations: 4 kB / 1.376 GB, free: 12.68 MB / 0.8855 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.001019/0.5786, allocations: 0.6682 MB / 1.377 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.5787, allocations: 8.031 kB / 1.377 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.388e-05/0.5787, allocations: 42.56 kB / 1.377 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.867e-05/0.5788, allocations: 27.72 kB / 1.377 GB, free: 11.84 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004508/0.5793, allocations: 262.5 kB / 1.377 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.796e-05/0.5794, allocations: 12 kB / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.5794, allocations: 16 kB / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009749/0.5804, allocations: 205.5 kB / 1.377 GB, free: 11.31 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.5804, allocations: 11.92 kB / 1.377 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.5805, allocations: 15.88 kB / 1.377 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.5805, allocations: 0 / 1.377 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007149/0.5812, allocations: 99.92 kB / 1.377 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004538/0.5817, allocations: 345.2 kB / 1.378 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009724/0.5827, allocations: 182.5 kB / 1.378 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.5827, allocations: 4 kB / 1.378 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008597/0.5836, allocations: 223.1 kB / 1.378 GB, free: 10.38 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 1.753e-06/0.5836, allocations: 0 / 1.378 GB, free: 10.38 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.002357/0.586, allocations: 479.6 kB / 1.378 GB, free: 9.906 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.586, allocations: 55.41 kB / 1.378 GB, free: 9.84 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002652/0.5863, allocations: 262 kB / 1.379 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.92e-05/0.5863, allocations: 33.7 kB / 1.379 GB, free: 9.531 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/0.5864, allocations: 101.1 kB / 1.379 GB, free: 9.43 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.889e-05/0.5865, allocations: 31.61 kB / 1.379 GB, free: 9.398 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.959e-05/0.5865, allocations: 11.94 kB / 1.379 GB, free: 9.387 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.5866, allocations: 330.8 kB / 1.379 GB, free: 9.055 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.5869, allocations: 83.95 kB / 1.379 GB, free: 8.973 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.5871, allocations: 150.9 kB / 1.379 GB, free: 8.805 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.5874, allocations: 155.4 kB / 1.38 GB, free: 8.641 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.5874, allocations: 0 / 1.38 GB, free: 8.641 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007474/0.5882, allocations: 401.7 kB / 1.38 GB, free: 8.23 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.158e-05/0.5883, allocations: 67.39 kB / 1.38 GB, free: 8.152 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.5883, allocations: 4 kB / 1.38 GB, free: 8.148 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.5883, allocations: 4 kB / 1.38 GB, free: 8.145 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.5885, allocations: 24.11 kB / 1.38 GB, free: 8.121 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.5885, allocations: 7.984 kB / 1.38 GB, free: 8.113 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003264/0.5888, allocations: 39.83 kB / 1.38 GB, free: 8.074 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.927e-05/0.5889, allocations: 43.98 kB / 1.38 GB, free: 8.031 MB / 0.8855 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.0001957/0.5891, allocations: 169.7 kB / 1.38 GB, free: 7.855 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.5892, allocations: 31.58 kB / 1.38 GB, free: 7.824 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.582e-05/0.5892, allocations: 34.3 kB / 1.38 GB, free: 7.789 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.435e-06/0.5892, allocations: 0 / 1.38 GB, free: 7.789 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5892, allocations: 3.938 kB / 1.38 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.5893, allocations: 4 kB / 1.38 GB, free: 7.781 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.5913, allocations: 0.7012 MB / 1.381 GB, free: 7.023 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5913, allocations: 3.984 kB / 1.381 GB, free: 7.02 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.586e-05/0.5913, allocations: 8 kB / 1.381 GB, free: 7.012 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.5913, allocations: 4 kB / 1.381 GB, free: 7.008 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.5914, allocations: 23.97 kB / 1.381 GB, free: 6.984 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.5914, allocations: 0 / 1.381 GB, free: 6.984 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5914, allocations: 0 / 1.381 GB, free: 6.984 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.593, allocations: 474.7 kB / 1.381 GB, free: 6.504 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.5932, allocations: 152.7 kB / 1.382 GB, free: 6.336 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.112e-05/0.5933, allocations: 19.98 kB / 1.382 GB, free: 6.316 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003934/0.5937, allocations: 31.97 kB / 1.382 GB, free: 6.285 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.5937, allocations: 7.984 kB / 1.382 GB, free: 6.277 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.419e-05/0.5938, allocations: 43.98 kB / 1.382 GB, free: 6.234 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001855/0.594, allocations: 205.9 kB / 1.382 GB, free: 6.035 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.594, allocations: 0 / 1.382 GB, free: 6.035 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003556/0.5943, allocations: 55.98 kB / 1.382 GB, free: 5.98 MB / 0.8855 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.001934/0.5963, allocations: 1.029 MB / 1.383 GB, free: 4.926 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001219/0.5975, allocations: 402.5 kB / 1.383 GB, free: 4.508 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5975, allocations: 0 / 1.383 GB, free: 4.508 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007293/0.5983, allocations: 124.3 kB / 1.383 GB, free: 4.387 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.5985, allocations: 20.42 kB / 1.384 GB, free: 4.367 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.6006, allocations: 1.662 MB / 1.385 GB, free: 2.625 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.6009, allocations: 0.7477 MB / 1.386 GB, free: 1.852 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.051e-05/0.601, allocations: 12.66 kB / 1.386 GB, free: 1.84 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.744e-05/0.6011, allocations: 23.42 kB / 1.386 GB, free: 1.816 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.6011, allocations: 0 / 1.386 GB, free: 1.816 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0178/0.6189, allocations: 4.945 MB / 1.391 GB, free: 12.98 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/0.6191, allocations: 166.1 kB / 1.391 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.333, allocations: 0 / 1.391 GB, free: 12.75 MB / 0.9011 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