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 1.926/1.926, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.0009451/0.0009451, allocations: 180.9 kB / 492.3 MB, free: 0.6211 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.237/1.237, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0008141/0.0008141, allocations: 87.95 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.354e-05/2.367e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1924, allocations: 142.3 MB / 1.212 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6769/0.8693, allocations: 151.9 MB / 1.361 GB, free: 19.01 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001716/0.8695, allocations: 68.62 kB / 1.361 GB, free: 19.01 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0121/0.8816, allocations: 4.589 MB / 1.365 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.432e-06/0.8816, allocations: 6.703 kB / 1.365 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.8817, allocations: 3.875 kB / 1.365 GB, free: 34.43 MB / 0.8386 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.0005374/0.8822, allocations: 0.6257 MB / 1.366 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.8822, allocations: 11.75 kB / 1.366 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.132e-05/0.8823, allocations: 41.19 kB / 1.366 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.883e-05/0.8824, allocations: 37.72 kB / 1.366 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.8826, allocations: 252.9 kB / 1.366 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.8827, allocations: 13.75 kB / 1.366 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.985e-05/0.8828, allocations: 22.09 kB / 1.366 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.883, allocations: 152.4 kB / 1.366 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.883, allocations: 0 / 1.366 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.883, allocations: 0 / 1.366 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.883, allocations: 3.844 kB / 1.366 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.669e-05/0.8831, allocations: 49.48 kB / 1.367 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000254/0.8834, allocations: 328.7 kB / 1.367 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.8836, allocations: 107.6 kB / 1.367 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.054e-05/0.8837, allocations: 57.28 kB / 1.367 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.8837, allocations: 3.938 kB / 1.367 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001821/0.8839, allocations: 163.7 kB / 1.367 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.8839, allocations: 0 / 1.367 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004015/0.8843, allocations: 254.5 kB / 1.367 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.272e-05/0.8843, allocations: 61.91 kB / 1.367 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.8845, allocations: 257.1 kB / 1.368 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/0.8846, allocations: 39.52 kB / 1.368 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.177e-05/0.8846, allocations: 88.17 kB / 1.368 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.06e-05/0.8846, allocations: 36.8 kB / 1.368 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-05/0.8847, allocations: 14.05 kB / 1.368 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.306e-05/0.8848, allocations: 321.2 kB / 1.368 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.8849, allocations: 90.44 kB / 1.368 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.8851, allocations: 138.3 kB / 1.368 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.8853, allocations: 149.3 kB / 1.369 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.8853, allocations: 0 / 1.369 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004995/0.8858, allocations: 402.9 kB / 1.369 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.8859, allocations: 73.7 kB / 1.369 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.8859, allocations: 4 kB / 1.369 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.8859, allocations: 7.875 kB / 1.369 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.886, allocations: 20.41 kB / 1.369 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.8861, allocations: 7.844 kB / 1.369 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.8863, allocations: 44.95 kB / 1.369 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.308e-05/0.8864, allocations: 37.72 kB / 1.369 GB, free: 32.24 MB / 0.8386 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 () * 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 9.995e-05/0.8865, allocations: 129.6 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.375e-05/0.8866, allocations: 34.78 kB / 1.369 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.091e-05/0.8866, allocations: 27.86 kB / 1.369 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.8866, allocations: 3.938 kB / 1.369 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.8866, allocations: 0 / 1.369 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.8866, allocations: 3.234 kB / 1.369 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006283/0.8873, allocations: 0.5927 MB / 1.37 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.8873, allocations: 0 / 1.37 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.407e-05/0.8873, allocations: 14.33 kB / 1.37 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.8873, allocations: 4 kB / 1.37 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.8873, allocations: 15.84 kB / 1.37 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.8874, allocations: 0 / 1.37 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.8874, allocations: 0 / 1.37 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.8877, allocations: 347.3 kB / 1.37 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.8879, allocations: 161.8 kB / 1.37 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.222e-05/0.8879, allocations: 17.05 kB / 1.37 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/0.8883, allocations: 40.25 kB / 1.37 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.8883, allocations: 10.14 kB / 1.37 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.8884, allocations: 40.61 kB / 1.37 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001347/0.8885, allocations: 200.2 kB / 1.371 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8885, allocations: 0 / 1.371 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002741/0.8888, allocations: 55.77 kB / 1.371 GB, free: 31.43 MB / 0.8386 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) * 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.0005889/0.8894, allocations: 0.9018 MB / 1.372 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003754/0.8898, allocations: 333.5 kB / 1.372 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8898, allocations: 3.938 kB / 1.372 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.479e-05/0.8899, allocations: 73.73 kB / 1.372 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.8901, allocations: 24.27 kB / 1.372 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005775/0.8907, allocations: 341.2 kB / 1.372 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.891, allocations: 0.7444 MB / 1.373 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.266e-05/0.891, allocations: 15.67 kB / 1.373 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.203e-05/0.8911, allocations: 25.25 kB / 1.373 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.8911, allocations: 0 / 1.373 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01384/0.9049, allocations: 4.963 MB / 1.378 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/0.9051, allocations: 148 kB / 1.378 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.4/2.305, allocations: 4 kB / 1.378 GB, free: 28.89 MB / 0.8386 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