Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.959/1.959, allocations: 390.3 MB / 402.8 MB, free: 6.719 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.001021/0.001021, allocations: 180.7 kB / 496.1 MB, free: 12.89 MB / 410.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.7915 GB, free: 5.402 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.0008557/0.0008557, allocations: 92 kB / 0.9317 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.275e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.1909, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.646/0.8369, allocations: 152.7 MB / 1.368 GB, free: 1.367 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.8371, allocations: 69.45 kB / 1.368 GB, free: 1.328 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01287/0.85, allocations: 4.591 MB / 1.372 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.136e-06/0.85, allocations: 0 / 1.372 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.808e-06/0.8501, allocations: 7.938 kB / 1.372 GB, free: 13.32 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.0006523/0.8507, allocations: 0.6271 MB / 1.373 GB, free: 12.64 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.8508, allocations: 8.031 kB / 1.373 GB, free: 12.63 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.627e-05/0.8508, allocations: 46.05 kB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.421e-05/0.8509, allocations: 31.62 kB / 1.373 GB, free: 12.55 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.8512, allocations: 249.5 kB / 1.373 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.8512, allocations: 15.3 kB / 1.373 GB, free: 12.26 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.332e-05/0.8513, allocations: 19.75 kB / 1.373 GB, free: 12.24 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.8516, allocations: 154.6 kB / 1.374 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.8516, allocations: 4 kB / 1.374 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.8516, allocations: 3.938 kB / 1.374 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.8516, allocations: 0 / 1.374 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.8517, allocations: 45.61 kB / 1.374 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003041/0.852, allocations: 335.7 kB / 1.374 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.8522, allocations: 105.7 kB / 1.374 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.571e-05/0.8523, allocations: 58.22 kB / 1.374 GB, free: 11.62 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.8523, allocations: 8 kB / 1.374 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002033/0.8526, allocations: 168.3 kB / 1.374 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.8526, allocations: 0 / 1.374 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004454/0.853, allocations: 246.4 kB / 1.375 GB, free: 11.25 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.8531, allocations: 61.33 kB / 1.375 GB, free: 11.18 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.8533, allocations: 265.2 kB / 1.375 GB, free: 10.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.8533, allocations: 40.83 kB / 1.375 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.428e-05/0.8534, allocations: 92.5 kB / 1.375 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.272e-05/0.8534, allocations: 32.3 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.8535, allocations: 6.938 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.791e-05/0.8536, allocations: 325.9 kB / 1.375 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.8537, allocations: 88.36 kB / 1.375 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.8539, allocations: 138.9 kB / 1.376 GB, free: 10.29 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.8541, allocations: 150.2 kB / 1.376 GB, free: 10.15 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.8541, allocations: 0 / 1.376 GB, free: 10.15 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005736/0.8547, allocations: 404.1 kB / 1.376 GB, free: 9.805 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.965e-05/0.8548, allocations: 74.39 kB / 1.376 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.8548, allocations: 4 kB / 1.376 GB, free: 9.723 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.8548, allocations: 4 kB / 1.376 GB, free: 9.719 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.855, allocations: 19.92 kB / 1.376 GB, free: 9.699 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.855, allocations: 7.984 kB / 1.376 GB, free: 9.691 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.8553, allocations: 43.39 kB / 1.376 GB, free: 9.652 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.384e-05/0.8554, allocations: 42.86 kB / 1.376 GB, free: 9.613 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 0.0001088/0.8555, allocations: 131.2 kB / 1.376 GB, free: 9.484 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.854e-05/0.8555, allocations: 27.67 kB / 1.376 GB, free: 9.457 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.268e-05/0.8556, allocations: 25.77 kB / 1.376 GB, free: 9.441 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.8556, allocations: 4 kB / 1.376 GB, free: 9.438 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.8556, allocations: 0 / 1.376 GB, free: 9.438 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.8556, allocations: 0 / 1.376 GB, free: 9.438 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007087/0.8563, allocations: 0.6027 MB / 1.377 GB, free: 8.855 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.8563, allocations: 0 / 1.377 GB, free: 8.855 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-05/0.8564, allocations: 8 kB / 1.377 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.8564, allocations: 0 / 1.377 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.8564, allocations: 15.97 kB / 1.377 GB, free: 8.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.8564, allocations: 0 / 1.377 GB, free: 8.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.8564, allocations: 0 / 1.377 GB, free: 8.832 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003987/0.8568, allocations: 356.9 kB / 1.377 GB, free: 8.508 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.857, allocations: 166.7 kB / 1.378 GB, free: 8.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.383e-05/0.8571, allocations: 11 kB / 1.378 GB, free: 8.336 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004212/0.8575, allocations: 31.97 kB / 1.378 GB, free: 8.305 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.945e-05/0.8575, allocations: 11.73 kB / 1.378 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.635e-05/0.8576, allocations: 35.98 kB / 1.378 GB, free: 8.262 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001665/0.8578, allocations: 212.9 kB / 1.378 GB, free: 8.086 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8578, allocations: 0 / 1.378 GB, free: 8.086 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003157/0.8581, allocations: 51.06 kB / 1.378 GB, free: 8.039 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.0006676/0.8588, allocations: 0.9055 MB / 1.379 GB, free: 7.148 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004293/0.8592, allocations: 338.5 kB / 1.379 GB, free: 6.859 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8592, allocations: 4.312 kB / 1.379 GB, free: 6.855 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.8593, allocations: 71.14 kB / 1.379 GB, free: 6.805 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.8596, allocations: 15.92 kB / 1.379 GB, free: 6.793 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007206/0.8603, allocations: 344 kB / 1.38 GB, free: 6.457 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.8606, allocations: 0.7469 MB / 1.38 GB, free: 5.688 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.225e-05/0.8606, allocations: 12.77 kB / 1.38 GB, free: 5.676 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.643e-05/0.8607, allocations: 25.42 kB / 1.38 GB, free: 5.656 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/0.8607, allocations: 3.938 kB / 1.38 GB, free: 5.652 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.8756, allocations: 4.967 MB / 1.385 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/0.8758, allocations: 160.5 kB / 1.385 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/2.5, allocations: 0 / 1.385 GB, free: 0.5781 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat does not exist to compare? outputFormat=mat