Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.009954/0.009959, allocations: 92.88 kB / 15.04 MB, free: 6.059 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001179/0.001179, allocations: 172.9 kB / 15.92 MB, free: 5.996 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.338/2.338, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.358/2.358, allocations: 252.8 MB / 0.511 GB, free: 8.336 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007303/0.0007305, allocations: 11.22 kB / 0.6243 GB, free: 28.29 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2348, allocations: 106.2 MB / 0.7281 GB, free: 10.17 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001898/0.2368, allocations: 1.114 MB / 0.7292 GB, free: 9.043 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0008132/0.2376, allocations: 271.9 kB / 0.7294 GB, free: 8.777 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.717e-05/0.2377, allocations: 0 / 0.7294 GB, free: 8.777 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.2378, allocations: 11.88 kB / 0.7294 GB, free: 8.766 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 8.364e-05/0.2379, allocations: 23.95 kB / 0.7295 GB, free: 8.742 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003897/0.2383, allocations: 67.86 kB / 0.7295 GB, free: 8.676 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.2387, allocations: 144.2 kB / 0.7297 GB, free: 8.535 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 6.785e-05/0.2387, allocations: 21.09 kB / 0.7297 GB, free: 8.512 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.2389, allocations: 79.81 kB / 0.7298 GB, free: 8.434 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.2391, allocations: 103.7 kB / 0.7299 GB, free: 8.332 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 5.356e-05/0.2392, allocations: 8 kB / 0.7299 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 5.098e-05/0.2392, allocations: 12 kB / 0.7299 GB, free: 8.312 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.2394, allocations: 83.78 kB / 0.73 GB, free: 8.23 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 7.443e-05/0.2395, allocations: 53.58 kB / 0.73 GB, free: 8.172 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.2398, allocations: 207.6 kB / 0.7302 GB, free: 7.969 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2398, allocations: 3.938 kB / 0.7302 GB, free: 7.965 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2398, allocations: 0 / 0.7302 GB, free: 7.965 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.2398, allocations: 0 / 0.7302 GB, free: 7.965 MB / 0.5573 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.001396/0.2412, allocations: 0.6318 MB / 0.7308 GB, free: 7.258 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.2413, allocations: 12.03 kB / 0.7308 GB, free: 7.246 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.975e-05/0.2414, allocations: 46.55 kB / 0.7309 GB, free: 7.191 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.361e-05/0.2414, allocations: 31.62 kB / 0.7309 GB, free: 7.16 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.2419, allocations: 253.7 kB / 0.7312 GB, free: 6.867 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.963e-05/0.2419, allocations: 12.28 kB / 0.7312 GB, free: 6.855 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.955e-05/0.242, allocations: 20 kB / 0.7312 GB, free: 6.836 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009236/0.2429, allocations: 459.3 kB / 0.7316 GB, free: 6.371 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.243, allocations: 0 / 0.7316 GB, free: 6.371 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.765e-05/0.243, allocations: 7.984 kB / 0.7316 GB, free: 6.363 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.243, allocations: 7.938 kB / 0.7316 GB, free: 6.355 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006507/0.2437, allocations: 326.8 kB / 0.7319 GB, free: 6.039 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009367/0.2446, allocations: 0.5702 MB / 0.7325 GB, free: 5.41 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001992/0.2466, allocations: 1.025 MB / 0.7335 GB, free: 4.348 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.509e-05/0.2467, allocations: 8.016 kB / 0.7335 GB, free: 4.34 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009436/0.2477, allocations: 478.8 kB / 0.734 GB, free: 3.848 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=37): time 2.715e-06/0.2477, allocations: 0 / 0.734 GB, free: 3.848 MB / 0.5573 GB Notification: Performance of matching and sorting (n=37): time 0.002416/0.2501, allocations: 1.102 MB / 0.735 GB, free: 2.738 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.977e-05/0.2502, allocations: 144.5 kB / 0.7352 GB, free: 2.566 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.2506, allocations: 256.7 kB / 0.7354 GB, free: 2.309 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/0.2507, allocations: 37.7 kB / 0.7355 GB, free: 2.266 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.2508, allocations: 125.1 kB / 0.7356 GB, free: 2.137 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.251, allocations: 83.12 kB / 0.7357 GB, free: 2.055 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.251, allocations: 8 kB / 0.7357 GB, free: 2.047 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.2512, allocations: 342.8 kB / 0.736 GB, free: 1.703 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006504/0.2518, allocations: 332.7 kB / 0.7363 GB, free: 1.379 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007207/0.2525, allocations: 414.5 kB / 0.7367 GB, free: 0.9375 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007286/0.2533, allocations: 361.9 kB / 0.7371 GB, free: 0.5859 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2533, allocations: 4 kB / 0.7371 GB, free: 0.582 MB / 0.5573 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001721/0.255, allocations: 0.8292 MB / 0.7379 GB, free: 15.75 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.2551, allocations: 8 kB / 0.7379 GB, free: 15.74 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.2551, allocations: 4 kB / 0.7379 GB, free: 15.73 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.424e-05/0.2551, allocations: 4 kB / 0.7379 GB, free: 15.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.2554, allocations: 43.97 kB / 0.7379 GB, free: 15.69 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.878e-05/0.2555, allocations: 11.92 kB / 0.7379 GB, free: 15.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004446/0.2559, allocations: 27.75 kB / 0.738 GB, free: 15.65 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000486/0.2564, allocations: 267.4 kB / 0.7382 GB, free: 15.39 MB / 0.573 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 () * Number of clocked 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.000315/0.2567, allocations: 197.6 kB / 0.7384 GB, free: 15.18 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.811e-05/0.2568, allocations: 23.72 kB / 0.7384 GB, free: 15.16 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.2569, allocations: 38.45 kB / 0.7385 GB, free: 15.12 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.257, allocations: 8 kB / 0.7385 GB, free: 15.12 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.257, allocations: 0 / 0.7385 GB, free: 15.12 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.257, allocations: 7.969 kB / 0.7385 GB, free: 15.11 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/0.2602, allocations: 1.725 MB / 0.7402 GB, free: 13.33 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.2602, allocations: 0 / 0.7402 GB, free: 13.33 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.758e-05/0.2603, allocations: 19.92 kB / 0.7402 GB, free: 13.31 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.2603, allocations: 0 / 0.7402 GB, free: 13.31 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.498e-05/0.2604, allocations: 27.97 kB / 0.7402 GB, free: 13.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.2604, allocations: 0 / 0.7402 GB, free: 13.28 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2604, allocations: 0 / 0.7402 GB, free: 13.28 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.2622, allocations: 1.153 MB / 0.7413 GB, free: 12.09 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.2623, allocations: 108.7 kB / 0.7414 GB, free: 11.96 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.2624, allocations: 11.94 kB / 0.7415 GB, free: 11.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004044/0.2629, allocations: 8 kB / 0.7415 GB, free: 11.95 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.2631, allocations: 55.92 kB / 0.7415 GB, free: 11.89 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005346/0.2636, allocations: 279.5 kB / 0.7418 GB, free: 11.62 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002579/0.2639, allocations: 168.5 kB / 0.7419 GB, free: 11.45 MB / 0.573 GB Notification: Performance of sort global known variables: time 5.21e-07/0.2639, allocations: 0 / 0.7419 GB, free: 11.45 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0007388/0.2646, allocations: 67.98 kB / 0.742 GB, free: 11.39 MB / 0.573 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) * Number of clocked states: 0 () * 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.002377/0.267, allocations: 1.937 MB / 0.7439 GB, free: 9.41 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001594/0.2687, allocations: 0.738 MB / 0.7446 GB, free: 8.672 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.2687, allocations: 0 / 0.7446 GB, free: 8.672 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.2696, allocations: 407.7 kB / 0.745 GB, free: 8.273 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002579/0.2722, allocations: 376.6 kB / 0.7454 GB, free: 7.918 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00343/0.2756, allocations: 2.97 MB / 0.7483 GB, free: 4.836 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.2761, allocations: 0.7686 MB / 0.749 GB, free: 4.039 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0005464/0.2767, allocations: 102.9 kB / 0.7491 GB, free: 3.941 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003006/0.277, allocations: 119.3 kB / 0.7492 GB, free: 3.828 MB / 0.573 GB Notification: Performance of SimCode: time 1.132e-06/0.277, allocations: 0 / 0.7492 GB, free: 3.828 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03924/0.3163, allocations: 10.85 MB / 0.7598 GB, free: 9.207 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002333/0.3166, allocations: 183.3 kB / 0.76 GB, free: 8.965 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.805/3.121, allocations: 2.391 kB / 0.76 GB, free: 8.965 MB / 0.5886 GB