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"}) [: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 3.796/3.796, allocations: 433 MB / 440.3 MB, free: 4.812 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5945/4.39, allocations: 104.3 MB / 0.5319 GB, free: 12.96 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/4.636, allocations: 98.72 MB / 0.6283 GB, free: 9.793 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2343/4.87, allocations: 124.4 MB / 0.7497 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/4.87, allocations: 75.61 kB / 0.7498 GB, free: 13.2 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.1002/4.971, allocations: 18.76 MB / 0.7681 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 8.912e-05/4.971, allocations: 8 kB / 0.7681 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/4.971, allocations: 27.62 kB / 0.7681 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007158/4.972, allocations: 245.8 kB / 0.7684 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.994e-05/4.972, allocations: 4 kB / 0.7684 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-05/4.972, allocations: 19.98 kB / 0.7684 GB, free: 10 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001009/4.973, allocations: 316.3 kB / 0.7687 GB, free: 9.691 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/4.974, allocations: 442.5 kB / 0.7691 GB, free: 9.242 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/4.974, allocations: 3.938 kB / 0.7691 GB, free: 9.238 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/4.974, allocations: 7.906 kB / 0.7691 GB, free: 9.23 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/4.974, allocations: 7.984 kB / 0.7691 GB, free: 9.223 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/4.976, allocations: 0.5202 MB / 0.7697 GB, free: 8.656 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0028/4.979, allocations: 1.014 MB / 0.7706 GB, free: 7.605 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001842/4.981, allocations: 0.6633 MB / 0.7713 GB, free: 6.93 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.225e-05/4.981, allocations: 4 kB / 0.7713 GB, free: 6.926 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001276/4.982, allocations: 462.3 kB / 0.7717 GB, free: 6.449 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 4.678e-06/4.982, allocations: 4 kB / 0.7717 GB, free: 6.445 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.00236/4.984, allocations: 0.7625 MB / 0.7725 GB, free: 5.676 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/4.985, allocations: 140.4 kB / 0.7726 GB, free: 5.508 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/4.985, allocations: 220 kB / 0.7728 GB, free: 5.285 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.046e-05/4.985, allocations: 25.7 kB / 0.7729 GB, free: 5.254 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.457e-05/4.985, allocations: 104.9 kB / 0.773 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/4.985, allocations: 67.08 kB / 0.773 GB, free: 5.082 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.791e-05/4.986, allocations: 0 / 0.773 GB, free: 5.082 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000205/4.986, allocations: 346.8 kB / 0.7734 GB, free: 4.734 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009317/4.987, allocations: 324.7 kB / 0.7737 GB, free: 4.418 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/4.988, allocations: 413.7 kB / 0.7741 GB, free: 3.98 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/4.989, allocations: 363.7 kB / 0.7744 GB, free: 3.625 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/4.989, allocations: 0 / 0.7744 GB, free: 3.625 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002707/4.992, allocations: 0.8054 MB / 0.7752 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/4.992, allocations: 4 kB / 0.7752 GB, free: 2.809 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/4.992, allocations: 7.906 kB / 0.7752 GB, free: 2.801 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.654e-05/4.992, allocations: 4 kB / 0.7752 GB, free: 2.797 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004399/4.992, allocations: 43.89 kB / 0.7752 GB, free: 2.754 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/4.992, allocations: 4 kB / 0.7752 GB, free: 2.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006535/4.993, allocations: 12 kB / 0.7753 GB, free: 2.738 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006012/4.994, allocations: 203.8 kB / 0.7755 GB, free: 2.539 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.000372/4.994, allocations: 149 kB / 0.7756 GB, free: 2.387 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/4.994, allocations: 27.7 kB / 0.7756 GB, free: 2.359 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/4.994, allocations: 33.81 kB / 0.7757 GB, free: 2.332 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/4.994, allocations: 8 kB / 0.7757 GB, free: 2.324 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/4.994, allocations: 0 / 0.7757 GB, free: 2.324 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/4.995, allocations: 3.984 kB / 0.7757 GB, free: 2.32 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004556/4.999, allocations: 1.64 MB / 0.7773 GB, free: 0.6367 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/4.999, allocations: 4 kB / 0.7773 GB, free: 0.6328 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/4.999, allocations: 19.91 kB / 0.7773 GB, free: 0.6133 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.037e-05/4.999, allocations: 4 kB / 0.7773 GB, free: 0.6094 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.819e-05/4.999, allocations: 15.98 kB / 0.7773 GB, free: 0.5938 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.161e-05/4.999, allocations: 11.98 kB / 0.7773 GB, free: 0.582 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/4.999, allocations: 0 / 0.7773 GB, free: 0.582 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.309/5.308, allocations: 1.123 MB / 0.7784 GB, free: 230.5 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001415/5.31, allocations: 1.487 MB / 0.7799 GB, free: 229.8 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.257e-05/5.31, allocations: 101 kB / 0.78 GB, free: 229.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.363e-05/5.31, allocations: 9.891 kB / 0.78 GB, free: 229.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/5.311, allocations: 11 kB / 0.78 GB, free: 229.7 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/5.311, allocations: 48.33 kB / 0.78 GB, free: 229.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003448/5.311, allocations: 219.4 kB / 0.7802 GB, free: 229.7 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002019/5.311, allocations: 162.9 kB / 0.7804 GB, free: 229.6 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001494/5.313, allocations: 53.19 kB / 0.7804 GB, free: 229.6 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.000216/5.313, allocations: 123.9 kB / 0.7806 GB, free: 229.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00125/5.314, allocations: 0.7321 MB / 0.7813 GB, free: 229.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/5.314, allocations: 0 / 0.7813 GB, free: 229.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000718/5.315, allocations: 402.3 kB / 0.7817 GB, free: 229.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/5.318, allocations: 289.8 kB / 0.7819 GB, free: 229.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/5.32, allocations: 0.8658 MB / 0.7828 GB, free: 229.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005332/5.321, allocations: 0.8362 MB / 0.7836 GB, free: 228.6 MB / 0.6511 GB Notification: Performance of SimCode: time 1.663e-06/5.321, allocations: 0 / 0.7836 GB, free: 228.6 MB / 0.6511 GB