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.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.154/4.154, allocations: 433 MB / 440.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4971/4.652, allocations: 104.3 MB / 0.5319 GB, free: 12.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/4.884, allocations: 98.73 MB / 0.6283 GB, free: 9.777 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2285/5.112, allocations: 123.9 MB / 0.7493 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/5.113, allocations: 79.59 kB / 0.7494 GB, free: 13.64 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.005019/5.118, allocations: 1.011 MB / 0.7503 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/5.118, allocations: 12 kB / 0.7504 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.045e-05/5.118, allocations: 7.906 kB / 0.7504 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/5.118, allocations: 167 kB / 0.7505 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.382e-05/5.118, allocations: 7.984 kB / 0.7505 GB, free: 12.36 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/5.118, allocations: 4 kB / 0.7505 GB, free: 12.36 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002107/5.118, allocations: 24 kB / 0.7506 GB, free: 12.33 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/5.119, allocations: 77.47 kB / 0.7506 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/5.119, allocations: 0 / 0.7506 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/5.119, allocations: 4 kB / 0.7506 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/5.119, allocations: 0 / 0.7506 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007782/5.12, allocations: 285.3 kB / 0.7509 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/5.12, allocations: 66.56 kB / 0.751 GB, free: 11.86 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.875e-05/5.12, allocations: 28.86 kB / 0.751 GB, free: 11.82 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/5.12, allocations: 0 / 0.751 GB, free: 11.82 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/5.12, allocations: 79.53 kB / 0.7511 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.194e-06/5.12, allocations: 3.938 kB / 0.7511 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003114/5.12, allocations: 85.62 kB / 0.7512 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/5.12, allocations: 59.3 kB / 0.7512 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/5.121, allocations: 108.9 kB / 0.7513 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/5.121, allocations: 29.7 kB / 0.7513 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.541e-05/5.121, allocations: 88.36 kB / 0.7514 GB, free: 11.33 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.384e-05/5.121, allocations: 23.7 kB / 0.7515 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.776e-06/5.121, allocations: 0 / 0.7515 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001545/5.121, allocations: 318.8 kB / 0.7518 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.777e-05/5.121, allocations: 20 kB / 0.7518 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/5.121, allocations: 51.44 kB / 0.7518 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/5.121, allocations: 27.98 kB / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/5.121, allocations: 0 / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002786/5.122, allocations: 105.5 kB / 0.752 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/5.122, allocations: 7.938 kB / 0.752 GB, free: 10.76 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/5.122, allocations: 0 / 0.752 GB, free: 10.76 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/5.122, allocations: 7.906 kB / 0.752 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/5.122, allocations: 28.02 kB / 0.752 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/5.122, allocations: 4 kB / 0.752 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/5.122, allocations: 15.92 kB / 0.752 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/5.122, allocations: 4 kB / 0.752 GB, free: 10.7 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: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001189/5.122, allocations: 122 kB / 0.7521 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/5.122, allocations: 96 / 0.7521 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/5.123, allocations: 93.89 kB / 0.7522 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/5.123, allocations: 4 kB / 0.7522 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/5.123, allocations: 0 / 0.7522 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/5.123, allocations: 3.984 kB / 0.7522 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004992/5.123, allocations: 330.9 kB / 0.7525 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/5.123, allocations: 0 / 0.7525 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/5.123, allocations: 23.98 kB / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/5.123, allocations: 0 / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/5.123, allocations: 4 kB / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/5.123, allocations: 0 / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/5.123, allocations: 0 / 0.7526 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002984/5.124, allocations: 183.4 kB / 0.7528 GB, free: 9.875 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004236/5.124, allocations: 0.5545 MB / 0.7533 GB, free: 9.301 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.333e-05/5.124, allocations: 88.95 kB / 0.7534 GB, free: 9.195 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/5.124, allocations: 384 / 0.7534 GB, free: 9.195 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/5.124, allocations: 15.98 kB / 0.7534 GB, free: 9.18 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.863e-05/5.125, allocations: 11.98 kB / 0.7534 GB, free: 9.168 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/5.125, allocations: 7.906 kB / 0.7534 GB, free: 9.16 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.819e-05/5.125, allocations: 83.47 kB / 0.7535 GB, free: 9.078 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.00114/5.126, allocations: 15.98 kB / 0.7535 GB, free: 9.062 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001555/5.126, allocations: 107.4 kB / 0.7536 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000253/5.126, allocations: 63.94 kB / 0.7537 GB, free: 8.887 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/5.126, allocations: 192 / 0.7537 GB, free: 8.887 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/5.126, allocations: 39.94 kB / 0.7537 GB, free: 8.848 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/5.127, allocations: 15.91 kB / 0.7537 GB, free: 8.832 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004102/5.127, allocations: 95.62 kB / 0.7538 GB, free: 8.719 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004405/5.128, allocations: 0.7036 MB / 0.7545 GB, free: 7.988 MB / 0.6355 GB Notification: Performance of SimCode: time 9.12e-07/5.128, allocations: 0 / 0.7545 GB, free: 7.988 MB / 0.6355 GB