Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.744/1.744, allocations: 285.4 MB / 298 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 176.8 kB / 366.4 MB, free: 2.082 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.1 MB / 0.6248 GB, free: 7.742 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008545/0.0008546, allocations: 90.16 kB / 0.738 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.499e-05/4.514e-05, allocations: 4 kB / 0.8584 GB, free: 12.99 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052/1.052, allocations: 115.3 MB / 0.971 GB, free: 77.88 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/1.257, allocations: 137.5 MB / 1.105 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/1.258, allocations: 59.97 kB / 1.105 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.05533/1.313, allocations: 22.19 MB / 1.127 GB, free: 8.055 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.954e-06/1.313, allocations: 0 / 1.127 GB, free: 8.055 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.778e-05/1.313, allocations: 5.906 kB / 1.127 GB, free: 8.051 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0009668/1.314, allocations: 0.6137 MB / 1.128 GB, free: 7.363 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/1.314, allocations: 12.03 kB / 1.128 GB, free: 7.352 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.09e-05/1.314, allocations: 46.55 kB / 1.128 GB, free: 7.297 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.519e-05/1.314, allocations: 27.7 kB / 1.128 GB, free: 7.27 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/1.315, allocations: 255 kB / 1.128 GB, free: 6.98 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/1.315, allocations: 12.28 kB / 1.128 GB, free: 6.969 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/1.315, allocations: 18.12 kB / 1.128 GB, free: 6.953 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006073/1.316, allocations: 462.2 kB / 1.128 GB, free: 6.488 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/1.316, allocations: 0 / 1.128 GB, free: 6.488 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/1.316, allocations: 7.812 kB / 1.128 GB, free: 6.484 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/1.316, allocations: 4 kB / 1.128 GB, free: 6.48 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003828/1.316, allocations: 319.8 kB / 1.129 GB, free: 6.168 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006623/1.317, allocations: 0.5679 MB / 1.129 GB, free: 5.551 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/1.318, allocations: 1.027 MB / 1.13 GB, free: 4.488 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007379/1.319, allocations: 0.6517 MB / 1.131 GB, free: 3.824 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/1.319, allocations: 4 kB / 1.131 GB, free: 3.82 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005561/1.319, allocations: 475.5 kB / 1.131 GB, free: 3.332 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.653e-06/1.319, allocations: 4 kB / 1.131 GB, free: 3.328 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001069/1.32, allocations: 0.7746 MB / 1.132 GB, free: 2.547 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/1.32, allocations: 152.4 kB / 1.132 GB, free: 2.367 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002271/1.321, allocations: 217.1 kB / 1.133 GB, free: 2.148 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.595e-05/1.321, allocations: 41.69 kB / 1.133 GB, free: 2.102 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.585e-05/1.321, allocations: 124.9 kB / 1.133 GB, free: 1.977 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.279e-05/1.321, allocations: 75.06 kB / 1.133 GB, free: 1.902 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.629e-05/1.321, allocations: 8 kB / 1.133 GB, free: 1.895 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001535/1.321, allocations: 342.8 kB / 1.133 GB, free: 1.551 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003873/1.321, allocations: 332.7 kB / 1.133 GB, free: 1.227 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004469/1.322, allocations: 418.5 kB / 1.134 GB, free: 0.7773 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004368/1.322, allocations: 365.7 kB / 1.134 GB, free: 432 kB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.322, allocations: 4 kB / 1.134 GB, free: 428 kB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001056/1.323, allocations: 0.8171 MB / 1.135 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/1.323, allocations: 4.938 kB / 1.135 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/1.323, allocations: 4 kB / 1.135 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/1.323, allocations: 4 kB / 1.135 GB, free: 15.58 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/1.324, allocations: 39.91 kB / 1.135 GB, free: 15.54 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/1.324, allocations: 11.92 kB / 1.135 GB, free: 15.53 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/1.324, allocations: 27.91 kB / 1.135 GB, free: 15.5 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002643/1.324, allocations: 206.8 kB / 1.135 GB, free: 15.3 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * 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.0001617/1.324, allocations: 154 kB / 1.135 GB, free: 15.15 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/1.324, allocations: 27.72 kB / 1.135 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.492e-05/1.325, allocations: 38.52 kB / 1.135 GB, free: 15.09 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/1.325, allocations: 4 kB / 1.135 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/1.325, allocations: 0 / 1.135 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/1.325, allocations: 7.984 kB / 1.135 GB, free: 15.07 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/1.327, allocations: 1.7 MB / 1.137 GB, free: 13.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/1.327, allocations: 3.984 kB / 1.137 GB, free: 13.31 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-05/1.327, allocations: 24.55 kB / 1.137 GB, free: 13.29 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/1.327, allocations: 7.938 kB / 1.137 GB, free: 13.29 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/1.327, allocations: 27.97 kB / 1.137 GB, free: 13.26 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/1.327, allocations: 0 / 1.137 GB, free: 13.26 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.327, allocations: 4 kB / 1.137 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/1.328, allocations: 1.134 MB / 1.138 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.081e-05/1.328, allocations: 116.6 kB / 1.138 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.962e-05/1.328, allocations: 8 kB / 1.138 GB, free: 11.94 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/1.328, allocations: 8 kB / 1.138 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/1.328, allocations: 51.92 kB / 1.138 GB, free: 11.88 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002796/1.329, allocations: 217.7 kB / 1.139 GB, free: 11.67 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001798/1.329, allocations: 173.4 kB / 1.139 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.11e-07/1.329, allocations: 4 kB / 1.139 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004479/1.329, allocations: 63.98 kB / 1.139 GB, free: 11.43 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.00165/1.331, allocations: 1.937 MB / 1.141 GB, free: 9.453 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0009272/1.332, allocations: 0.7262 MB / 1.142 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.332, allocations: 0 / 1.142 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0005008/1.332, allocations: 409.1 kB / 1.142 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/1.334, allocations: 365.8 kB / 1.142 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/1.335, allocations: 0.9321 MB / 1.143 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/1.336, allocations: 0.7652 MB / 1.144 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0002905/1.336, allocations: 97.34 kB / 1.144 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/1.336, allocations: 119.3 kB / 1.144 GB, free: 6.031 MB / 0.7448 GB Notification: Performance of SimCode: time 5.41e-07/1.336, allocations: 4 kB / 1.144 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/1.363, allocations: 10.6 MB / 1.154 GB, free: 11.75 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002711/1.364, allocations: 161.4 kB / 1.155 GB, free: 11.54 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.043/3.407, allocations: 7.062 kB / 1.155 GB, free: 11.53 MB / 0.7605 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)