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.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.913/3.913, allocations: 433 MB / 440.3 MB, free: 4.824 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5601/4.473, allocations: 104.3 MB / 0.5319 GB, free: 13.02 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/4.711, allocations: 98.72 MB / 0.6283 GB, free: 9.816 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2345/4.945, allocations: 123.7 MB / 0.7491 GB, free: 13.93 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/4.945, allocations: 79.58 kB / 0.7492 GB, free: 13.85 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.004024/4.949, allocations: 0.9205 MB / 0.7501 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/4.95, allocations: 8 kB / 0.7501 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/4.95, allocations: 7.906 kB / 0.7501 GB, free: 12.87 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/4.95, allocations: 167 kB / 0.7503 GB, free: 12.67 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/4.95, allocations: 7.984 kB / 0.7503 GB, free: 12.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/4.95, allocations: 7.906 kB / 0.7503 GB, free: 12.65 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001061/4.95, allocations: 15.98 kB / 0.7503 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/4.95, allocations: 45.69 kB / 0.7503 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/4.95, allocations: 0 / 0.7503 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/4.95, allocations: 4 kB / 0.7503 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/4.95, allocations: 0 / 0.7503 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000412/4.951, allocations: 257.2 kB / 0.7506 GB, free: 12.29 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/4.951, allocations: 38.56 kB / 0.7506 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.276e-05/4.951, allocations: 17.11 kB / 0.7506 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/4.951, allocations: 0 / 0.7506 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001158/4.951, allocations: 67.39 kB / 0.7507 GB, free: 12.15 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/4.951, allocations: 0 / 0.7507 GB, free: 12.15 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002538/4.951, allocations: 69.53 kB / 0.7508 GB, free: 12.07 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/4.951, allocations: 51.41 kB / 0.7508 GB, free: 12.01 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.899e-05/4.951, allocations: 97 kB / 0.7509 GB, free: 11.91 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/4.951, allocations: 25.7 kB / 0.7509 GB, free: 11.88 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.07e-05/4.951, allocations: 88.06 kB / 0.751 GB, free: 11.79 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/4.951, allocations: 15.81 kB / 0.751 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/4.951, allocations: 0 / 0.751 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001174/4.952, allocations: 318.8 kB / 0.7513 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.6e-05/4.952, allocations: 16 kB / 0.7514 GB, free: 11.44 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.455e-05/4.952, allocations: 36.3 kB / 0.7514 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.39e-05/4.952, allocations: 23.84 kB / 0.7514 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/4.952, allocations: 3.938 kB / 0.7514 GB, free: 11.36 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002387/4.952, allocations: 77.61 kB / 0.7515 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/4.952, allocations: 4 kB / 0.7515 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/4.952, allocations: 4 kB / 0.7515 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/4.952, allocations: 0 / 0.7515 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/4.952, allocations: 23.89 kB / 0.7515 GB, free: 11.25 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/4.952, allocations: 7.938 kB / 0.7515 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/4.952, allocations: 12.16 kB / 0.7515 GB, free: 11.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/4.953, allocations: 0 / 0.7515 GB, free: 11.23 MB / 0.6355 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.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * 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 8.994e-05/4.953, allocations: 112.9 kB / 0.7516 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.046e-05/4.953, allocations: 7.906 kB / 0.7517 GB, free: 11.1 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001878/4.953, allocations: 62.06 kB / 0.7517 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/4.953, allocations: 4 kB / 0.7517 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/4.953, allocations: 4 kB / 0.7517 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/4.953, allocations: 0 / 0.7517 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000357/4.953, allocations: 299.1 kB / 0.752 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/4.953, allocations: 0 / 0.752 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/4.953, allocations: 8 kB / 0.752 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/4.953, allocations: 0 / 0.752 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/4.953, allocations: 7.984 kB / 0.752 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/4.953, allocations: 4 kB / 0.752 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/4.953, allocations: 3.906 kB / 0.752 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001861/4.954, allocations: 159.7 kB / 0.7522 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003051/4.954, allocations: 0.5271 MB / 0.7527 GB, free: 9.945 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-05/4.954, allocations: 77.11 kB / 0.7528 GB, free: 9.852 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/4.954, allocations: 7.984 kB / 0.7528 GB, free: 9.844 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/4.954, allocations: 12 kB / 0.7528 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/4.954, allocations: 3.984 kB / 0.7528 GB, free: 9.828 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/4.954, allocations: 7.906 kB / 0.7528 GB, free: 9.82 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.188e-05/4.954, allocations: 83.28 kB / 0.7529 GB, free: 9.738 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001124/4.956, allocations: 8.188 kB / 0.7529 GB, free: 9.73 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * 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.0001497/4.956, allocations: 107.2 kB / 0.753 GB, free: 9.617 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001722/4.956, allocations: 35.94 kB / 0.753 GB, free: 9.582 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/4.956, allocations: 4 kB / 0.753 GB, free: 9.578 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.36e-05/4.956, allocations: 19.94 kB / 0.753 GB, free: 9.559 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/4.956, allocations: 6.234 kB / 0.7531 GB, free: 9.555 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003645/4.957, allocations: 91.41 kB / 0.7531 GB, free: 9.445 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/4.957, allocations: 0.7036 MB / 0.7538 GB, free: 8.715 MB / 0.6355 GB Notification: Performance of SimCode: time 1.012e-06/4.957, allocations: 0 / 0.7538 GB, free: 8.715 MB / 0.6355 GB