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/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.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 4.181/4.181, allocations: 433.2 MB / 440.7 MB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.671e-05/2.672e-05, allocations: 2.906 kB / 0.5325 GB, free: 12.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2242, allocations: 98.73 MB / 0.6289 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.483, allocations: 124.4 MB / 0.7504 GB, free: 12.53 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.4834, allocations: 83.94 kB / 0.7505 GB, free: 12.45 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.08518/0.5686, allocations: 18.72 MB / 0.7688 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of FrontEnd: time 4.679e-06/0.5686, allocations: 4 kB / 0.7688 GB, free: 9.699 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.221e-05/0.5687, allocations: 4 kB / 0.7688 GB, free: 9.695 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.001303/0.57, allocations: 0.5997 MB / 0.7693 GB, free: 9.023 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.5701, allocations: 8.031 kB / 0.7694 GB, free: 9.016 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.5702, allocations: 43.56 kB / 0.7694 GB, free: 8.973 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/0.5707, allocations: 241.8 kB / 0.7696 GB, free: 8.699 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.343e-05/0.5707, allocations: 4 kB / 0.7696 GB, free: 8.695 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.5708, allocations: 15.94 kB / 0.7696 GB, free: 8.68 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006472/0.5714, allocations: 312.4 kB / 0.7699 GB, free: 8.375 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008341/0.5723, allocations: 438.5 kB / 0.7704 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.5723, allocations: 3.984 kB / 0.7704 GB, free: 7.926 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.5724, allocations: 0 / 0.7704 GB, free: 7.926 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.5724, allocations: 7.953 kB / 0.7704 GB, free: 7.918 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009243/0.5733, allocations: 0.5162 MB / 0.7709 GB, free: 7.355 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.5752, allocations: 0.9982 MB / 0.7719 GB, free: 6.32 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.5764, allocations: 0.6361 MB / 0.7725 GB, free: 5.672 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.887e-05/0.5765, allocations: 11.98 kB / 0.7725 GB, free: 5.66 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008886/0.5774, allocations: 466.6 kB / 0.7729 GB, free: 5.18 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.815e-06/0.5774, allocations: 0 / 0.7729 GB, free: 5.18 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001676/0.5791, allocations: 0.7561 MB / 0.7737 GB, free: 4.418 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.5792, allocations: 152.5 kB / 0.7738 GB, free: 4.238 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.5796, allocations: 212.5 kB / 0.774 GB, free: 4.016 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.178e-05/0.5796, allocations: 33.69 kB / 0.774 GB, free: 3.977 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.5798, allocations: 120.8 kB / 0.7742 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.58, allocations: 75.02 kB / 0.7742 GB, free: 3.781 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.58, allocations: 3.938 kB / 0.7742 GB, free: 3.777 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001917/0.5802, allocations: 342.8 kB / 0.7746 GB, free: 3.434 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006605/0.5809, allocations: 320.7 kB / 0.7749 GB, free: 3.121 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007341/0.5817, allocations: 413.6 kB / 0.7753 GB, free: 2.684 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000756/0.5824, allocations: 351.7 kB / 0.7756 GB, free: 2.34 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.5825, allocations: 4 kB / 0.7756 GB, free: 2.336 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001655/0.5841, allocations: 0.782 MB / 0.7764 GB, free: 1.547 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.5842, allocations: 8 kB / 0.7764 GB, free: 1.539 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.5842, allocations: 4.125 kB / 0.7764 GB, free: 1.535 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.17e-05/0.5842, allocations: 8 kB / 0.7764 GB, free: 1.527 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.5845, allocations: 39.91 kB / 0.7764 GB, free: 1.488 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.5845, allocations: 4 kB / 0.7764 GB, free: 1.484 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/0.5849, allocations: 19.83 kB / 0.7764 GB, free: 1.465 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004316/0.5854, allocations: 215.7 kB / 0.7767 GB, free: 1.254 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.0002201/0.5856, allocations: 138.1 kB / 0.7768 GB, free: 1.109 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001609/0.5872, allocations: 0.7606 MB / 0.7775 GB, free: 352 kB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.5873, allocations: 27.91 kB / 0.7776 GB, free: 324 kB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.5875, allocations: 37.95 kB / 0.7776 GB, free: 292 kB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.5875, allocations: 7.984 kB / 0.7776 GB, free: 284 kB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.5875, allocations: 4 kB / 0.7776 GB, free: 280 kB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.5875, allocations: 3.984 kB / 0.7776 GB, free: 276 kB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5699/1.157, allocations: 1.631 MB / 0.7792 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/1.158, allocations: 3.625 kB / 0.7792 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.118e-05/1.158, allocations: 27.61 kB / 0.7792 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-05/1.158, allocations: 3.469 kB / 0.7792 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/1.158, allocations: 16.81 kB / 0.7792 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.255e-06/1.158, allocations: 2.797 kB / 0.7793 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/1.158, allocations: 3 kB / 0.7793 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/1.16, allocations: 1.133 MB / 0.7804 GB, free: 146 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.56e-05/1.16, allocations: 102.5 kB / 0.7805 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.37e-05/1.16, allocations: 7.062 kB / 0.7805 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003898/1.16, allocations: 4 kB / 0.7805 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/1.16, allocations: 47.19 kB / 0.7805 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005099/1.161, allocations: 224 kB / 0.7807 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002502/1.161, allocations: 168 kB / 0.7809 GB, free: 145.8 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.01e-07/1.161, allocations: 0 / 0.7809 GB, free: 145.8 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0007141/1.162, allocations: 50.75 kB / 0.7809 GB, free: 145.8 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.001983/1.164, allocations: 1.912 MB / 0.7828 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001427/1.165, allocations: 0.7106 MB / 0.7835 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/1.165, allocations: 0 / 0.7835 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008284/1.166, allocations: 397.9 kB / 0.7839 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.002486/1.169, allocations: 309 kB / 0.7842 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002327/1.171, allocations: 0.8976 MB / 0.785 GB, free: 144.5 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/1.171, allocations: 0.7681 MB / 0.7858 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0005089/1.172, allocations: 97.61 kB / 0.7859 GB, free: 143.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002614/1.172, allocations: 117.6 kB / 0.786 GB, free: 143.7 MB / 0.6511 GB Notification: Performance of SimCode: time 9.52e-07/1.172, allocations: 1.281 kB / 0.786 GB, free: 143.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05357/1.226, allocations: 9.765 MB / 0.7955 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/1.226, allocations: 131.9 kB / 0.7957 GB, free: 142.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.925, allocations: 0 / 0.7957 GB, free: 142.1 MB / 0.6511 GB