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"}) Notification: Performance of loadModel(Buildings): time 4.179/4.179, allocations: 433.2 MB / 440.7 MB, free: 4.531 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.978e-05, allocations: 9.5 kB / 0.5325 GB, free: 12.79 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2165, allocations: 98.74 MB / 0.6289 GB, free: 9.031 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2594/0.4759, allocations: 124.2 MB / 0.7502 GB, free: 12.65 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.4762, allocations: 67.97 kB / 0.7503 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01054/0.4868, allocations: 2.114 MB / 0.7524 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.074e-06/0.4868, allocations: 4 kB / 0.7524 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.4869, allocations: 0 / 0.7524 GB, free: 10.46 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.001343/0.4882, allocations: 490 kB / 0.7528 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.4883, allocations: 12.03 kB / 0.7528 GB, free: 9.926 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.304e-05/0.4884, allocations: 19.86 kB / 0.7529 GB, free: 9.906 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.4886, allocations: 179 kB / 0.753 GB, free: 9.691 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.4886, allocations: 8 kB / 0.753 GB, free: 9.684 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.4887, allocations: 4 kB / 0.753 GB, free: 9.68 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002557/0.4889, allocations: 59.98 kB / 0.7531 GB, free: 9.621 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.4893, allocations: 117.5 kB / 0.7532 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.4893, allocations: 0 / 0.7532 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.4893, allocations: 4 kB / 0.7532 GB, free: 9.488 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4894, allocations: 4 kB / 0.7532 GB, free: 9.484 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.4909, allocations: 0.5794 MB / 0.7538 GB, free: 8.859 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.4912, allocations: 123.7 kB / 0.7539 GB, free: 8.711 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.4913, allocations: 50.89 kB / 0.7539 GB, free: 8.652 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.772e-05/0.4914, allocations: 0 / 0.7539 GB, free: 8.652 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003511/0.4918, allocations: 133.8 kB / 0.7541 GB, free: 8.5 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 2.344e-06/0.4918, allocations: 4 kB / 0.7541 GB, free: 8.496 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.000458/0.4922, allocations: 125.4 kB / 0.7542 GB, free: 8.367 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/0.4923, allocations: 110.8 kB / 0.7543 GB, free: 8.234 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.4925, allocations: 142.2 kB / 0.7544 GB, free: 8.086 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.081e-05/0.4926, allocations: 29.7 kB / 0.7545 GB, free: 8.051 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.4927, allocations: 112.4 kB / 0.7546 GB, free: 7.934 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.127e-05/0.4928, allocations: 51.45 kB / 0.7546 GB, free: 7.883 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.829e-05/0.4928, allocations: 0 / 0.7546 GB, free: 7.883 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.493, allocations: 327.4 kB / 0.7549 GB, free: 7.555 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.4932, allocations: 44 kB / 0.755 GB, free: 7.512 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.4934, allocations: 96.25 kB / 0.7551 GB, free: 7.402 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.4935, allocations: 39.92 kB / 0.7551 GB, free: 7.363 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.4935, allocations: 3.953 kB / 0.7551 GB, free: 7.359 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004857/0.494, allocations: 153.4 kB / 0.7553 GB, free: 7.203 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.4941, allocations: 8 kB / 0.7553 GB, free: 7.195 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4941, allocations: 0 / 0.7553 GB, free: 7.195 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.4941, allocations: 4 kB / 0.7553 GB, free: 7.191 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.4946, allocations: 43.95 kB / 0.7553 GB, free: 7.148 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.4946, allocations: 7.938 kB / 0.7553 GB, free: 7.141 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.4951, allocations: 59.94 kB / 0.7554 GB, free: 7.082 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/0.4952, allocations: 8 kB / 0.7554 GB, free: 7.074 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.0001319/0.4953, allocations: 109.2 kB / 0.7555 GB, free: 6.961 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000337/0.4957, allocations: 137.5 kB / 0.7556 GB, free: 6.82 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.755e-05/0.4957, allocations: 19.75 kB / 0.7556 GB, free: 6.801 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.4959, allocations: 71.23 kB / 0.7557 GB, free: 6.723 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.496, allocations: 0 / 0.7557 GB, free: 6.723 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.496, allocations: 4 kB / 0.7557 GB, free: 6.719 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.496, allocations: 0 / 0.7557 GB, free: 6.719 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002627/0.4963, allocations: 202 kB / 0.7559 GB, free: 6.484 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.4963, allocations: 0 / 0.7559 GB, free: 6.484 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003053/0.4966, allocations: 43.95 kB / 0.7559 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.4966, allocations: 4 kB / 0.756 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.4967, allocations: 0 / 0.756 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.076e-06/0.4967, allocations: 4 kB / 0.756 GB, free: 6.434 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4967, allocations: 3.938 kB / 0.756 GB, free: 6.43 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003973/0.4971, allocations: 191.5 kB / 0.7561 GB, free: 6.207 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.042e-05/0.4972, allocations: 88.92 kB / 0.7562 GB, free: 6.102 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.4972, allocations: 11.98 kB / 0.7562 GB, free: 6.09 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/0.4977, allocations: 47.95 kB / 0.7563 GB, free: 6.043 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.4979, allocations: 44.11 kB / 0.7563 GB, free: 6 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.4979, allocations: 7.984 kB / 0.7563 GB, free: 5.992 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001103/0.4981, allocations: 112 kB / 0.7564 GB, free: 5.883 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.51e-07/0.4981, allocations: 0 / 0.7564 GB, free: 5.883 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003566/0.4984, allocations: 31.95 kB / 0.7565 GB, free: 5.852 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.0008442/0.4993, allocations: 0.8672 MB / 0.7573 GB, free: 4.941 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003971/0.4997, allocations: 115.9 kB / 0.7574 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4997, allocations: 4 kB / 0.7574 GB, free: 4.824 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.5, allocations: 67.92 kB / 0.7575 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.5003, allocations: 23.94 kB / 0.7575 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008297/0.5012, allocations: 217.1 kB / 0.7577 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.5015, allocations: 0.7202 MB / 0.7584 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0001667/0.5017, allocations: 21.33 kB / 0.7584 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.5019, allocations: 39.8 kB / 0.7585 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of SimCode: time 7.11e-07/0.5019, allocations: 0 / 0.7585 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.5443, allocations: 3.105 MB / 0.7615 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002888/0.5446, allocations: 153.9 kB / 0.7617 GB, free: 412 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.556/3.101, allocations: 7.938 kB / 0.7617 GB, free: 404 kB / 0.6355 GB