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.766/1.766, allocations: 285.6 MB / 293.1 MB, free: 10.23 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.001122/0.001122, allocations: 188.9 kB / 361.4 MB, free: 6.801 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.752/1.752, allocations: 205.2 MB / 0.62 GB, free: 11.64 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.0009595/0.0009596, allocations: 87.14 kB / 0.733 GB, free: 44.17 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.552e-05, allocations: 4 kB / 0.8518 GB, free: 2.617 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7393/0.7394, allocations: 115.3 MB / 0.9645 GB, free: 78.89 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2435/0.9829, allocations: 136.9 MB / 1.098 GB, free: 2.852 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.9832, allocations: 65.72 kB / 1.098 GB, free: 2.789 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.05701/1.04, allocations: 22.08 MB / 1.12 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.453e-06/1.04, allocations: 4.594 kB / 1.12 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.526e-05/1.04, allocations: 4.688 kB / 1.12 GB, free: 12.79 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.001015/1.041, allocations: 0.6126 MB / 1.12 GB, free: 12.11 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/1.041, allocations: 8.031 kB / 1.12 GB, free: 12.1 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.31e-05/1.041, allocations: 25.38 kB / 1.12 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/1.042, allocations: 258.4 kB / 1.121 GB, free: 11.79 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/1.042, allocations: 4.688 kB / 1.121 GB, free: 11.78 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/1.042, allocations: 12 kB / 1.121 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003982/1.042, allocations: 307.8 kB / 1.121 GB, free: 11.47 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005406/1.043, allocations: 441.1 kB / 1.121 GB, free: 11.03 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/1.043, allocations: 3.938 kB / 1.121 GB, free: 11.03 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/1.043, allocations: 4 kB / 1.121 GB, free: 11.02 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/1.043, allocations: 4 kB / 1.121 GB, free: 11.02 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005969/1.044, allocations: 0.5155 MB / 1.122 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/1.045, allocations: 1.002 MB / 1.123 GB, free: 9.422 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006858/1.045, allocations: 0.644 MB / 1.123 GB, free: 8.77 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.024e-05/1.045, allocations: 11.97 kB / 1.123 GB, free: 8.758 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005509/1.046, allocations: 467.3 kB / 1.124 GB, free: 8.277 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.903e-06/1.046, allocations: 0 / 1.124 GB, free: 8.277 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0009983/1.047, allocations: 0.7653 MB / 1.125 GB, free: 7.508 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.678e-05/1.047, allocations: 140.5 kB / 1.125 GB, free: 7.34 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/1.047, allocations: 216.3 kB / 1.125 GB, free: 7.121 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/1.047, allocations: 33.64 kB / 1.125 GB, free: 7.082 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 8.51e-05/1.047, allocations: 120.9 kB / 1.125 GB, free: 6.957 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.367e-05/1.048, allocations: 71.08 kB / 1.125 GB, free: 6.887 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.484e-05/1.048, allocations: 0 / 1.125 GB, free: 6.887 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001476/1.048, allocations: 338.8 kB / 1.126 GB, free: 6.547 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/1.048, allocations: 324.7 kB / 1.126 GB, free: 6.23 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/1.049, allocations: 409.6 kB / 1.126 GB, free: 5.797 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/1.049, allocations: 359.6 kB / 1.127 GB, free: 5.449 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/1.049, allocations: 0 / 1.127 GB, free: 5.449 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000998/1.05, allocations: 0.7861 MB / 1.127 GB, free: 4.656 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/1.05, allocations: 8.125 kB / 1.127 GB, free: 4.648 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/1.05, allocations: 4 kB / 1.127 GB, free: 4.645 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/1.05, allocations: 5.562 kB / 1.127 GB, free: 4.641 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/1.05, allocations: 43.91 kB / 1.127 GB, free: 4.598 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/1.05, allocations: 7.938 kB / 1.127 GB, free: 4.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/1.051, allocations: 11.92 kB / 1.127 GB, free: 4.578 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000267/1.051, allocations: 217.1 kB / 1.128 GB, free: 4.367 MB / 0.7292 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.0001587/1.051, allocations: 135.9 kB / 1.128 GB, free: 4.227 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009049/1.052, allocations: 0.7792 MB / 1.129 GB, free: 3.445 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/1.052, allocations: 23.72 kB / 1.129 GB, free: 3.422 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.321e-05/1.052, allocations: 33.95 kB / 1.129 GB, free: 3.391 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/1.052, allocations: 4 kB / 1.129 GB, free: 3.387 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/1.052, allocations: 0 / 1.129 GB, free: 3.387 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/1.052, allocations: 4 kB / 1.129 GB, free: 3.383 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001907/1.054, allocations: 1.638 MB / 1.13 GB, free: 1.699 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/1.054, allocations: 0 / 1.13 GB, free: 1.699 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/1.054, allocations: 31.84 kB / 1.13 GB, free: 1.668 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/1.054, allocations: 3.438 kB / 1.13 GB, free: 1.668 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/1.054, allocations: 19.97 kB / 1.13 GB, free: 1.648 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/1.054, allocations: 8 kB / 1.13 GB, free: 1.641 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.054, allocations: 0 / 1.13 GB, free: 1.641 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/1.055, allocations: 1.123 MB / 1.131 GB, free: 492 kB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.651e-05/1.055, allocations: 100.7 kB / 1.131 GB, free: 372 kB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.813e-05/1.055, allocations: 7.953 kB / 1.131 GB, free: 364 kB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/1.056, allocations: 7.984 kB / 1.131 GB, free: 356 kB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/1.056, allocations: 51.92 kB / 1.132 GB, free: 304 kB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000275/1.056, allocations: 226 kB / 1.132 GB, free: 80 kB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002456/1.056, allocations: 164.5 kB / 1.132 GB, free: 15.91 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3.01e-07/1.056, allocations: 4 kB / 1.132 GB, free: 15.91 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000541/1.057, allocations: 48 kB / 1.132 GB, free: 15.86 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.001842/1.059, allocations: 1.918 MB / 1.134 GB, free: 13.91 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001003/1.06, allocations: 0.7047 MB / 1.135 GB, free: 13.21 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/1.06, allocations: 8.25 kB / 1.135 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0005792/1.06, allocations: 395.7 kB / 1.135 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/1.062, allocations: 361.1 kB / 1.135 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/1.064, allocations: 0.8979 MB / 1.136 GB, free: 11.53 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005171/1.064, allocations: 0.7704 MB / 1.137 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003652/1.065, allocations: 95.42 kB / 1.137 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/1.065, allocations: 115.4 kB / 1.137 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of SimCode: time 1.001e-06/1.065, allocations: 0 / 1.137 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03199/1.097, allocations: 9.975 MB / 1.147 GB, free: 0.7773 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/1.097, allocations: 150.7 kB / 1.147 GB, free: 0.5859 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.063/3.161, allocations: 0 / 1.147 GB, free: 0.5859 MB / 0.7448 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)