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.Sampler.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.Sampler,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.984/3.984, allocations: 433 MB / 440.3 MB, free: 4.773 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5308/4.515, allocations: 104.3 MB / 0.5319 GB, free: 13.08 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/4.757, allocations: 98.72 MB / 0.6283 GB, free: 9.719 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2329/4.99, allocations: 123.7 MB / 0.7491 GB, free: 13.82 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/4.991, allocations: 71.59 kB / 0.7492 GB, free: 13.76 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.004239/4.995, allocations: 0.9283 MB / 0.7501 GB, free: 12.79 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/4.995, allocations: 12 kB / 0.7501 GB, free: 12.77 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/4.995, allocations: 3.906 kB / 0.7501 GB, free: 12.77 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/4.995, allocations: 167.1 kB / 0.7503 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/4.995, allocations: 0 / 0.7503 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/4.995, allocations: 7.938 kB / 0.7503 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001129/4.995, allocations: 19.91 kB / 0.7503 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/4.996, allocations: 45.69 kB / 0.7503 GB, free: 12.49 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/4.996, allocations: 0 / 0.7503 GB, free: 12.49 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/4.996, allocations: 7.969 kB / 0.7503 GB, free: 12.48 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/4.996, allocations: 0 / 0.7503 GB, free: 12.48 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/4.996, allocations: 249.4 kB / 0.7506 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001191/4.996, allocations: 46.5 kB / 0.7506 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.57e-05/4.996, allocations: 16.98 kB / 0.7506 GB, free: 12.12 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/4.996, allocations: 7.938 kB / 0.7506 GB, free: 12.12 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/4.996, allocations: 51.41 kB / 0.7507 GB, free: 12.05 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.894e-06/4.996, allocations: 0 / 0.7507 GB, free: 12.05 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002291/4.997, allocations: 69.59 kB / 0.7508 GB, free: 11.98 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/4.997, allocations: 51.41 kB / 0.7508 GB, free: 11.92 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.107e-05/4.997, allocations: 104.9 kB / 0.7509 GB, free: 11.81 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/4.997, allocations: 25.7 kB / 0.7509 GB, free: 11.78 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.041e-05/4.997, allocations: 80.14 kB / 0.751 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/4.997, allocations: 15.81 kB / 0.751 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/4.997, allocations: 3.938 kB / 0.751 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001271/4.997, allocations: 314.8 kB / 0.7513 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.246e-05/4.997, allocations: 19.94 kB / 0.7514 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.32e-05/4.997, allocations: 31.44 kB / 0.7514 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.088e-05/4.997, allocations: 15.98 kB / 0.7514 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/4.997, allocations: 0 / 0.7514 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001711/4.997, allocations: 69.84 kB / 0.7515 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/4.997, allocations: 12.09 kB / 0.7515 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/4.997, allocations: 0 / 0.7515 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.899e-05/4.998, allocations: 0 / 0.7515 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/4.998, allocations: 19.98 kB / 0.7515 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/4.998, allocations: 8.094 kB / 0.7515 GB, free: 11.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/4.998, allocations: 19.89 kB / 0.7515 GB, free: 11.15 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/4.998, allocations: 4 kB / 0.7515 GB, free: 11.14 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.62e-05/4.998, allocations: 105 kB / 0.7516 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.088e-05/4.998, allocations: 7.906 kB / 0.7516 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001913/4.998, allocations: 62.06 kB / 0.7517 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/4.998, allocations: 4 kB / 0.7517 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/4.998, allocations: 3.984 kB / 0.7517 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/4.998, allocations: 0 / 0.7517 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003968/4.999, allocations: 299.1 kB / 0.752 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/4.999, allocations: 0 / 0.752 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/4.999, allocations: 15.98 kB / 0.752 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/4.999, allocations: 0 / 0.752 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/4.999, allocations: 0 / 0.752 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/4.999, allocations: 3.984 kB / 0.752 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/4.999, allocations: 0 / 0.752 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002028/4.999, allocations: 167.4 kB / 0.7522 GB, free: 10.41 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000319/4.999, allocations: 0.5235 MB / 0.7527 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/5, allocations: 88.94 kB / 0.7528 GB, free: 9.766 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/5, allocations: 4.062 kB / 0.7528 GB, free: 9.762 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/5, allocations: 19.98 kB / 0.7528 GB, free: 9.742 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.463e-05/5, allocations: 4 kB / 0.7528 GB, free: 9.738 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/5, allocations: 3.938 kB / 0.7528 GB, free: 9.734 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.637e-05/5, allocations: 87.27 kB / 0.7529 GB, free: 9.648 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001107/5.001, allocations: 8 kB / 0.7529 GB, free: 9.641 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001415/5.001, allocations: 99.25 kB / 0.753 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001709/5.001, allocations: 39.94 kB / 0.753 GB, free: 9.496 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/5.001, allocations: 3.938 kB / 0.753 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.128e-05/5.001, allocations: 19.94 kB / 0.753 GB, free: 9.473 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/5.002, allocations: 15.89 kB / 0.7531 GB, free: 9.457 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000391/5.002, allocations: 67.78 kB / 0.7531 GB, free: 9.367 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003783/5.003, allocations: 0.6999 MB / 0.7538 GB, free: 8.641 MB / 0.6355 GB Notification: Performance of SimCode: time 7.72e-07/5.003, allocations: 4 kB / 0.7538 GB, free: 8.637 MB / 0.6355 GB