Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.906/3.906, allocations: 432.6 MB / 445.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.118e-05, allocations: 4.344 kB / 0.5383 GB, free: 10.32 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2095, allocations: 98.73 MB / 0.6347 GB, free: 1.93 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2233/0.4329, allocations: 125.1 MB / 0.7569 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.4332, allocations: 75.89 kB / 0.7569 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0834/0.5167, allocations: 18.82 MB / 0.7753 GB, free: 1.742 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.392e-06/0.5167, allocations: 0 / 0.7753 GB, free: 1.742 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.147e-05/0.5168, allocations: 4 kB / 0.7753 GB, free: 1.738 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.001233/0.518, allocations: 0.5919 MB / 0.7759 GB, free: 1.074 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.5181, allocations: 20.02 kB / 0.7759 GB, free: 1.055 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.63e-05/0.5182, allocations: 46.55 kB / 0.776 GB, free: 1 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.461e-05/0.5183, allocations: 31.58 kB / 0.776 GB, free: 0.9688 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004735/0.5187, allocations: 249.7 kB / 0.7762 GB, free: 0.6875 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.081e-05/0.5188, allocations: 12.28 kB / 0.7762 GB, free: 0.6758 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.723e-05/0.5189, allocations: 16 kB / 0.7763 GB, free: 0.6602 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009126/0.5198, allocations: 462.7 kB / 0.7767 GB, free: 196 kB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.5198, allocations: 0 / 0.7767 GB, free: 196 kB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.5199, allocations: 0 / 0.7767 GB, free: 196 kB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.5199, allocations: 8 kB / 0.7767 GB, free: 188 kB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5256/1.046, allocations: 316.2 kB / 0.777 GB, free: 142.7 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/1.047, allocations: 0.5585 MB / 0.7776 GB, free: 142.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/1.049, allocations: 1.023 MB / 0.7786 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/1.05, allocations: 0.6505 MB / 0.7792 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 6.428e-05/1.05, allocations: 15.64 kB / 0.7792 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009431/1.051, allocations: 470.5 kB / 0.7797 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.986e-06/1.051, allocations: 0.5 kB / 0.7797 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.002133/1.053, allocations: 0.7891 MB / 0.7804 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.832e-05/1.053, allocations: 138 kB / 0.7806 GB, free: 142.1 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003634/1.054, allocations: 228.2 kB / 0.7808 GB, free: 142 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.172e-05/1.054, allocations: 39.33 kB / 0.7808 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/1.054, allocations: 122.2 kB / 0.7809 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/1.054, allocations: 77.44 kB / 0.781 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/1.054, allocations: 9.125 kB / 0.781 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.697e-05/1.054, allocations: 348.1 kB / 0.7813 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006656/1.055, allocations: 320.8 kB / 0.7817 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007353/1.056, allocations: 422.1 kB / 0.7821 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007759/1.056, allocations: 363.6 kB / 0.7824 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/1.056, allocations: 1.594 kB / 0.7824 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001782/1.058, allocations: 0.8259 MB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/1.058, allocations: 6.516 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/1.058, allocations: 2.281 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.863e-05/1.058, allocations: 5.219 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/1.059, allocations: 39.48 kB / 0.7833 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/1.059, allocations: 8.984 kB / 0.7833 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004216/1.059, allocations: 14.53 kB / 0.7833 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004565/1.059, allocations: 215.7 kB / 0.7835 GB, free: 141.3 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.000211/1.06, allocations: 161 kB / 0.7836 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.544e-05/1.06, allocations: 29.89 kB / 0.7837 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/1.06, allocations: 38.08 kB / 0.7837 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/1.06, allocations: 4.844 kB / 0.7837 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.06, allocations: 1.156 kB / 0.7837 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/1.06, allocations: 2.469 kB / 0.7837 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004139/1.064, allocations: 1.706 MB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/1.064, allocations: 3.281 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.981e-05/1.064, allocations: 24.91 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/1.064, allocations: 2.5 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.557e-05/1.064, allocations: 22.14 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/1.064, allocations: 4.234 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.064, allocations: 1.031 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/1.066, allocations: 1.143 MB / 0.7866 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.062e-05/1.066, allocations: 109.1 kB / 0.7867 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.237e-05/1.066, allocations: 13.38 kB / 0.7867 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004009/1.067, allocations: 7.547 kB / 0.7867 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/1.067, allocations: 48.47 kB / 0.7867 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004306/1.067, allocations: 223.1 kB / 0.7869 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002418/1.068, allocations: 170 kB / 0.7871 GB, free: 140 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.41e-07/1.068, allocations: 0 / 0.7871 GB, free: 140 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006959/1.068, allocations: 68.64 kB / 0.7872 GB, free: 140 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.002029/1.07, allocations: 1.935 MB / 0.7891 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001516/1.072, allocations: 0.7323 MB / 0.7898 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/1.072, allocations: 256 / 0.7898 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008109/1.073, allocations: 405.5 kB / 0.7902 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/1.075, allocations: 312.5 kB / 0.7905 GB, free: 138.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002655/1.078, allocations: 0.9302 MB / 0.7914 GB, free: 138.6 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/1.078, allocations: 0.7635 MB / 0.7921 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0005326/1.079, allocations: 101.7 kB / 0.7922 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002646/1.079, allocations: 118.8 kB / 0.7923 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of SimCode: time 1.012e-06/1.079, allocations: 0 / 0.7923 GB, free: 137.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04114/1.12, allocations: 10.39 MB / 0.8025 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/1.121, allocations: 150.7 kB / 0.8026 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.635/3.755, allocations: 0 / 0.8026 GB, free: 134.3 MB / 0.6511 GB