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.465/1.465, allocations: 249.3 MB / 261.9 MB, free: 5.91 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.0009926/0.0009923, allocations: 172.6 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0009331/0.0009332, allocations: 82.48 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.34e-05/4.353e-05, allocations: 8 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2477, allocations: 106.3 MB / 0.8919 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8504/1.098, allocations: 131.5 MB / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/1.098, allocations: 67.41 kB / 1.02 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.05684/1.155, allocations: 22.25 MB / 1.042 GB, free: 0.8203 MB / 0.6511 GB Notification: Performance of FrontEnd: time 4.488e-06/1.155, allocations: 0 / 1.042 GB, free: 0.8203 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.698e-05/1.155, allocations: 7.938 kB / 1.042 GB, free: 0.8125 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.0009284/1.156, allocations: 0.6066 MB / 1.043 GB, free: 152 kB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/1.156, allocations: 8.031 kB / 1.043 GB, free: 144 kB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.892e-05/1.156, allocations: 45.05 kB / 1.043 GB, free: 96 kB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.179e-05/1.157, allocations: 35.58 kB / 1.043 GB, free: 60 kB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003686/1.157, allocations: 251.7 kB / 1.043 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/1.157, allocations: 11.22 kB / 1.043 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.755e-05/1.157, allocations: 19.19 kB / 1.043 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005737/1.158, allocations: 449.3 kB / 1.044 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/1.158, allocations: 0 / 1.044 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/1.158, allocations: 7.938 kB / 1.044 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/1.158, allocations: 11.94 kB / 1.044 GB, free: 15.37 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/1.158, allocations: 320.8 kB / 1.044 GB, free: 15.11 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006768/1.159, allocations: 0.5619 MB / 1.044 GB, free: 14.57 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/1.16, allocations: 1.019 MB / 1.045 GB, free: 13.68 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007464/1.161, allocations: 0.6524 MB / 1.046 GB, free: 13.13 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/1.161, allocations: 11.31 kB / 1.046 GB, free: 13.12 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005935/1.161, allocations: 474.1 kB / 1.046 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 2.565e-06/1.161, allocations: 0 / 1.046 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001147/1.163, allocations: 0.7887 MB / 1.047 GB, free: 12.04 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/1.163, allocations: 140.5 kB / 1.047 GB, free: 11.87 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/1.163, allocations: 223.4 kB / 1.048 GB, free: 11.68 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/1.163, allocations: 39.45 kB / 1.048 GB, free: 11.64 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/1.163, allocations: 125 kB / 1.048 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 8.126e-05/1.163, allocations: 76 kB / 1.048 GB, free: 11.48 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.543e-05/1.163, allocations: 3.938 kB / 1.048 GB, free: 11.48 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000171/1.163, allocations: 348.8 kB / 1.048 GB, free: 11.15 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003688/1.164, allocations: 326.2 kB / 1.048 GB, free: 10.89 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004713/1.164, allocations: 424.8 kB / 1.049 GB, free: 10.5 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004601/1.165, allocations: 358.2 kB / 1.049 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.165, allocations: 0 / 1.049 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001115/1.166, allocations: 0.8204 MB / 1.05 GB, free: 9.523 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/1.166, allocations: 11.94 kB / 1.05 GB, free: 9.512 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/1.166, allocations: 4.125 kB / 1.05 GB, free: 9.508 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.002e-05/1.166, allocations: 8 kB / 1.05 GB, free: 9.5 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/1.166, allocations: 42.81 kB / 1.05 GB, free: 9.461 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/1.166, allocations: 7.984 kB / 1.05 GB, free: 9.453 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/1.166, allocations: 18.31 kB / 1.05 GB, free: 9.441 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003266/1.167, allocations: 215 kB / 1.05 GB, free: 9.234 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.0001941/1.167, allocations: 157.9 kB / 1.05 GB, free: 9.09 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-05/1.167, allocations: 27.62 kB / 1.051 GB, free: 9.062 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/1.167, allocations: 38.58 kB / 1.051 GB, free: 9.043 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/1.167, allocations: 8 kB / 1.051 GB, free: 9.035 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/1.167, allocations: 4 kB / 1.051 GB, free: 9.031 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/1.167, allocations: 0 / 1.051 GB, free: 9.031 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/1.169, allocations: 1.691 MB / 1.052 GB, free: 7.496 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/1.169, allocations: 4 kB / 1.052 GB, free: 7.492 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.404e-05/1.169, allocations: 23.91 kB / 1.052 GB, free: 7.473 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/1.169, allocations: 8 kB / 1.052 GB, free: 7.465 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/1.17, allocations: 22.91 kB / 1.052 GB, free: 7.449 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/1.17, allocations: 0 / 1.052 GB, free: 7.449 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.17, allocations: 4 kB / 1.052 GB, free: 7.445 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/1.171, allocations: 1.14 MB / 1.053 GB, free: 6.398 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 9.174e-05/1.171, allocations: 112.6 kB / 1.053 GB, free: 6.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/1.171, allocations: 11.12 kB / 1.054 GB, free: 6.266 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/1.171, allocations: 11.19 kB / 1.054 GB, free: 6.258 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.151e-05/1.171, allocations: 46.62 kB / 1.054 GB, free: 6.223 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003278/1.171, allocations: 227.4 kB / 1.054 GB, free: 6.004 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0001715/1.172, allocations: 169.3 kB / 1.054 GB, free: 5.859 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.2e-07/1.172, allocations: 0 / 1.054 GB, free: 5.859 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005074/1.172, allocations: 67.12 kB / 1.054 GB, free: 5.805 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.001569/1.174, allocations: 1.943 MB / 1.056 GB, free: 3.961 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0009415/1.175, allocations: 0.7272 MB / 1.057 GB, free: 3.355 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/1.175, allocations: 0 / 1.057 GB, free: 3.355 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000474/1.175, allocations: 406 kB / 1.057 GB, free: 3.023 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/1.177, allocations: 376.7 kB / 1.057 GB, free: 2.699 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/1.178, allocations: 0.9243 MB / 1.058 GB, free: 1.863 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/1.179, allocations: 0.7603 MB / 1.059 GB, free: 1.082 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002742/1.179, allocations: 106.9 kB / 1.059 GB, free: 0.9766 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/1.179, allocations: 111.5 kB / 1.059 GB, free: 0.918 MB / 0.6667 GB Notification: Performance of SimCode: time 9.22e-07/1.179, allocations: 4 kB / 1.059 GB, free: 0.9141 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/1.203, allocations: 10.62 MB / 1.07 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000281/1.204, allocations: 170.2 kB / 1.07 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/3.244, allocations: 12 kB / 1.07 GB, free: 6.23 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)