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.476/1.476, allocations: 249.5 MB / 257 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 187.6 kB / 316.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.643/1.643, allocations: 205.3 MB / 0.5671 GB, free: 15.85 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.0009179/0.0009179, allocations: 98.02 kB / 0.6714 GB, free: 4.969 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.014e-05/2.017e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2157, allocations: 106.3 MB / 0.8853 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6951/0.9109, allocations: 131.8 MB / 1.014 GB, free: 5.535 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.9112, allocations: 69.27 kB / 1.014 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.05314/0.9644, allocations: 22.13 MB / 1.036 GB, free: 3.727 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9644, allocations: 4 kB / 1.036 GB, free: 3.723 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.869e-05/0.9644, allocations: 8 kB / 1.036 GB, free: 3.715 MB / 0.6511 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.0008702/0.9653, allocations: 0.6085 MB / 1.036 GB, free: 3.051 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.9654, allocations: 8.031 kB / 1.036 GB, free: 3.043 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.733e-05/0.9654, allocations: 31.62 kB / 1.036 GB, free: 3.012 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.9658, allocations: 240.6 kB / 1.037 GB, free: 2.75 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.9658, allocations: 7.984 kB / 1.037 GB, free: 2.742 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.9658, allocations: 19.94 kB / 1.037 GB, free: 2.723 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003567/0.9662, allocations: 308 kB / 1.037 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004726/0.9667, allocations: 436.9 kB / 1.037 GB, free: 2.102 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.9667, allocations: 0 / 1.037 GB, free: 2.102 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.9667, allocations: 7.984 kB / 1.037 GB, free: 2.094 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.9667, allocations: 4 kB / 1.037 GB, free: 2.09 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/0.9673, allocations: 0.5219 MB / 1.038 GB, free: 1.59 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009732/0.9683, allocations: 1.003 MB / 1.039 GB, free: 0.7148 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006214/0.9689, allocations: 0.6422 MB / 1.039 GB, free: 176 kB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.969, allocations: 7.25 kB / 1.04 GB, free: 172 kB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005157/0.9695, allocations: 469.8 kB / 1.04 GB, free: 15.76 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 1.593e-06/0.9695, allocations: 4 kB / 1.04 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.000902/0.9704, allocations: 0.7607 MB / 1.041 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.9705, allocations: 140 kB / 1.041 GB, free: 14.94 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.9707, allocations: 218.3 kB / 1.041 GB, free: 14.75 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.9707, allocations: 25.7 kB / 1.041 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 6.75e-05/0.9708, allocations: 123.7 kB / 1.041 GB, free: 14.62 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 6.96e-05/0.9709, allocations: 79.3 kB / 1.041 GB, free: 14.56 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.426e-05/0.9709, allocations: 0 / 1.041 GB, free: 14.56 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.971, allocations: 339.6 kB / 1.042 GB, free: 14.23 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.9713, allocations: 319.1 kB / 1.042 GB, free: 13.98 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003735/0.9717, allocations: 411.3 kB / 1.042 GB, free: 13.61 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003708/0.9721, allocations: 350.3 kB / 1.043 GB, free: 13.33 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.9721, allocations: 0 / 1.043 GB, free: 13.33 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008592/0.973, allocations: 0.7934 MB / 1.043 GB, free: 12.65 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.973, allocations: 4 kB / 1.043 GB, free: 12.65 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.973, allocations: 4 kB / 1.043 GB, free: 12.64 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.973, allocations: 4 kB / 1.043 GB, free: 12.64 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.9732, allocations: 47.2 kB / 1.043 GB, free: 12.6 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.9732, allocations: 7.938 kB / 1.043 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002121/0.9734, allocations: 19.91 kB / 1.043 GB, free: 12.57 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002483/0.9737, allocations: 211.2 kB / 1.044 GB, free: 12.37 MB / 0.6667 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.0001347/0.9738, allocations: 145.3 kB / 1.044 GB, free: 12.23 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000809/0.9747, allocations: 0.7599 MB / 1.045 GB, free: 11.58 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.9747, allocations: 27.62 kB / 1.045 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.115e-05/0.9748, allocations: 36.2 kB / 1.045 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.9748, allocations: 8 kB / 1.045 GB, free: 11.53 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.9748, allocations: 4 kB / 1.045 GB, free: 11.52 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.9748, allocations: 0 / 1.045 GB, free: 11.52 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.9764, allocations: 1.639 MB / 1.046 GB, free: 10.04 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.9765, allocations: 0 / 1.046 GB, free: 10.04 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.828e-05/0.9765, allocations: 27.78 kB / 1.046 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.9765, allocations: 4 kB / 1.046 GB, free: 10.01 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.9766, allocations: 15.67 kB / 1.046 GB, free: 10 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.9766, allocations: 0 / 1.046 GB, free: 10 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.9766, allocations: 4.078 kB / 1.046 GB, free: 9.996 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009221/0.9775, allocations: 1.124 MB / 1.047 GB, free: 8.961 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 6.485e-05/0.9776, allocations: 108.6 kB / 1.047 GB, free: 8.836 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.949e-05/0.9776, allocations: 7.688 kB / 1.047 GB, free: 8.832 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.9779, allocations: 12 kB / 1.047 GB, free: 8.82 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.13e-05/0.978, allocations: 57.3 kB / 1.048 GB, free: 8.777 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000215/0.9782, allocations: 215 kB / 1.048 GB, free: 8.57 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001141/0.9783, allocations: 161.8 kB / 1.048 GB, free: 8.434 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9783, allocations: 0 / 1.048 GB, free: 8.434 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004322/0.9787, allocations: 51.98 kB / 1.048 GB, free: 8.383 MB / 0.6667 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.0013/0.98, allocations: 1.918 MB / 1.05 GB, free: 6.559 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0007538/0.9808, allocations: 0.7098 MB / 1.051 GB, free: 5.973 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9808, allocations: 0 / 1.051 GB, free: 5.973 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004129/0.9812, allocations: 392.5 kB / 1.051 GB, free: 5.652 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.9828, allocations: 371 kB / 1.051 GB, free: 5.324 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.9841, allocations: 0.9041 MB / 1.052 GB, free: 4.484 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.9845, allocations: 0.7608 MB / 1.053 GB, free: 3.703 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002574/0.9847, allocations: 103.2 kB / 1.053 GB, free: 3.605 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.9849, allocations: 114.5 kB / 1.053 GB, free: 3.543 MB / 0.6667 GB Notification: Performance of SimCode: time 2.61e-07/0.9849, allocations: 3.938 kB / 1.053 GB, free: 3.539 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02797/1.013, allocations: 9.977 MB / 1.063 GB, free: 9.668 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/1.013, allocations: 153.1 kB / 1.063 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.878, allocations: 0 / 1.063 GB, free: 9.473 MB / 0.6823 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)