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.999/1.999, allocations: 390.5 MB / 398 MB, free: 10.96 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.0009089/0.0009089, allocations: 180.9 kB / 491.2 MB, free: 1.559 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.238/1.238, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0007754/0.0007754, allocations: 91.95 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.765e-05/1.769e-05, allocations: 0 / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1979, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6909/0.8889, allocations: 152 MB / 1.361 GB, free: 17.68 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.8891, allocations: 72.48 kB / 1.361 GB, free: 17.67 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01257/0.9017, allocations: 4.553 MB / 1.365 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.202e-06/0.9017, allocations: 3.938 kB / 1.365 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.9017, allocations: 11.59 kB / 1.365 GB, free: 33.11 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.0006152/0.9024, allocations: 0.6233 MB / 1.366 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.9024, allocations: 11.44 kB / 1.366 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.671e-05/0.9025, allocations: 34.02 kB / 1.366 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.9028, allocations: 253.9 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/0.9028, allocations: 10.98 kB / 1.366 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.9029, allocations: 11.56 kB / 1.366 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.858e-05/0.903, allocations: 45.77 kB / 1.366 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.9032, allocations: 152.3 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.9032, allocations: 0 / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.9032, allocations: 2.531 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.9032, allocations: 3.938 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002632/0.9035, allocations: 303.8 kB / 1.367 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.9036, allocations: 105.8 kB / 1.367 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.296e-05/0.9037, allocations: 55.03 kB / 1.367 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.9037, allocations: 4 kB / 1.367 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000164/0.9039, allocations: 150.4 kB / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.754e-06/0.9039, allocations: 0 / 1.367 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0003677/0.9043, allocations: 246.5 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.9043, allocations: 61.53 kB / 1.367 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.9045, allocations: 248.2 kB / 1.368 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.9046, allocations: 36.8 kB / 1.368 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.9046, allocations: 95.52 kB / 1.368 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.9047, allocations: 31.56 kB / 1.368 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.9047, allocations: 3.875 kB / 1.368 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.16e-05/0.9048, allocations: 321.5 kB / 1.368 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.9049, allocations: 73.42 kB / 1.368 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.9051, allocations: 133.5 kB / 1.368 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.9052, allocations: 73.5 kB / 1.368 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.9052, allocations: 0 / 1.368 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004228/0.9056, allocations: 299.1 kB / 1.369 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/0.9057, allocations: 85.61 kB / 1.369 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.9057, allocations: 0.5625 kB / 1.369 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.9057, allocations: 3.906 kB / 1.369 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.9059, allocations: 21.09 kB / 1.369 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.9059, allocations: 7.797 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00029/0.9062, allocations: 39.84 kB / 1.369 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.9062, allocations: 48.06 kB / 1.369 GB, free: 31.11 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.0001155/0.9064, allocations: 130.3 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002685/0.9066, allocations: 237.6 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.9067, allocations: 27.23 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.9067, allocations: 29.61 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.9067, allocations: 0 / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.9067, allocations: 3.906 kB / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.9067, allocations: 0 / 1.369 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005548/0.9073, allocations: 0.5607 MB / 1.37 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.9073, allocations: 2.953 kB / 1.37 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.539e-05/0.9074, allocations: 15.38 kB / 1.37 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.9074, allocations: 0 / 1.37 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.9074, allocations: 13.56 kB / 1.37 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.9074, allocations: 0 / 1.37 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.9074, allocations: 3.812 kB / 1.37 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.9077, allocations: 332.6 kB / 1.37 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.9079, allocations: 173.6 kB / 1.37 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.978e-05/0.9079, allocations: 13.31 kB / 1.37 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003906/0.9083, allocations: 30.19 kB / 1.37 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.099e-05/0.9084, allocations: 6.984 kB / 1.37 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.163e-05/0.9084, allocations: 45.86 kB / 1.37 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001258/0.9085, allocations: 190.7 kB / 1.371 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9085, allocations: 4 kB / 1.371 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003181/0.9089, allocations: 44.72 kB / 1.371 GB, free: 30.29 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.0005298/0.9094, allocations: 0.8906 MB / 1.371 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003443/0.9098, allocations: 322 kB / 1.372 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9098, allocations: 384 / 1.372 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.99e-05/0.9099, allocations: 66.61 kB / 1.372 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.9101, allocations: 18.84 kB / 1.372 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006795/0.9108, allocations: 325.2 kB / 1.372 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.9112, allocations: 0.7542 MB / 1.373 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.166e-05/0.9113, allocations: 15.14 kB / 1.373 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.19e-05/0.9113, allocations: 28.12 kB / 1.373 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of SimCode: time 1.292e-06/0.9113, allocations: 0 / 1.373 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.9344, allocations: 4.516 MB / 1.377 GB, free: 28.09 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/0.9346, allocations: 141.7 kB / 1.377 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/2.466, allocations: 3.938 kB / 1.377 GB, free: 27.89 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