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.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.977/3.977, allocations: 433 MB / 440.3 MB, free: 10.78 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2439/4.221, allocations: 104.4 MB / 0.5319 GB, free: 2.32 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.514/4.735, allocations: 98.69 MB / 0.6283 GB, free: 88 kB / 0.4949 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2476/4.983, allocations: 123.7 MB / 0.7491 GB, free: 4.188 MB / 0.6199 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/4.983, allocations: 71.95 kB / 0.7492 GB, free: 4.117 MB / 0.6199 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.004265/4.987, allocations: 0.9413 MB / 0.7501 GB, free: 3.133 MB / 0.6199 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/4.987, allocations: 8 kB / 0.7501 GB, free: 3.125 MB / 0.6199 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/4.987, allocations: 7.906 kB / 0.7501 GB, free: 3.117 MB / 0.6199 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/4.988, allocations: 171 kB / 0.7503 GB, free: 2.91 MB / 0.6199 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/4.988, allocations: 0 / 0.7503 GB, free: 2.91 MB / 0.6199 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.427e-05/4.988, allocations: 7.906 kB / 0.7503 GB, free: 2.902 MB / 0.6199 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000115/4.988, allocations: 12 kB / 0.7503 GB, free: 2.891 MB / 0.6199 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001357/4.988, allocations: 57.66 kB / 0.7504 GB, free: 2.828 MB / 0.6199 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/4.988, allocations: 0 / 0.7504 GB, free: 2.828 MB / 0.6199 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/4.988, allocations: 0 / 0.7504 GB, free: 2.828 MB / 0.6199 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/4.988, allocations: 0 / 0.7504 GB, free: 2.828 MB / 0.6199 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006562/4.989, allocations: 273.3 kB / 0.7506 GB, free: 2.523 MB / 0.6199 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/4.989, allocations: 34.58 kB / 0.7507 GB, free: 2.48 MB / 0.6199 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.158e-05/4.989, allocations: 32.91 kB / 0.7507 GB, free: 2.445 MB / 0.6199 GB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/4.989, allocations: 4 kB / 0.7507 GB, free: 2.441 MB / 0.6199 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/4.989, allocations: 51.41 kB / 0.7507 GB, free: 2.379 MB / 0.6199 GB Notification: Performance of pre-optimization done (n=7): time 2.555e-06/4.989, allocations: 4 kB / 0.7508 GB, free: 2.375 MB / 0.6199 GB Notification: Performance of matching and sorting (n=7): time 0.0002381/4.989, allocations: 65.53 kB / 0.7508 GB, free: 2.305 MB / 0.6199 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/4.989, allocations: 55.41 kB / 0.7509 GB, free: 2.238 MB / 0.6199 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.423e-05/4.989, allocations: 105.1 kB / 0.751 GB, free: 2.129 MB / 0.6199 GB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/4.989, allocations: 25.7 kB / 0.751 GB, free: 2.098 MB / 0.6199 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/4.989, allocations: 88.08 kB / 0.7511 GB, free: 2.008 MB / 0.6199 GB Notification: Performance of collectInitialBindings (initialization): time 3.491e-05/4.99, allocations: 23.7 kB / 0.7511 GB, free: 1.984 MB / 0.6199 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-06/4.99, allocations: 0 / 0.7511 GB, free: 1.984 MB / 0.6199 GB Notification: Performance of setup shared object (initialization): time 0.0001396/4.99, allocations: 314.8 kB / 0.7514 GB, free: 1.668 MB / 0.6199 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.404e-05/4.99, allocations: 12 kB / 0.7514 GB, free: 1.656 MB / 0.6199 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.938e-05/4.99, allocations: 44.3 kB / 0.7515 GB, free: 1.598 MB / 0.6199 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.295e-05/4.99, allocations: 23.92 kB / 0.7515 GB, free: 1.574 MB / 0.6199 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/4.99, allocations: 0 / 0.7515 GB, free: 1.574 MB / 0.6199 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002327/4.99, allocations: 81.53 kB / 0.7516 GB, free: 1.488 MB / 0.6199 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/4.99, allocations: 6.031 kB / 0.7516 GB, free: 1.484 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/4.99, allocations: 4 kB / 0.7516 GB, free: 1.48 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/4.99, allocations: 48 / 0.7516 GB, free: 1.48 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/4.99, allocations: 28.09 kB / 0.7516 GB, free: 1.453 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/4.991, allocations: 3.938 kB / 0.7516 GB, free: 1.449 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/4.991, allocations: 15.92 kB / 0.7516 GB, free: 1.434 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/4.991, allocations: 4 kB / 0.7516 GB, free: 1.43 MB / 0.6199 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001118/4.991, allocations: 113.6 kB / 0.7517 GB, free: 1.312 MB / 0.6199 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/4.991, allocations: 0 / 0.7517 GB, free: 1.312 MB / 0.6199 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/4.991, allocations: 77.95 kB / 0.7518 GB, free: 1.227 MB / 0.6199 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/4.991, allocations: 0 / 0.7518 GB, free: 1.227 MB / 0.6199 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/4.991, allocations: 0 / 0.7518 GB, free: 1.227 MB / 0.6199 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/4.991, allocations: 0 / 0.7518 GB, free: 1.227 MB / 0.6199 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/4.992, allocations: 307.1 kB / 0.7521 GB, free: 0.8828 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/4.992, allocations: 0 / 0.7521 GB, free: 0.8828 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/4.992, allocations: 20 kB / 0.7521 GB, free: 0.8633 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/4.992, allocations: 3.984 kB / 0.7521 GB, free: 0.8594 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/4.992, allocations: 0 / 0.7521 GB, free: 0.8594 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/4.992, allocations: 0 / 0.7521 GB, free: 0.8594 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/4.992, allocations: 3.938 kB / 0.7521 GB, free: 0.8555 MB / 0.6199 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002138/4.992, allocations: 159.4 kB / 0.7523 GB, free: 0.6836 MB / 0.6199 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003738/4.992, allocations: 0.5389 MB / 0.7528 GB, free: 128 kB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 5.477e-05/4.992, allocations: 81.02 kB / 0.7529 GB, free: 28 kB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/4.993, allocations: 0 / 0.7529 GB, free: 28 kB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/4.993, allocations: 19.98 kB / 0.7529 GB, free: 8 kB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/4.993, allocations: 4 kB / 0.7529 GB, free: 4 kB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/4.993, allocations: 4 kB / 0.7529 GB, free: 0 / 0.6199 GB Notification: Performance of sort global known variables: time 7.457e-05/4.993, allocations: 87.58 kB / 0.753 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001165/4.994, allocations: 12.12 kB / 0.753 GB, free: 15.9 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0002289/4.994, allocations: 103.2 kB / 0.7531 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001884/4.995, allocations: 35.94 kB / 0.7531 GB, free: 15.76 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/4.995, allocations: 256 / 0.7531 GB, free: 15.76 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.944e-05/4.995, allocations: 31.92 kB / 0.7532 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/4.995, allocations: 11.91 kB / 0.7532 GB, free: 15.71 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003897/4.995, allocations: 79.62 kB / 0.7532 GB, free: 15.61 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003844/4.996, allocations: 0.6995 MB / 0.7539 GB, free: 14.89 MB / 0.6355 GB Notification: Performance of SimCode: time 1.082e-06/4.996, allocations: 0 / 0.7539 GB, free: 14.89 MB / 0.6355 GB