Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadModel(Buildings): time 4.038/4.038, allocations: 433.4 MB / 440.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.721e-05, allocations: 4 kB / 0.5325 GB, free: 1.875 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4931/0.4931, allocations: 98.7 MB / 0.6289 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1952/0.6884, allocations: 124.4 MB / 0.7504 GB, free: 3.117 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.6887, allocations: 71.97 kB / 0.7505 GB, free: 3.047 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.07607/0.7647, allocations: 18.74 MB / 0.7688 GB, free: 292 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.85e-06/0.7648, allocations: 0 / 0.7688 GB, free: 292 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.884e-05/0.7648, allocations: 8 kB / 0.7688 GB, free: 284 kB / 0.6355 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.0009995/0.7658, allocations: 0.588 MB / 0.7694 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.7659, allocations: 12.02 kB / 0.7694 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.52e-05/0.766, allocations: 39.58 kB / 0.7694 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.7664, allocations: 241.8 kB / 0.7696 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.7664, allocations: 4 kB / 0.7696 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.7665, allocations: 15.98 kB / 0.7697 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005156/0.767, allocations: 312.4 kB / 0.77 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006886/0.7677, allocations: 438.5 kB / 0.7704 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.7678, allocations: 0 / 0.7704 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.7678, allocations: 3.984 kB / 0.7704 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.7678, allocations: 11.95 kB / 0.7704 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007592/0.7686, allocations: 0.5123 MB / 0.7709 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.7701, allocations: 0.9982 MB / 0.7719 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009664/0.7711, allocations: 0.64 MB / 0.7725 GB, free: 12.26 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.7712, allocations: 8 kB / 0.7725 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007253/0.7719, allocations: 470.6 kB / 0.773 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.795e-06/0.7719, allocations: 0 / 0.773 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001388/0.7733, allocations: 0.7586 MB / 0.7737 GB, free: 11 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.7734, allocations: 144.5 kB / 0.7738 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.7738, allocations: 224.4 kB / 0.774 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.7738, allocations: 25.7 kB / 0.7741 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.7739, allocations: 116.9 kB / 0.7742 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.774, allocations: 79.06 kB / 0.7743 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.066e-05/0.7741, allocations: 0 / 0.7743 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002126/0.7743, allocations: 350.8 kB / 0.7746 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000786/0.7751, allocations: 316.7 kB / 0.7749 GB, free: 9.711 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005872/0.7757, allocations: 405.6 kB / 0.7753 GB, free: 9.281 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005802/0.7763, allocations: 347.7 kB / 0.7756 GB, free: 8.941 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.402e-06/0.7763, allocations: 0 / 0.7756 GB, free: 8.941 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001454/0.7778, allocations: 0.79 MB / 0.7764 GB, free: 8.145 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.7778, allocations: 8 kB / 0.7764 GB, free: 8.137 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.407e-06/0.7778, allocations: 3.938 kB / 0.7764 GB, free: 8.133 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.7779, allocations: 8 kB / 0.7764 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.7781, allocations: 47.77 kB / 0.7764 GB, free: 8.078 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.7781, allocations: 4 kB / 0.7764 GB, free: 8.074 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.7784, allocations: 16.03 kB / 0.7765 GB, free: 8.059 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003452/0.7787, allocations: 215.6 kB / 0.7767 GB, free: 7.848 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.0001824/0.7789, allocations: 138.1 kB / 0.7768 GB, free: 7.703 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.779, allocations: 31.61 kB / 0.7768 GB, free: 7.672 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.738e-05/0.7791, allocations: 29.97 kB / 0.7769 GB, free: 7.648 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.03e-06/0.7791, allocations: 4 kB / 0.7769 GB, free: 7.645 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.7792, allocations: 4 kB / 0.7769 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.7792, allocations: 3.984 kB / 0.7769 GB, free: 7.637 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.7817, allocations: 1.634 MB / 0.7785 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.142e-06/0.7818, allocations: 3.984 kB / 0.7785 GB, free: 5.953 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.386e-05/0.7818, allocations: 32.03 kB / 0.7785 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.17e-06/0.7819, allocations: 0 / 0.7785 GB, free: 5.922 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.279e-05/0.7819, allocations: 23.97 kB / 0.7785 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.7819, allocations: 0 / 0.7785 GB, free: 5.898 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.705e-06/0.7819, allocations: 4 kB / 0.7785 GB, free: 5.895 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.7834, allocations: 1.122 MB / 0.7796 GB, free: 4.734 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.986e-05/0.7835, allocations: 100.8 kB / 0.7797 GB, free: 4.617 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.7836, allocations: 15.94 kB / 0.7797 GB, free: 4.602 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.7839, allocations: 4 kB / 0.7797 GB, free: 4.598 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.7841, allocations: 51.88 kB / 0.7798 GB, free: 4.547 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/0.7844, allocations: 219.5 kB / 0.78 GB, free: 4.332 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001919/0.7846, allocations: 164.5 kB / 0.7802 GB, free: 4.172 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.17e-07/0.7846, allocations: 0 / 0.7802 GB, free: 4.172 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006544/0.7853, allocations: 52 kB / 0.7802 GB, free: 4.121 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.0002098/0.7855, allocations: 135.2 kB / 0.7803 GB, free: 3.98 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001165/0.7867, allocations: 0.7066 MB / 0.781 GB, free: 3.273 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.847e-06/0.7867, allocations: 0 / 0.781 GB, free: 3.273 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006553/0.7874, allocations: 399.8 kB / 0.7814 GB, free: 2.883 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.7889, allocations: 305.3 kB / 0.7817 GB, free: 2.594 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.7905, allocations: 0.8483 MB / 0.7825 GB, free: 1.711 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000492/0.791, allocations: 0.7608 MB / 0.7833 GB, free: 0.9258 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003607/0.7914, allocations: 103.2 kB / 0.7834 GB, free: 0.8281 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.7916, allocations: 67.38 kB / 0.7834 GB, free: 0.7617 MB / 0.6511 GB Notification: Performance of SimCode: time 1.55e-06/0.7916, allocations: 3.938 kB / 0.7834 GB, free: 0.7578 MB / 0.6511 GB Notification: Performance of Templates: time 0.01708/0.8087, allocations: 7.486 MB / 0.7907 GB, free: 9.344 MB / 0.6667 GB