Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.047/4.047, allocations: 433.2 MB / 440.7 MB, free: 4.582 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.709e-05/2.702e-05, allocations: 6.531 kB / 0.5325 GB, free: 12.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.212, allocations: 98.73 MB / 0.6289 GB, free: 9.148 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2932/0.5052, allocations: 123.7 MB / 0.7498 GB, free: 13.24 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.5055, allocations: 75.94 kB / 0.7498 GB, free: 13.17 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.09806/0.6036, allocations: 22.14 MB / 0.7714 GB, free: 6.996 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6036, allocations: 0 / 0.7714 GB, free: 6.996 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.522e-05/0.6037, allocations: 8 kB / 0.7714 GB, free: 6.988 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.001299/0.605, allocations: 0.6036 MB / 0.772 GB, free: 6.312 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.6051, allocations: 12.03 kB / 0.772 GB, free: 6.301 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.665e-05/0.6052, allocations: 31.58 kB / 0.7721 GB, free: 6.27 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004473/0.6056, allocations: 245.7 kB / 0.7723 GB, free: 5.992 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.6057, allocations: 8 kB / 0.7723 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.276e-05/0.6058, allocations: 11.98 kB / 0.7723 GB, free: 5.973 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006428/0.6064, allocations: 312.4 kB / 0.7726 GB, free: 5.668 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008231/0.6072, allocations: 434.5 kB / 0.773 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.6073, allocations: 0 / 0.773 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.6073, allocations: 3.984 kB / 0.773 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.6073, allocations: 7.953 kB / 0.7731 GB, free: 5.215 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009429/0.6083, allocations: 0.5124 MB / 0.7736 GB, free: 4.656 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/0.6102, allocations: 0.9982 MB / 0.7745 GB, free: 3.621 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/0.6115, allocations: 0.6477 MB / 0.7752 GB, free: 2.961 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.475e-05/0.6116, allocations: 8 kB / 0.7752 GB, free: 2.953 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008895/0.6125, allocations: 466.6 kB / 0.7756 GB, free: 2.473 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 3.266e-06/0.6125, allocations: 0 / 0.7756 GB, free: 2.473 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001731/0.6142, allocations: 0.7639 MB / 0.7764 GB, free: 1.703 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.6144, allocations: 144.5 kB / 0.7765 GB, free: 1.531 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003624/0.6147, allocations: 212.4 kB / 0.7767 GB, free: 1.309 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.155e-05/0.6148, allocations: 25.7 kB / 0.7767 GB, free: 1.277 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.6149, allocations: 128.8 kB / 0.7769 GB, free: 1.148 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.6151, allocations: 75 kB / 0.7769 GB, free: 1.074 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.6151, allocations: 0 / 0.7769 GB, free: 1.074 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001794/0.6153, allocations: 346.8 kB / 0.7773 GB, free: 0.7266 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.616, allocations: 320.7 kB / 0.7776 GB, free: 424 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5337/1.15, allocations: 407.9 kB / 0.7779 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/1.151, allocations: 349.6 kB / 0.7783 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/1.151, allocations: 1.438 kB / 0.7783 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002396/1.153, allocations: 0.7884 MB / 0.7791 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/1.153, allocations: 6.188 kB / 0.7791 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/1.153, allocations: 6.688 kB / 0.7791 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.701e-05/1.154, allocations: 6.109 kB / 0.7791 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/1.154, allocations: 42.31 kB / 0.7791 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.814e-05/1.154, allocations: 5.672 kB / 0.7791 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006063/1.155, allocations: 13.83 kB / 0.7791 GB, free: 147.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006461/1.155, allocations: 212.6 kB / 0.7793 GB, free: 147.2 MB / 0.6511 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.0002662/1.156, allocations: 139.4 kB / 0.7795 GB, free: 147 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002947/1.158, allocations: 0.7666 MB / 0.7802 GB, free: 147 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/1.159, allocations: 28.08 kB / 0.7802 GB, free: 147 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/1.159, allocations: 39.16 kB / 0.7803 GB, free: 147 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/1.159, allocations: 4.594 kB / 0.7803 GB, free: 147 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/1.159, allocations: 1.031 kB / 0.7803 GB, free: 147 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/1.159, allocations: 2.5 kB / 0.7803 GB, free: 147 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004579/1.164, allocations: 1.64 MB / 0.7819 GB, free: 146.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/1.164, allocations: 5.203 kB / 0.7819 GB, free: 146.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/1.164, allocations: 24.62 kB / 0.7819 GB, free: 146.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.556e-05/1.164, allocations: 4.844 kB / 0.7819 GB, free: 146.5 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.702e-05/1.164, allocations: 18.84 kB / 0.7819 GB, free: 146.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.748e-06/1.164, allocations: 6.406 kB / 0.7819 GB, free: 146.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/1.164, allocations: 0.9375 kB / 0.7819 GB, free: 146.5 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/1.166, allocations: 1.122 MB / 0.783 GB, free: 146.1 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/1.167, allocations: 105.6 kB / 0.7831 GB, free: 146 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/1.167, allocations: 5.266 kB / 0.7831 GB, free: 146 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006788/1.167, allocations: 1.734 kB / 0.7831 GB, free: 146 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002326/1.168, allocations: 55.14 kB / 0.7832 GB, free: 146 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007013/1.168, allocations: 223.7 kB / 0.7834 GB, free: 146 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003195/1.169, allocations: 162.6 kB / 0.7836 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.31e-07/1.169, allocations: 4 kB / 0.7836 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001225/1.17, allocations: 51.2 kB / 0.7836 GB, free: 145.9 MB / 0.6511 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.003086/1.173, allocations: 1.914 MB / 0.7855 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0023/1.175, allocations: 0.71 MB / 0.7862 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.176, allocations: 4.25 kB / 0.7862 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.001303/1.177, allocations: 394.8 kB / 0.7866 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003598/1.18, allocations: 364.6 kB / 0.7869 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/1.183, allocations: 0.8989 MB / 0.7878 GB, free: 144.5 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/1.183, allocations: 0.76 MB / 0.7885 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0005552/1.184, allocations: 99.8 kB / 0.7886 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/1.184, allocations: 120.1 kB / 0.7887 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.222e-06/1.184, allocations: 0 / 0.7887 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06063/1.245, allocations: 9.969 MB / 0.7985 GB, free: 141.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/1.245, allocations: 153.5 kB / 0.7986 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.541/3.786, allocations: 3.281 kB / 0.7986 GB, free: 141.5 MB / 0.6511 GB