Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.595/1.595, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 192.3 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.093/2.093, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008968/0.0008968, allocations: 90.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.000332, allocations: 9.484 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2678, allocations: 106.3 MB / 0.9002 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1845/0.4524, allocations: 131.6 MB / 1.029 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.4527, allocations: 63.97 kB / 1.029 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05569/0.5084, allocations: 22.32 MB / 1.051 GB, free: 5.609 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.737e-06/0.5085, allocations: 0 / 1.051 GB, free: 5.609 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.995e-05/0.5085, allocations: 4 kB / 1.051 GB, free: 5.605 MB / 0.698 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.0009958/0.5095, allocations: 0.651 MB / 1.051 GB, free: 4.879 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/0.5096, allocations: 12.03 kB / 1.051 GB, free: 4.867 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.122e-05/0.5097, allocations: 46.55 kB / 1.051 GB, free: 4.812 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.729e-05/0.5097, allocations: 27.67 kB / 1.051 GB, free: 4.785 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.5101, allocations: 253.7 kB / 1.052 GB, free: 4.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.5101, allocations: 8.281 kB / 1.052 GB, free: 4.492 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.997e-05/0.5102, allocations: 27.97 kB / 1.052 GB, free: 4.465 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.5108, allocations: 450.7 kB / 1.052 GB, free: 4.008 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.5108, allocations: 7.938 kB / 1.052 GB, free: 4 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.5108, allocations: 8 kB / 1.052 GB, free: 3.992 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.5108, allocations: 4 kB / 1.052 GB, free: 3.988 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000406/0.5112, allocations: 319.8 kB / 1.052 GB, free: 3.676 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000674/0.5119, allocations: 0.5586 MB / 1.053 GB, free: 3.059 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.5131, allocations: 1.031 MB / 1.054 GB, free: 1.992 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.5131, allocations: 4.031 kB / 1.054 GB, free: 1.988 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005221/0.5137, allocations: 486.7 kB / 1.054 GB, free: 1.488 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 1.903e-06/0.5137, allocations: 0 / 1.054 GB, free: 1.488 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.00141/0.5151, allocations: 1.105 MB / 1.055 GB, free: 388 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.184e-05/0.5152, allocations: 148.5 kB / 1.056 GB, free: 208 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4995/1.015, allocations: 219.5 kB / 1.056 GB, free: 154.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001313/1.015, allocations: 37.23 kB / 1.056 GB, free: 154.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.339e-05/1.015, allocations: 121.9 kB / 1.056 GB, free: 154.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/1.015, allocations: 78.03 kB / 1.056 GB, free: 154.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.967e-05/1.015, allocations: 7.031 kB / 1.056 GB, free: 154.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.425e-05/1.015, allocations: 345.8 kB / 1.056 GB, free: 154 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004506/1.016, allocations: 331.1 kB / 1.057 GB, free: 154 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/1.016, allocations: 421.7 kB / 1.057 GB, free: 153.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/1.017, allocations: 360.1 kB / 1.057 GB, free: 153.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/1.017, allocations: 0.7031 kB / 1.057 GB, free: 153.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008864/1.018, allocations: 0.8352 MB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/1.018, allocations: 5.219 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/1.018, allocations: 2.969 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/1.018, allocations: 6.359 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/1.018, allocations: 39.58 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/1.018, allocations: 7.266 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/1.018, allocations: 13.53 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/1.018, allocations: 213.1 kB / 1.058 GB, free: 153.9 MB / 0.698 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 () * Number of clocked 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.0002018/1.018, allocations: 207 kB / 1.059 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.039e-05/1.019, allocations: 27.34 kB / 1.059 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.428e-05/1.019, allocations: 37.8 kB / 1.059 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/1.019, allocations: 5.812 kB / 1.059 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/1.019, allocations: 1.422 kB / 1.059 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/1.019, allocations: 5.828 kB / 1.059 GB, free: 153.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/1.02, allocations: 1.696 MB / 1.06 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/1.02, allocations: 2.75 kB / 1.06 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.888e-05/1.02, allocations: 27.58 kB / 1.06 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/1.02, allocations: 3 kB / 1.06 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/1.02, allocations: 27.2 kB / 1.06 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.02, allocations: 2.844 kB / 1.06 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/1.02, allocations: 0 / 1.06 GB, free: 153.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008983/1.021, allocations: 1.153 MB / 1.062 GB, free: 152.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.188e-05/1.021, allocations: 102.7 kB / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.785e-05/1.021, allocations: 11.81 kB / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/1.022, allocations: 6.875 kB / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/1.022, allocations: 56.2 kB / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/1.022, allocations: 225.3 kB / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001426/1.022, allocations: 175.7 kB / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.022, allocations: 0 / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004491/1.023, allocations: 66.03 kB / 1.062 GB, free: 152.6 MB / 0.698 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) * Number of clocked states: 0 () * 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.001274/1.024, allocations: 1.938 MB / 1.064 GB, free: 151.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001226/1.025, allocations: 0.7373 MB / 1.065 GB, free: 151.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.025, allocations: 0.7812 kB / 1.065 GB, free: 151.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006752/1.026, allocations: 408.5 kB / 1.065 GB, free: 151.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/1.028, allocations: 374.9 kB / 1.066 GB, free: 151.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002578/1.03, allocations: 2.979 MB / 1.068 GB, free: 149.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/1.031, allocations: 0.7617 MB / 1.069 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003981/1.031, allocations: 98.67 kB / 1.069 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/1.031, allocations: 119.1 kB / 1.069 GB, free: 148.4 MB / 0.698 GB Notification: Performance of SimCode: time 6.41e-07/1.031, allocations: 0 / 1.069 GB, free: 148.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/1.059, allocations: 10.54 MB / 1.08 GB, free: 146.1 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002731/1.059, allocations: 186.8 kB / 1.08 GB, free: 145.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/2.995, allocations: 0.625 kB / 1.08 GB, free: 145.8 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_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_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)