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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009945/0.0009944, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 223.3 MB / 240 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.461/2.461, allocations: 390.4 MB / 0.6655 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003292, allocations: 12 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8629/0.8632, allocations: 142.3 MB / 0.9538 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001463/0.8647, allocations: 1.181 MB / 0.955 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008354/0.8656, allocations: 412.1 kB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.506e-05/0.8656, allocations: 1.406 kB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.955e-05/0.8657, allocations: 7.922 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.697e-05/0.8658, allocations: 16.09 kB / 0.9554 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000582/0.8664, allocations: 217.9 kB / 0.9556 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.8667, allocations: 248.7 kB / 0.9559 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.272e-05/0.8667, allocations: 4.469 kB / 0.9559 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003495/0.8671, allocations: 228.6 kB / 0.9561 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.8673, allocations: 134.4 kB / 0.9562 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.948e-05/0.8674, allocations: 9.219 kB / 0.9562 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.114e-05/0.8674, allocations: 10.81 kB / 0.9562 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.8676, allocations: 83.95 kB / 0.9563 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.792e-05/0.8676, allocations: 78.81 kB / 0.9564 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.8678, allocations: 206 kB / 0.9566 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.8679, allocations: 4 kB / 0.9566 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8679, allocations: 0 / 0.9566 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.8679, allocations: 0 / 0.9566 GB, free: 6.137 MB / 0.7169 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.0007889/0.8687, allocations: 0.6594 MB / 0.9572 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.8687, allocations: 6.812 kB / 0.9572 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.396e-05/0.8688, allocations: 49.23 kB / 0.9573 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.561e-05/0.8689, allocations: 34.31 kB / 0.9573 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.8691, allocations: 253.9 kB / 0.9576 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.8692, allocations: 16.3 kB / 0.9576 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.402e-05/0.8692, allocations: 15.19 kB / 0.9576 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008393/0.8701, allocations: 215.1 kB / 0.9578 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.8701, allocations: 0 / 0.9578 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.8701, allocations: 13.5 kB / 0.9578 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.8701, allocations: 1.406 kB / 0.9578 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006378/0.8708, allocations: 109.8 kB / 0.9579 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002958/0.8711, allocations: 312 kB / 0.9582 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008787/0.872, allocations: 186.7 kB / 0.9584 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006304/0.8726, allocations: 118.5 kB / 0.9585 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.8727, allocations: 0.8125 kB / 0.9585 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008202/0.8735, allocations: 228.4 kB / 0.9587 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.844e-06/0.8735, allocations: 0 / 0.9587 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.00222/0.8757, allocations: 482.8 kB / 0.9592 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.8758, allocations: 60.89 kB / 0.9592 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.876, allocations: 289 kB / 0.9595 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/0.8761, allocations: 35.61 kB / 0.9595 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.8762, allocations: 94.06 kB / 0.9596 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.8762, allocations: 37.77 kB / 0.9597 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.8763, allocations: 12.86 kB / 0.9597 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.749e-05/0.8763, allocations: 316.7 kB / 0.96 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.8765, allocations: 93.19 kB / 0.9601 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.8767, allocations: 134.1 kB / 0.9602 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.8769, allocations: 154.5 kB / 0.9603 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.877, allocations: 1.125 kB / 0.9603 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006324/0.8776, allocations: 393 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.194e-05/0.8777, allocations: 71.58 kB / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.8777, allocations: 1.281 kB / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.8777, allocations: 3.812 kB / 0.9608 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.8779, allocations: 26.39 kB / 0.9608 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.8779, allocations: 10.77 kB / 0.9608 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/0.8783, allocations: 63.53 kB / 0.9609 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.495e-05/0.8784, allocations: 39.14 kB / 0.9609 GB, free: 2.836 MB / 0.7169 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.0001628/0.8786, allocations: 175 kB / 0.9611 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.105e-05/0.8786, allocations: 32.09 kB / 0.9611 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.406e-05/0.8787, allocations: 27.92 kB / 0.9612 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.8787, allocations: 6.359 kB / 0.9612 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.8787, allocations: 0 / 0.9612 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.8787, allocations: 3.938 kB / 0.9612 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.8805, allocations: 0.7156 MB / 0.9619 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.8806, allocations: 5.312 kB / 0.9619 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.421e-05/0.8806, allocations: 3.688 kB / 0.9619 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.8806, allocations: 0 / 0.9619 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.8806, allocations: 16.94 kB / 0.9619 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.8807, allocations: 1.375 kB / 0.9619 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8807, allocations: 0 / 0.9619 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.8822, allocations: 477.6 kB / 0.9623 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.8823, allocations: 161.1 kB / 0.9625 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.324e-05/0.8824, allocations: 14.02 kB / 0.9625 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000406/0.8828, allocations: 36.25 kB / 0.9625 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.8829, allocations: 8.453 kB / 0.9625 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.436e-05/0.8829, allocations: 37.55 kB / 0.9626 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001811/0.8831, allocations: 208 kB / 0.9628 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8831, allocations: 4 kB / 0.9628 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003615/0.8835, allocations: 58.25 kB / 0.9628 GB, free: 1.516 MB / 0.7169 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.001753/0.8852, allocations: 1.008 MB / 0.9638 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001235/0.8865, allocations: 395.2 kB / 0.9642 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.8865, allocations: 0 / 0.9642 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007197/0.8872, allocations: 123 kB / 0.9643 GB, free: 448 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.8876, allocations: 39.06 kB / 0.9644 GB, free: 420 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.8905, allocations: 1.19 MB / 0.9655 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.8909, allocations: 0.7359 MB / 0.9662 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.107e-05/0.891, allocations: 12.77 kB / 0.9663 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.145e-05/0.891, allocations: 30.48 kB / 0.9663 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of SimCode: time 9.92e-07/0.8911, allocations: 0 / 0.9663 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.9084, allocations: 4.55 MB / 0.9707 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.9086, allocations: 182 kB / 0.9709 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.683, allocations: 4 kB / 0.9709 GB, free: 12.31 MB / 0.7325 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