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.262/2.262, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001192/0.001191, allocations: 172.9 kB / 487.4 MB, free: 5.035 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.704/1.704, allocations: 221.5 MB / 0.7824 GB, free: 1.004 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 99.78 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.668e-05/1.669e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3098, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9882/1.298, allocations: 151.2 MB / 1.354 GB, free: 18.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000353/1.298, allocations: 71.45 kB / 1.354 GB, free: 18.16 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01648/1.315, allocations: 4.558 MB / 1.358 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.266e-06/1.315, allocations: 3.875 kB / 1.358 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.655e-05/1.315, allocations: 0 / 1.358 GB, free: 33.6 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.0007937/1.316, allocations: 0.6303 MB / 1.359 GB, free: 33 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/1.316, allocations: 11.69 kB / 1.359 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.637e-05/1.316, allocations: 30.28 kB / 1.359 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/1.316, allocations: 263.6 kB / 1.359 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/1.316, allocations: 3.844 kB / 1.359 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.146e-05/1.316, allocations: 14.66 kB / 1.359 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001349/1.317, allocations: 43.88 kB / 1.359 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002313/1.317, allocations: 145.2 kB / 1.359 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/1.317, allocations: 0 / 1.359 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/1.317, allocations: 9.391 kB / 1.359 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/1.317, allocations: 0 / 1.359 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003278/1.317, allocations: 304.8 kB / 1.36 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/1.317, allocations: 103.1 kB / 1.36 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.186e-05/1.318, allocations: 51.98 kB / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/1.318, allocations: 3.844 kB / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002072/1.318, allocations: 162.5 kB / 1.36 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.363e-06/1.318, allocations: 0 / 1.36 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004327/1.318, allocations: 242.2 kB / 1.36 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/1.318, allocations: 64.17 kB / 1.36 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/1.318, allocations: 238.8 kB / 1.36 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/1.319, allocations: 38.52 kB / 1.36 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/1.319, allocations: 86.52 kB / 1.361 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/1.319, allocations: 36.69 kB / 1.361 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.139e-05/1.319, allocations: 8.969 kB / 1.361 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001315/1.319, allocations: 322.6 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/1.319, allocations: 76.45 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/1.319, allocations: 125.8 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/1.319, allocations: 78.36 kB / 1.361 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/1.319, allocations: 0 / 1.361 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004636/1.32, allocations: 303.9 kB / 1.361 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.43e-05/1.32, allocations: 73.67 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/1.32, allocations: 3.875 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/1.32, allocations: 12.12 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/1.32, allocations: 27.73 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/1.32, allocations: 3.844 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002988/1.32, allocations: 37.3 kB / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.355e-05/1.32, allocations: 39.77 kB / 1.362 GB, free: 31.6 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.0001628/1.321, allocations: 124.7 kB / 1.362 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003108/1.321, allocations: 245.9 kB / 1.362 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.58e-05/1.321, allocations: 33.06 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.042e-05/1.321, allocations: 27.12 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/1.321, allocations: 0 / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/1.321, allocations: 0 / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/1.321, allocations: 1.781 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006794/1.322, allocations: 0.556 MB / 1.363 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/1.322, allocations: 0 / 1.363 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/1.322, allocations: 9.641 kB / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/1.322, allocations: 7.844 kB / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/1.322, allocations: 14.67 kB / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/1.322, allocations: 0 / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/1.322, allocations: 0 / 1.363 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/1.322, allocations: 339.2 kB / 1.363 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/1.322, allocations: 164.4 kB / 1.363 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.421e-05/1.322, allocations: 15.06 kB / 1.363 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/1.323, allocations: 35.09 kB / 1.363 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/1.323, allocations: 15.3 kB / 1.363 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/1.323, allocations: 41.31 kB / 1.363 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001546/1.323, allocations: 195.8 kB / 1.363 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.323, allocations: 0 / 1.363 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003409/1.323, allocations: 44 kB / 1.363 GB, free: 30.78 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.0006973/1.324, allocations: 0.9006 MB / 1.364 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004254/1.325, allocations: 319.4 kB / 1.365 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/1.325, allocations: 0 / 1.365 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.507e-05/1.325, allocations: 58.78 kB / 1.365 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/1.325, allocations: 22.31 kB / 1.365 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007225/1.326, allocations: 333.4 kB / 1.365 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/1.326, allocations: 0.7459 MB / 1.366 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.244e-05/1.326, allocations: 21.2 kB / 1.366 GB, free: 29.08 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/1.326, allocations: 20.81 kB / 1.366 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.326, allocations: 3.938 kB / 1.366 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02446/1.351, allocations: 4.536 MB / 1.37 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/1.351, allocations: 130.2 kB / 1.37 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/2.937, allocations: 3.625 kB / 1.37 GB, free: 28.38 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