Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.592/2.592, allocations: 284.9 MB / 292.4 MB, free: 10.57 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.002446/0.002447, allocations: 180.9 kB / 360.6 MB, free: 7.273 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.171/2.171, allocations: 205.3 MB / 0.6191 GB, free: 12.16 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.001001/0.001001, allocations: 94.36 kB / 0.7321 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.526e-05/2.532e-05, allocations: 4 kB / 0.8509 GB, free: 3.316 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8428/0.8429, allocations: 115.3 MB / 0.9634 GB, free: 78.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2423/1.085, allocations: 136.7 MB / 1.097 GB, free: 3.75 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/1.086, allocations: 76.05 kB / 1.097 GB, free: 3.68 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1006/1.186, allocations: 22.08 MB / 1.119 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.873e-06/1.186, allocations: 0.625 kB / 1.119 GB, free: 13.69 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.38e-05/1.186, allocations: 4 kB / 1.119 GB, free: 13.69 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.00133/1.188, allocations: 0.6084 MB / 1.119 GB, free: 13.01 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.764e-05/1.188, allocations: 12.62 kB / 1.119 GB, free: 13 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/1.188, allocations: 24.34 kB / 1.119 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/1.188, allocations: 247.1 kB / 1.119 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/1.188, allocations: 11.94 kB / 1.119 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/1.188, allocations: 19.98 kB / 1.119 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006474/1.189, allocations: 305.4 kB / 1.12 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008652/1.19, allocations: 437.7 kB / 1.12 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/1.19, allocations: 0 / 1.12 GB, free: 11.93 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/1.19, allocations: 9.234 kB / 1.12 GB, free: 11.92 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/1.19, allocations: 4 kB / 1.12 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009811/1.191, allocations: 0.5142 MB / 1.121 GB, free: 11.36 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001993/1.193, allocations: 1.006 MB / 1.122 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/1.194, allocations: 0.6447 MB / 1.122 GB, free: 9.664 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/1.195, allocations: 4 kB / 1.122 GB, free: 9.66 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009088/1.195, allocations: 466.2 kB / 1.123 GB, free: 9.18 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 3.457e-06/1.196, allocations: 0 / 1.123 GB, free: 9.18 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001718/1.197, allocations: 0.7639 MB / 1.123 GB, free: 8.41 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/1.197, allocations: 140.5 kB / 1.124 GB, free: 8.242 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003726/1.198, allocations: 225.3 kB / 1.124 GB, free: 8.016 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 9.12e-05/1.198, allocations: 29.7 kB / 1.124 GB, free: 7.98 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/1.198, allocations: 120.9 kB / 1.124 GB, free: 7.855 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.000113/1.198, allocations: 67.08 kB / 1.124 GB, free: 7.789 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.321e-05/1.198, allocations: 0 / 1.124 GB, free: 7.789 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001698/1.198, allocations: 346.8 kB / 1.124 GB, free: 7.441 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006315/1.199, allocations: 320.7 kB / 1.125 GB, free: 7.129 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007088/1.2, allocations: 401.6 kB / 1.125 GB, free: 6.703 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007506/1.201, allocations: 364.6 kB / 1.125 GB, free: 6.352 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/1.201, allocations: 0 / 1.125 GB, free: 6.352 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001807/1.202, allocations: 0.7859 MB / 1.126 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/1.202, allocations: 9.5 kB / 1.126 GB, free: 5.551 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/1.202, allocations: 4 kB / 1.126 GB, free: 5.547 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-05/1.202, allocations: 4 kB / 1.126 GB, free: 5.543 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/1.203, allocations: 43.89 kB / 1.126 GB, free: 5.5 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/1.203, allocations: 13.88 kB / 1.126 GB, free: 5.488 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004252/1.203, allocations: 7.938 kB / 1.126 GB, free: 5.48 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004393/1.204, allocations: 207.8 kB / 1.126 GB, free: 5.277 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.0002222/1.204, allocations: 145.9 kB / 1.127 GB, free: 5.125 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001637/1.206, allocations: 0.7736 MB / 1.127 GB, free: 4.348 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.921e-05/1.206, allocations: 27.7 kB / 1.127 GB, free: 4.32 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001291/1.206, allocations: 33.97 kB / 1.127 GB, free: 4.289 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/1.206, allocations: 8 kB / 1.127 GB, free: 4.281 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/1.206, allocations: 0 / 1.127 GB, free: 4.281 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/1.206, allocations: 3.984 kB / 1.127 GB, free: 4.277 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003034/1.209, allocations: 1.641 MB / 1.129 GB, free: 2.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/1.209, allocations: 0 / 1.129 GB, free: 2.59 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.825e-05/1.209, allocations: 23.8 kB / 1.129 GB, free: 2.57 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.478e-05/1.209, allocations: 4 kB / 1.129 GB, free: 2.566 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.866e-05/1.209, allocations: 19.91 kB / 1.129 GB, free: 2.547 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/1.209, allocations: 4 kB / 1.129 GB, free: 2.543 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.209, allocations: 0 / 1.129 GB, free: 2.543 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/1.211, allocations: 1.125 MB / 1.13 GB, free: 1.383 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/1.211, allocations: 112.7 kB / 1.13 GB, free: 1.254 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.217e-05/1.211, allocations: 8 kB / 1.13 GB, free: 1.246 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000391/1.212, allocations: 0 / 1.13 GB, free: 1.246 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/1.212, allocations: 51.92 kB / 1.13 GB, free: 1.195 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004477/1.212, allocations: 226.2 kB / 1.131 GB, free: 0.9766 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002491/1.213, allocations: 160.5 kB / 1.131 GB, free: 0.8164 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.31e-07/1.213, allocations: 0 / 1.131 GB, free: 0.8164 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007774/1.213, allocations: 52 kB / 1.131 GB, free: 0.7656 MB / 0.7292 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.002379/1.216, allocations: 1.927 MB / 1.133 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001567/1.217, allocations: 0.7044 MB / 1.133 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.217, allocations: 0 / 1.133 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0009062/1.218, allocations: 387.8 kB / 1.134 GB, free: 13.71 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/1.221, allocations: 370.2 kB / 1.134 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/1.224, allocations: 0.899 MB / 1.135 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/1.224, allocations: 0.7659 MB / 1.136 GB, free: 11.63 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0005913/1.225, allocations: 94.81 kB / 1.136 GB, free: 11.55 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/1.225, allocations: 123.3 kB / 1.136 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of SimCode: time 1.242e-06/1.225, allocations: 0 / 1.136 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06343/1.289, allocations: 9.963 MB / 1.146 GB, free: 1.633 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003153/1.289, allocations: 141.7 kB / 1.146 GB, free: 1.441 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.722/4.011, allocations: 0 / 1.146 GB, free: 1.441 MB / 0.7448 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)