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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 100 kB / 15.05 MB, free: 1.105 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.001732/0.001732, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.073/3.073, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.495/5.495, allocations: 409.2 MB / 0.6838 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006318/0.000632, allocations: 12 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.769/1.77, allocations: 146.8 MB / 0.9809 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002598/1.772, allocations: 1.175 MB / 0.982 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001245/1.774, allocations: 403.4 kB / 0.9824 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.103e-05/1.774, allocations: 0 / 0.9824 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.554e-05/1.774, allocations: 7.875 kB / 0.9824 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001567/1.774, allocations: 19.97 kB / 0.9824 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009346/1.775, allocations: 214.6 kB / 0.9826 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003127/1.775, allocations: 159.7 kB / 0.9828 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.91e-05/1.775, allocations: 11.97 kB / 0.9828 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003623/1.776, allocations: 163.7 kB / 0.9829 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003162/1.776, allocations: 135.7 kB / 0.9831 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.644e-05/1.776, allocations: 11.94 kB / 0.9831 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.172e-05/1.776, allocations: 12 kB / 0.9831 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001619/1.776, allocations: 79.78 kB / 0.9832 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001279/1.777, allocations: 69.64 kB / 0.9832 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000372/1.777, allocations: 205.8 kB / 0.9834 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/1.777, allocations: 3.938 kB / 0.9834 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.314e-06/1.777, allocations: 0 / 0.9834 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.734e-06/1.777, allocations: 0 / 0.9834 GB, free: 3.613 MB / 0.7325 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.00138/1.778, allocations: 0.6605 MB / 0.9841 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.528e-05/1.778, allocations: 8.031 kB / 0.9841 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002108/1.779, allocations: 42.55 kB / 0.9841 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/1.779, allocations: 31.62 kB / 0.9842 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005139/1.779, allocations: 250.6 kB / 0.9844 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.307e-05/1.779, allocations: 12 kB / 0.9844 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-05/1.78, allocations: 23.94 kB / 0.9844 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/1.781, allocations: 213.4 kB / 0.9846 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/1.781, allocations: 0 / 0.9846 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.089e-05/1.781, allocations: 4 kB / 0.9846 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/1.781, allocations: 0 / 0.9846 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/1.782, allocations: 107.9 kB / 0.9847 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006476/1.783, allocations: 321.3 kB / 0.985 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/1.784, allocations: 190.5 kB / 0.9852 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.009e-05/1.784, allocations: 0 / 0.9852 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001358/1.786, allocations: 223.1 kB / 0.9854 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.866e-06/1.786, allocations: 0 / 0.9854 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.003586/1.789, allocations: 482.3 kB / 0.9859 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.701e-05/1.789, allocations: 59.41 kB / 0.986 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005818/1.79, allocations: 290.9 kB / 0.9862 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.756e-05/1.79, allocations: 45.62 kB / 0.9863 GB, free: 464 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/1.79, allocations: 89.14 kB / 0.9864 GB, free: 372 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.166e-05/1.79, allocations: 43.53 kB / 0.9864 GB, free: 328 kB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.019e-05/1.79, allocations: 4 kB / 0.9864 GB, free: 324 kB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002628/1.79, allocations: 322.8 kB / 0.9867 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/1.791, allocations: 87.94 kB / 0.9868 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005219/1.791, allocations: 139.4 kB / 0.9869 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003478/1.792, allocations: 151.3 kB / 0.9871 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/1.792, allocations: 0 / 0.9871 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001129/1.793, allocations: 399.5 kB / 0.9875 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001238/1.793, allocations: 75.39 kB / 0.9875 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/1.793, allocations: 3.984 kB / 0.9875 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.819e-05/1.793, allocations: 4 kB / 0.9875 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/1.793, allocations: 19.92 kB / 0.9876 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/1.793, allocations: 7.953 kB / 0.9876 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006653/1.794, allocations: 71.98 kB / 0.9876 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/1.794, allocations: 43.98 kB / 0.9877 GB, free: 14.95 MB / 0.7481 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.0003779/1.794, allocations: 169.7 kB / 0.9878 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.493e-05/1.795, allocations: 27.7 kB / 0.9879 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/1.795, allocations: 30.3 kB / 0.9879 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/1.795, allocations: 3.938 kB / 0.9879 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/1.795, allocations: 4 kB / 0.9879 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/1.795, allocations: 7.953 kB / 0.9879 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/1.798, allocations: 0.7012 MB / 0.9886 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/1.798, allocations: 0 / 0.9886 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.658e-05/1.798, allocations: 7.984 kB / 0.9886 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.912e-06/1.798, allocations: 0 / 0.9886 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.374e-05/1.798, allocations: 19.98 kB / 0.9886 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-06/1.798, allocations: 7.953 kB / 0.9886 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/1.798, allocations: 7.922 kB / 0.9886 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/1.801, allocations: 460.8 kB / 0.9891 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003772/1.801, allocations: 156.7 kB / 0.9892 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/1.801, allocations: 16 kB / 0.9892 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006404/1.802, allocations: 35.97 kB / 0.9893 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.966e-05/1.802, allocations: 11.94 kB / 0.9893 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.262e-05/1.802, allocations: 43.97 kB / 0.9893 GB, free: 13.16 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003819/1.803, allocations: 209.9 kB / 0.9895 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of sort global known variables: time 5.41e-07/1.803, allocations: 0 / 0.9895 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006028/1.803, allocations: 44 kB / 0.9896 GB, free: 12.91 MB / 0.7481 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.002935/1.806, allocations: 1.018 MB / 0.9906 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001806/1.808, allocations: 392.2 kB / 0.9909 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/1.808, allocations: 0 / 0.9909 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001028/1.809, allocations: 128.3 kB / 0.9911 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/1.809, allocations: 21.69 kB / 0.9911 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003514/1.813, allocations: 1.653 MB / 0.9927 GB, free: 9.582 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006549/1.814, allocations: 0.7515 MB / 0.9934 GB, free: 8.805 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.000111/1.814, allocations: 17.08 kB / 0.9934 GB, free: 8.789 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/1.814, allocations: 23.42 kB / 0.9935 GB, free: 8.766 MB / 0.7481 GB Notification: Performance of SimCode: time 9.62e-07/1.814, allocations: 0 / 0.9935 GB, free: 8.766 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03009/1.844, allocations: 4.521 MB / 0.9979 GB, free: 4.391 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000341/1.844, allocations: 179.4 kB / 0.9981 GB, free: 4.152 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.109/4.953, allocations: 4 kB / 0.9981 GB, free: 4.148 MB / 0.7481 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) Environment - environmentSimulation: 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