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.Continuous.Validation.Hysteresis.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.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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.119/4.119, allocations: 433 MB / 440.3 MB, free: 4.801 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5375/4.656, allocations: 104.4 MB / 0.5319 GB, free: 12.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/4.887, allocations: 98.73 MB / 0.6283 GB, free: 9.742 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.263/5.15, allocations: 124.1 MB / 0.7495 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/5.151, allocations: 75.59 kB / 0.7496 GB, free: 13.36 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.01297/5.164, allocations: 2.357 MB / 0.7519 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/5.164, allocations: 12 kB / 0.7519 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.452e-05/5.164, allocations: 23.8 kB / 0.752 GB, free: 10.92 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/5.164, allocations: 178.9 kB / 0.7521 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/5.164, allocations: 4 kB / 0.7521 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/5.164, allocations: 4 kB / 0.7521 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002758/5.164, allocations: 64.11 kB / 0.7522 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/5.165, allocations: 120.2 kB / 0.7523 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/5.165, allocations: 0 / 0.7523 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/5.165, allocations: 8 kB / 0.7523 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/5.165, allocations: 0 / 0.7523 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/5.166, allocations: 0.5561 MB / 0.7529 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/5.166, allocations: 119.7 kB / 0.753 GB, free: 9.75 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/5.166, allocations: 58.52 kB / 0.753 GB, free: 9.684 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/5.166, allocations: 4 kB / 0.753 GB, free: 9.68 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/5.167, allocations: 126.1 kB / 0.7531 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 3.006e-06/5.167, allocations: 0 / 0.7531 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0004044/5.167, allocations: 109.5 kB / 0.7533 GB, free: 9.422 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/5.167, allocations: 110.8 kB / 0.7534 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/5.167, allocations: 149.9 kB / 0.7535 GB, free: 9.133 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/5.168, allocations: 29.7 kB / 0.7535 GB, free: 9.098 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.263e-05/5.168, allocations: 104.3 kB / 0.7536 GB, free: 8.988 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.175e-05/5.168, allocations: 43.47 kB / 0.7537 GB, free: 8.945 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/5.168, allocations: 0 / 0.7537 GB, free: 8.945 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001983/5.168, allocations: 326.8 kB / 0.754 GB, free: 8.617 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/5.168, allocations: 47.98 kB / 0.754 GB, free: 8.57 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/5.168, allocations: 93.73 kB / 0.7541 GB, free: 8.461 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001447/5.169, allocations: 35.92 kB / 0.7542 GB, free: 8.426 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/5.169, allocations: 3.984 kB / 0.7542 GB, free: 8.422 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000494/5.169, allocations: 149.4 kB / 0.7543 GB, free: 8.27 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/5.169, allocations: 8 kB / 0.7543 GB, free: 8.262 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/5.169, allocations: 192 / 0.7543 GB, free: 8.262 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/5.169, allocations: 4 kB / 0.7543 GB, free: 8.258 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/5.17, allocations: 59.73 kB / 0.7544 GB, free: 8.199 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/5.17, allocations: 8 kB / 0.7544 GB, free: 8.191 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006834/5.17, allocations: 67.94 kB / 0.7544 GB, free: 8.125 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.829e-05/5.17, allocations: 4 kB / 0.7544 GB, free: 8.121 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: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.00015/5.171, allocations: 116.8 kB / 0.7546 GB, free: 8 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.72e-05/5.171, allocations: 15.81 kB / 0.7546 GB, free: 7.984 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002614/5.171, allocations: 70.77 kB / 0.7546 GB, free: 7.906 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/5.171, allocations: 0 / 0.7546 GB, free: 7.906 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/5.171, allocations: 4.188 kB / 0.7546 GB, free: 7.902 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/5.171, allocations: 0 / 0.7546 GB, free: 7.902 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002839/5.171, allocations: 210 kB / 0.7548 GB, free: 7.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/5.171, allocations: 0 / 0.7548 GB, free: 7.66 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003822/5.172, allocations: 47.89 kB / 0.7549 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/5.172, allocations: 0 / 0.7549 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/5.172, allocations: 4 kB / 0.7549 GB, free: 7.609 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/5.172, allocations: 4 kB / 0.7549 GB, free: 7.605 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/5.172, allocations: 0 / 0.7549 GB, free: 7.605 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003963/5.172, allocations: 170.1 kB / 0.7551 GB, free: 7.402 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004907/5.173, allocations: 0.5584 MB / 0.7556 GB, free: 6.805 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.67e-05/5.173, allocations: 92.86 kB / 0.7557 GB, free: 6.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.297e-05/5.173, allocations: 0 / 0.7557 GB, free: 6.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/5.174, allocations: 59.95 kB / 0.7557 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/5.174, allocations: 43.91 kB / 0.7558 GB, free: 6.594 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-05/5.174, allocations: 8 kB / 0.7558 GB, free: 6.586 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001301/5.174, allocations: 113.8 kB / 0.7559 GB, free: 6.477 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001351/5.175, allocations: 31.91 kB / 0.7559 GB, free: 6.445 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002505/5.176, allocations: 115.2 kB / 0.756 GB, free: 6.32 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004655/5.176, allocations: 115.9 kB / 0.7562 GB, free: 6.207 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/5.176, allocations: 0 / 0.7562 GB, free: 6.207 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002675/5.176, allocations: 63.94 kB / 0.7562 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/5.177, allocations: 20.34 kB / 0.7562 GB, free: 6.125 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008706/5.178, allocations: 181.4 kB / 0.7564 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000481/5.178, allocations: 0.7314 MB / 0.7571 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of SimCode: time 9.91e-07/5.178, allocations: 3.938 kB / 0.7571 GB, free: 5.16 MB / 0.6355 GB