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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.303/4.303, allocations: 433 MB / 440.3 MB, free: 4.801 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5508/4.854, allocations: 104.3 MB / 0.5319 GB, free: 12.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/5.144, allocations: 98.71 MB / 0.6283 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2572/5.402, allocations: 123.7 MB / 0.7491 GB, free: 13.92 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000389/5.402, allocations: 75.59 kB / 0.7491 GB, free: 13.85 MB / 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.1267/5.529, allocations: 22.13 MB / 0.7708 GB, free: 7.605 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/5.529, allocations: 8 kB / 0.7708 GB, free: 7.598 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/5.529, allocations: 31.62 kB / 0.7708 GB, free: 7.566 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004868/5.529, allocations: 249.7 kB / 0.771 GB, free: 7.285 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/5.53, allocations: 4 kB / 0.771 GB, free: 7.281 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.796e-05/5.53, allocations: 12 kB / 0.771 GB, free: 7.27 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006942/5.53, allocations: 316.4 kB / 0.7713 GB, free: 6.961 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009043/5.531, allocations: 446.5 kB / 0.7718 GB, free: 6.508 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/5.531, allocations: 3.906 kB / 0.7718 GB, free: 6.504 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/5.531, allocations: 8 kB / 0.7718 GB, free: 6.496 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/5.531, allocations: 4 kB / 0.7718 GB, free: 6.492 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/5.532, allocations: 0.5124 MB / 0.7723 GB, free: 5.934 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001963/5.534, allocations: 1.022 MB / 0.7733 GB, free: 4.875 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/5.536, allocations: 0.6554 MB / 0.7739 GB, free: 4.207 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.886e-05/5.536, allocations: 8 kB / 0.7739 GB, free: 4.199 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000868/5.537, allocations: 462.2 kB / 0.7744 GB, free: 3.723 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.925e-06/5.537, allocations: 0 / 0.7744 GB, free: 3.723 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001677/5.538, allocations: 0.7624 MB / 0.7751 GB, free: 2.953 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/5.538, allocations: 144.5 kB / 0.7753 GB, free: 2.781 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/5.539, allocations: 216 kB / 0.7755 GB, free: 2.562 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.437e-05/5.539, allocations: 25.7 kB / 0.7755 GB, free: 2.531 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.315e-05/5.539, allocations: 104.9 kB / 0.7756 GB, free: 2.426 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/5.539, allocations: 71.02 kB / 0.7757 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.668e-05/5.539, allocations: 4 kB / 0.7757 GB, free: 2.352 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001733/5.539, allocations: 342.8 kB / 0.776 GB, free: 2.008 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006458/5.54, allocations: 324.7 kB / 0.7763 GB, free: 1.691 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007239/5.541, allocations: 409.6 kB / 0.7767 GB, free: 1.258 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007341/5.541, allocations: 367.9 kB / 0.777 GB, free: 0.8984 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/5.541, allocations: 0 / 0.777 GB, free: 0.8984 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001711/5.543, allocations: 0.8054 MB / 0.7778 GB, free: 88 kB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/5.543, allocations: 7.906 kB / 0.7778 GB, free: 80 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/5.543, allocations: 4 kB / 0.7778 GB, free: 76 kB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/5.543, allocations: 4 kB / 0.7778 GB, free: 72 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/5.544, allocations: 47.83 kB / 0.7779 GB, free: 24 kB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/5.544, allocations: 4 kB / 0.7779 GB, free: 20 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/5.544, allocations: 8 kB / 0.7779 GB, free: 12 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2781/5.822, allocations: 204 kB / 0.7781 GB, free: 231.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.0002362/5.823, allocations: 144.5 kB / 0.7782 GB, free: 231.1 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/5.823, allocations: 24.97 kB / 0.7783 GB, free: 231.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/5.823, allocations: 39.28 kB / 0.7783 GB, free: 231.1 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/5.823, allocations: 7.219 kB / 0.7783 GB, free: 231.1 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/5.823, allocations: 1.188 kB / 0.7783 GB, free: 231.1 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/5.823, allocations: 2.25 kB / 0.7783 GB, free: 231.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002432/5.825, allocations: 1.638 MB / 0.7799 GB, free: 230.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/5.825, allocations: 3.875 kB / 0.7799 GB, free: 230.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.095e-05/5.825, allocations: 24.41 kB / 0.7799 GB, free: 230.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/5.825, allocations: 3.844 kB / 0.7799 GB, free: 230.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/5.825, allocations: 17.81 kB / 0.7799 GB, free: 230.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/5.825, allocations: 3.875 kB / 0.7799 GB, free: 230.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/5.825, allocations: 0 / 0.7799 GB, free: 230.6 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001297/5.827, allocations: 1.117 MB / 0.781 GB, free: 230.2 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001389/5.828, allocations: 1.487 MB / 0.7825 GB, free: 229.4 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.393e-05/5.828, allocations: 105.3 kB / 0.7826 GB, free: 229.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.22e-05/5.828, allocations: 7.094 kB / 0.7826 GB, free: 229.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004422/5.829, allocations: 5.625 kB / 0.7826 GB, free: 229.3 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/5.829, allocations: 52.16 kB / 0.7827 GB, free: 229.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003686/5.829, allocations: 218.8 kB / 0.7829 GB, free: 229.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002046/5.83, allocations: 162.8 kB / 0.783 GB, free: 229.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001526/5.831, allocations: 53.28 kB / 0.7831 GB, free: 229.2 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.0002396/5.831, allocations: 140.3 kB / 0.7832 GB, free: 229.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001445/5.833, allocations: 0.7286 MB / 0.7839 GB, free: 229.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/5.833, allocations: 1.219 kB / 0.7839 GB, free: 229.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000794/5.834, allocations: 396.5 kB / 0.7843 GB, free: 229.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/5.837, allocations: 349.7 kB / 0.7846 GB, free: 229.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/5.839, allocations: 0.8706 MB / 0.7855 GB, free: 229 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004998/5.839, allocations: 0.8334 MB / 0.7863 GB, free: 228.3 MB / 0.6511 GB Notification: Performance of SimCode: time 9.42e-07/5.839, allocations: 0 / 0.7863 GB, free: 228.3 MB / 0.6511 GB