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"}) Notification: Performance of loadModel(Buildings): time 4.295/4.295, allocations: 433.2 MB / 440.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.063e-05, allocations: 7.984 kB / 0.5325 GB, free: 1.941 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.639/0.6391, allocations: 98.71 MB / 0.6289 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2312/0.8703, allocations: 124 MB / 0.75 GB, free: 3.617 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.8706, allocations: 71.95 kB / 0.75 GB, free: 3.547 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003789/0.8744, allocations: 0.9444 MB / 0.751 GB, free: 2.602 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8744, allocations: 0 / 0.751 GB, free: 2.602 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.8744, allocations: 0 / 0.751 GB, free: 2.602 MB / 0.6198 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.0006234/0.8751, allocations: 370.5 kB / 0.7513 GB, free: 2.195 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.8751, allocations: 11.97 kB / 0.7513 GB, free: 2.184 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.416e-05/0.8752, allocations: 7.906 kB / 0.7513 GB, free: 2.176 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.8754, allocations: 167 kB / 0.7515 GB, free: 1.973 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.8754, allocations: 4 kB / 0.7515 GB, free: 1.969 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.8754, allocations: 4 kB / 0.7515 GB, free: 1.965 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001249/0.8756, allocations: 27.94 kB / 0.7515 GB, free: 1.938 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001632/0.8757, allocations: 61.67 kB / 0.7516 GB, free: 1.871 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.8758, allocations: 0 / 0.7516 GB, free: 1.871 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.8758, allocations: 11.98 kB / 0.7516 GB, free: 1.859 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.8758, allocations: 0 / 0.7516 GB, free: 1.859 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007075/0.8765, allocations: 313.1 kB / 0.7519 GB, free: 1.516 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.8767, allocations: 62.58 kB / 0.7519 GB, free: 1.445 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.22e-05/0.8768, allocations: 32.86 kB / 0.752 GB, free: 1.41 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.8768, allocations: 4 kB / 0.752 GB, free: 1.406 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.877, allocations: 79.45 kB / 0.7521 GB, free: 1.316 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.204e-06/0.877, allocations: 0 / 0.7521 GB, free: 1.316 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0003146/0.8774, allocations: 101.6 kB / 0.7522 GB, free: 1.211 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.8774, allocations: 67.34 kB / 0.7522 GB, free: 1.133 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.051e-05/0.8775, allocations: 100.9 kB / 0.7523 GB, free: 1.027 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.8776, allocations: 29.7 kB / 0.7523 GB, free: 0.9922 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.8776, allocations: 84.38 kB / 0.7524 GB, free: 0.9023 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.659e-05/0.8777, allocations: 23.7 kB / 0.7524 GB, free: 0.8789 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-06/0.8777, allocations: 0 / 0.7524 GB, free: 0.8789 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.8779, allocations: 318.8 kB / 0.7528 GB, free: 0.5586 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.871e-05/0.8779, allocations: 20 kB / 0.7528 GB, free: 0.5391 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.8781, allocations: 55.36 kB / 0.7528 GB, free: 484 kB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.394e-05/0.8782, allocations: 28.03 kB / 0.7528 GB, free: 456 kB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.8782, allocations: 4 kB / 0.7529 GB, free: 452 kB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002525/0.8784, allocations: 97.53 kB / 0.7529 GB, free: 348 kB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.8785, allocations: 6.344 kB / 0.753 GB, free: 344 kB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.8785, allocations: 4 kB / 0.753 GB, free: 340 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.8785, allocations: 4.094 kB / 0.753 GB, free: 336 kB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002156/0.8787, allocations: 31.92 kB / 0.753 GB, free: 304 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.8788, allocations: 3.984 kB / 0.753 GB, free: 300 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.8789, allocations: 8 kB / 0.753 GB, free: 292 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.8789, allocations: 7.953 kB / 0.753 GB, free: 284 kB / 0.6198 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.0001028/0.879, allocations: 109 kB / 0.7531 GB, free: 168 kB / 0.6198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002696/0.8793, allocations: 113.5 kB / 0.7532 GB, free: 48 kB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.996e-05/0.8794, allocations: 7.906 kB / 0.7532 GB, free: 40 kB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003116/0.8797, allocations: 114.4 kB / 0.7533 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.8797, allocations: 4.094 kB / 0.7533 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.8797, allocations: 7.891 kB / 0.7533 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.8797, allocations: 3.938 kB / 0.7534 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005307/0.8803, allocations: 351 kB / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.8803, allocations: 0 / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.8804, allocations: 12 kB / 0.7537 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.8805, allocations: 7.938 kB / 0.7537 GB, free: 15.5 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.8805, allocations: 3.984 kB / 0.7537 GB, free: 15.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.8805, allocations: 3.953 kB / 0.7537 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.8805, allocations: 0 / 0.7537 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.8809, allocations: 203.4 kB / 0.7539 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.826e-05/0.8809, allocations: 88.89 kB / 0.754 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.881, allocations: 4 kB / 0.754 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.8812, allocations: 15.98 kB / 0.754 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.842e-05/0.8812, allocations: 7.938 kB / 0.754 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.8813, allocations: 4.25 kB / 0.754 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.01e-05/0.8813, allocations: 87.28 kB / 0.7541 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.41e-07/0.8814, allocations: 0 / 0.7541 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003464/0.8817, allocations: 15.98 kB / 0.7541 GB, free: 15.04 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.0006645/0.8824, allocations: 0.7398 MB / 0.7548 GB, free: 14.27 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002211/0.8826, allocations: 64.22 kB / 0.7549 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.8826, allocations: 0 / 0.7549 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.8828, allocations: 43.86 kB / 0.7549 GB, free: 14.16 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.883, allocations: 7.953 kB / 0.755 GB, free: 14.16 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005718/0.8836, allocations: 126.4 kB / 0.7551 GB, free: 14 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.884, allocations: 0.6885 MB / 0.7557 GB, free: 13.29 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.221e-05/0.884, allocations: 16.41 kB / 0.7558 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.92e-05/0.8841, allocations: 19.44 kB / 0.7558 GB, free: 13.25 MB / 0.6355 GB Notification: Performance of SimCode: time 8.82e-07/0.8841, allocations: 3.938 kB / 0.7558 GB, free: 13.25 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04518/0.9293, allocations: 1.292 MB / 0.757 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003135/0.9297, allocations: 154.8 kB / 0.7572 GB, free: 11.78 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/3.097, allocations: 4.031 kB / 0.7572 GB, free: 11.77 MB / 0.6355 GB