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.TriggeredMax.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.TriggeredMax,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",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.956/3.956, allocations: 433 MB / 440.3 MB, free: 4.812 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.513/4.469, allocations: 104.3 MB / 0.5319 GB, free: 12.99 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/4.704, allocations: 98.72 MB / 0.6283 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2715/4.976, allocations: 124 MB / 0.7494 GB, free: 13.63 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/4.976, allocations: 75.59 kB / 0.7495 GB, free: 13.56 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.007447/4.984, allocations: 1.525 MB / 0.751 GB, free: 11.99 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/4.984, allocations: 12 kB / 0.751 GB, free: 11.98 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.179e-05/4.984, allocations: 7.906 kB / 0.751 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/4.984, allocations: 182.8 kB / 0.7512 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/4.984, allocations: 0 / 0.7512 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/4.984, allocations: 4 kB / 0.7512 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001251/4.984, allocations: 19.98 kB / 0.7512 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/4.984, allocations: 49.69 kB / 0.7512 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/4.984, allocations: 0 / 0.7512 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/4.984, allocations: 3.938 kB / 0.7512 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/4.984, allocations: 0 / 0.7512 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/4.985, allocations: 261.3 kB / 0.7515 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/4.985, allocations: 38.58 kB / 0.7515 GB, free: 11.33 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.324e-05/4.985, allocations: 20.97 kB / 0.7515 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/4.985, allocations: 0 / 0.7515 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001283/4.985, allocations: 67.31 kB / 0.7516 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 4.078e-06/4.985, allocations: 0 / 0.7516 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002893/4.986, allocations: 73.62 kB / 0.7517 GB, free: 11.15 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/4.986, allocations: 55.41 kB / 0.7517 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/4.986, allocations: 109 kB / 0.7518 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/4.986, allocations: 25.7 kB / 0.7518 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.441e-05/4.986, allocations: 84.14 kB / 0.7519 GB, free: 10.85 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/4.986, allocations: 11.81 kB / 0.7519 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/4.986, allocations: 0 / 0.7519 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001552/4.986, allocations: 326.8 kB / 0.7523 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.176e-05/4.986, allocations: 12 kB / 0.7523 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-05/4.986, allocations: 30.58 kB / 0.7523 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.932e-05/4.986, allocations: 19.97 kB / 0.7523 GB, free: 10.44 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/4.986, allocations: 0 / 0.7523 GB, free: 10.44 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002008/4.987, allocations: 73.53 kB / 0.7524 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/4.987, allocations: 8.031 kB / 0.7524 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/4.987, allocations: 0 / 0.7524 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/4.987, allocations: 4 kB / 0.7524 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/4.987, allocations: 23.83 kB / 0.7524 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/4.987, allocations: 0 / 0.7524 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/4.987, allocations: 31.91 kB / 0.7524 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/4.987, allocations: 8 kB / 0.7525 GB, free: 10.29 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001021/4.987, allocations: 105 kB / 0.7526 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/4.987, allocations: 3.906 kB / 0.7526 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/4.988, allocations: 74.05 kB / 0.7526 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/4.988, allocations: 0 / 0.7526 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/4.988, allocations: 0 / 0.7526 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/4.988, allocations: 4 kB / 0.7526 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005461/4.988, allocations: 323 kB / 0.7529 GB, free: 9.727 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/4.988, allocations: 0 / 0.7529 GB, free: 9.727 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/4.988, allocations: 16 kB / 0.753 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/4.988, allocations: 192 / 0.753 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/4.988, allocations: 7.891 kB / 0.753 GB, free: 9.703 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/4.988, allocations: 3.938 kB / 0.753 GB, free: 9.699 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/4.988, allocations: 0 / 0.753 GB, free: 9.699 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000233/4.989, allocations: 172.1 kB / 0.7531 GB, free: 9.516 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003741/4.989, allocations: 0.5311 MB / 0.7537 GB, free: 8.965 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/4.989, allocations: 85.02 kB / 0.7537 GB, free: 8.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.921e-05/4.989, allocations: 3.938 kB / 0.7537 GB, free: 8.859 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002408/4.989, allocations: 19.98 kB / 0.7538 GB, free: 8.84 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.182e-05/4.989, allocations: 7.984 kB / 0.7538 GB, free: 8.832 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-06/4.989, allocations: 0 / 0.7538 GB, free: 8.832 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.678e-05/4.99, allocations: 87.28 kB / 0.7538 GB, free: 8.746 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001123/4.991, allocations: 11.98 kB / 0.7539 GB, free: 8.734 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * 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.0001567/4.991, allocations: 103.2 kB / 0.754 GB, free: 8.625 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001728/4.991, allocations: 40 kB / 0.754 GB, free: 8.586 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/4.991, allocations: 4.062 kB / 0.754 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.245e-05/4.991, allocations: 20.8 kB / 0.754 GB, free: 8.562 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/4.991, allocations: 19.89 kB / 0.754 GB, free: 8.543 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004044/4.992, allocations: 91.61 kB / 0.7541 GB, free: 8.43 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003819/4.992, allocations: 0.6997 MB / 0.7548 GB, free: 7.703 MB / 0.6355 GB Notification: Performance of SimCode: time 7.31e-07/4.992, allocations: 0 / 0.7548 GB, free: 7.703 MB / 0.6355 GB