Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.177/2.177, allocations: 248.5 MB / 261.1 MB, free: 6.055 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.001389/0.001388, allocations: 184.8 kB / 320.4 MB, free: 15.34 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.981/1.981, allocations: 205.2 MB / 0.5711 GB, free: 11.81 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.001117/0.001116, allocations: 95.47 kB / 0.6754 GB, free: 0.9141 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.879e-05/4.925e-05, allocations: 7.984 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2298, allocations: 106.2 MB / 0.8907 GB, free: 7.465 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8944/1.124, allocations: 131.4 MB / 1.019 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/1.125, allocations: 67.59 kB / 1.019 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.09909/1.224, allocations: 22.24 MB / 1.041 GB, free: 1.527 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.014e-06/1.224, allocations: 0 / 1.041 GB, free: 1.527 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.125e-05/1.224, allocations: 8 kB / 1.041 GB, free: 1.52 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.001285/1.225, allocations: 0.6099 MB / 1.041 GB, free: 0.8516 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/1.225, allocations: 12.03 kB / 1.041 GB, free: 0.8398 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.215e-05/1.225, allocations: 48.42 kB / 1.041 GB, free: 0.793 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.459e-05/1.225, allocations: 35.52 kB / 1.041 GB, free: 0.7578 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/1.226, allocations: 247.8 kB / 1.042 GB, free: 500 kB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/1.226, allocations: 18.97 kB / 1.042 GB, free: 488 kB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/1.226, allocations: 15.5 kB / 1.042 GB, free: 476 kB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008867/1.227, allocations: 453.2 kB / 1.042 GB, free: 84 kB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/1.227, allocations: 0 / 1.042 GB, free: 84 kB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/1.227, allocations: 3.812 kB / 1.042 GB, free: 84 kB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/1.227, allocations: 7.938 kB / 1.042 GB, free: 76 kB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00064/1.228, allocations: 321.9 kB / 1.042 GB, free: 15.81 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009685/1.229, allocations: 0.5549 MB / 1.043 GB, free: 15.28 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001923/1.231, allocations: 1.025 MB / 1.044 GB, free: 14.38 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/1.232, allocations: 0.6548 MB / 1.045 GB, free: 13.83 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 5.019e-05/1.232, allocations: 4 kB / 1.045 GB, free: 13.82 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009136/1.233, allocations: 493.1 kB / 1.045 GB, free: 13.39 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 2.955e-06/1.233, allocations: 0 / 1.045 GB, free: 13.39 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.00179/1.235, allocations: 0.778 MB / 1.046 GB, free: 12.73 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/1.235, allocations: 140 kB / 1.046 GB, free: 12.57 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003869/1.235, allocations: 226 kB / 1.046 GB, free: 12.38 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 8.235e-05/1.235, allocations: 36.83 kB / 1.046 GB, free: 12.34 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 9.653e-05/1.235, allocations: 124 kB / 1.046 GB, free: 12.24 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/1.236, allocations: 84.28 kB / 1.046 GB, free: 12.17 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-05/1.236, allocations: 6.25 kB / 1.046 GB, free: 12.17 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001498/1.236, allocations: 343.5 kB / 1.047 GB, free: 11.84 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006543/1.236, allocations: 327.6 kB / 1.047 GB, free: 11.58 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007231/1.237, allocations: 423 kB / 1.048 GB, free: 11.2 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007484/1.238, allocations: 353.7 kB / 1.048 GB, free: 10.91 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/1.238, allocations: 0 / 1.048 GB, free: 10.91 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001741/1.24, allocations: 0.834 MB / 1.049 GB, free: 10.21 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/1.24, allocations: 6.656 kB / 1.049 GB, free: 10.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/1.24, allocations: 4 kB / 1.049 GB, free: 10.2 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/1.24, allocations: 4 kB / 1.049 GB, free: 10.2 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/1.24, allocations: 46.97 kB / 1.049 GB, free: 10.16 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/1.24, allocations: 4 kB / 1.049 GB, free: 10.15 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/1.241, allocations: 23.48 kB / 1.049 GB, free: 10.13 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004265/1.241, allocations: 210.9 kB / 1.049 GB, free: 9.934 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.0002435/1.241, allocations: 159.2 kB / 1.049 GB, free: 9.785 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.557e-05/1.241, allocations: 31.62 kB / 1.049 GB, free: 9.754 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/1.242, allocations: 38.7 kB / 1.049 GB, free: 9.734 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/1.242, allocations: 4 kB / 1.049 GB, free: 9.73 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/1.242, allocations: 0 / 1.049 GB, free: 9.73 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/1.242, allocations: 0 / 1.049 GB, free: 9.73 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/1.245, allocations: 1.691 MB / 1.051 GB, free: 8.195 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/1.245, allocations: 3.938 kB / 1.051 GB, free: 8.191 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/1.245, allocations: 27.78 kB / 1.051 GB, free: 8.168 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/1.245, allocations: 0 / 1.051 GB, free: 8.168 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.172e-05/1.245, allocations: 22.91 kB / 1.051 GB, free: 8.148 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.755e-06/1.245, allocations: 4.078 kB / 1.051 GB, free: 8.145 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/1.245, allocations: 7.938 kB / 1.051 GB, free: 8.137 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/1.247, allocations: 1.155 MB / 1.052 GB, free: 7.078 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/1.247, allocations: 104.7 kB / 1.052 GB, free: 6.957 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.767e-05/1.247, allocations: 11.92 kB / 1.052 GB, free: 6.949 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/1.248, allocations: 6.75 kB / 1.052 GB, free: 6.949 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/1.248, allocations: 46.5 kB / 1.052 GB, free: 6.914 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004301/1.248, allocations: 222.5 kB / 1.052 GB, free: 6.699 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0003963/1.249, allocations: 172.5 kB / 1.053 GB, free: 6.551 MB / 0.6667 GB Notification: Performance of sort global known variables: time 8.32e-07/1.249, allocations: 0 / 1.053 GB, free: 6.551 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001702/1.25, allocations: 62.38 kB / 1.053 GB, free: 6.5 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.002349/1.253, allocations: 1.941 MB / 1.055 GB, free: 4.664 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001616/1.254, allocations: 0.7212 MB / 1.055 GB, free: 4.062 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/1.254, allocations: 0 / 1.055 GB, free: 4.062 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008686/1.255, allocations: 419.8 kB / 1.056 GB, free: 3.719 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/1.258, allocations: 368.9 kB / 1.056 GB, free: 3.391 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/1.261, allocations: 0.9299 MB / 1.057 GB, free: 2.551 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/1.261, allocations: 0.7589 MB / 1.058 GB, free: 1.773 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005263/1.262, allocations: 102.9 kB / 1.058 GB, free: 1.672 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/1.262, allocations: 116.5 kB / 1.058 GB, free: 1.609 MB / 0.6667 GB Notification: Performance of SimCode: time 1.673e-06/1.262, allocations: 4 kB / 1.058 GB, free: 1.605 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05223/1.314, allocations: 10.59 MB / 1.068 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003249/1.314, allocations: 167.4 kB / 1.068 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.631/3.946, allocations: 0 / 1.068 GB, free: 6.922 MB / 0.6823 GB