Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadModel(Buildings): time 3.858/3.858, allocations: 433.4 MB / 440.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.955e-05/1.963e-05, allocations: 8 kB / 0.5325 GB, free: 1.934 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5262/0.5262, allocations: 98.7 MB / 0.6289 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.187/0.7133, allocations: 123.8 MB / 0.7498 GB, free: 3.758 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.7136, allocations: 67.97 kB / 0.7499 GB, free: 3.691 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003188/0.7168, allocations: 0.8926 MB / 0.7508 GB, free: 2.797 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.039e-06/0.7168, allocations: 0 / 0.7508 GB, free: 2.797 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.165e-06/0.7169, allocations: 0 / 0.7508 GB, free: 2.797 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005105/0.7174, allocations: 358.4 kB / 0.7511 GB, free: 2.402 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.7174, allocations: 8.031 kB / 0.7511 GB, free: 2.395 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.717e-05/0.7175, allocations: 7.906 kB / 0.7511 GB, free: 2.387 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.7176, allocations: 182.9 kB / 0.7513 GB, free: 2.168 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.7177, allocations: 0 / 0.7513 GB, free: 2.168 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.7177, allocations: 4 kB / 0.7513 GB, free: 2.164 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001002/0.7178, allocations: 20 kB / 0.7513 GB, free: 2.145 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.7179, allocations: 45.69 kB / 0.7514 GB, free: 2.094 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.814e-06/0.7179, allocations: 0 / 0.7514 GB, free: 2.094 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.718, allocations: 0 / 0.7514 GB, free: 2.094 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.135e-06/0.718, allocations: 0 / 0.7514 GB, free: 2.094 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005245/0.7185, allocations: 273.4 kB / 0.7516 GB, free: 1.789 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.7186, allocations: 42.52 kB / 0.7517 GB, free: 1.738 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.7187, allocations: 16.98 kB / 0.7517 GB, free: 1.719 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.7187, allocations: 0 / 0.7517 GB, free: 1.719 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001348/0.7189, allocations: 67.39 kB / 0.7517 GB, free: 1.641 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.597e-06/0.7189, allocations: 0 / 0.7517 GB, free: 1.641 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0002333/0.7191, allocations: 77.66 kB / 0.7518 GB, free: 1.559 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.7192, allocations: 55.34 kB / 0.7519 GB, free: 1.492 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.858e-05/0.7193, allocations: 101 kB / 0.752 GB, free: 1.387 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.7193, allocations: 29.69 kB / 0.752 GB, free: 1.352 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.622e-05/0.7194, allocations: 80.14 kB / 0.7521 GB, free: 1.27 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.7194, allocations: 23.72 kB / 0.7521 GB, free: 1.246 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.612e-06/0.7195, allocations: 0 / 0.7521 GB, free: 1.246 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.7196, allocations: 318.8 kB / 0.7524 GB, free: 0.9258 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.022e-05/0.7197, allocations: 12 kB / 0.7524 GB, free: 0.9141 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.68e-05/0.7197, allocations: 40.3 kB / 0.7524 GB, free: 0.8594 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.665e-05/0.7198, allocations: 19.98 kB / 0.7525 GB, free: 0.8398 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.569e-06/0.7198, allocations: 0 / 0.7525 GB, free: 0.8398 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001896/0.72, allocations: 85.55 kB / 0.7525 GB, free: 0.75 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.7201, allocations: 8 kB / 0.7525 GB, free: 0.7422 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.381e-06/0.7201, allocations: 0 / 0.7525 GB, free: 0.7422 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.7201, allocations: 3.938 kB / 0.7526 GB, free: 0.7383 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.7202, allocations: 20.11 kB / 0.7526 GB, free: 0.7188 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.818e-06/0.7203, allocations: 8.438 kB / 0.7526 GB, free: 0.7109 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.597e-05/0.7204, allocations: 15.83 kB / 0.7526 GB, free: 0.6953 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.7204, allocations: 15.89 kB / 0.7526 GB, free: 0.6797 MB / 0.6198 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.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.831e-05/0.7205, allocations: 111.1 kB / 0.7527 GB, free: 0.5664 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.517e-05/0.7205, allocations: 0 / 0.7527 GB, free: 0.5664 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.7207, allocations: 78.3 kB / 0.7528 GB, free: 496 kB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-06/0.7208, allocations: 0 / 0.7528 GB, free: 496 kB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.452e-06/0.7208, allocations: 4 kB / 0.7528 GB, free: 492 kB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.2e-06/0.7208, allocations: 0 / 0.7528 GB, free: 492 kB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003981/0.7212, allocations: 315 kB / 0.7531 GB, free: 132 kB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.162e-06/0.7212, allocations: 0 / 0.7531 GB, free: 132 kB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.834e-05/0.7213, allocations: 11.98 kB / 0.7531 GB, free: 120 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.926e-06/0.7213, allocations: 0 / 0.7531 GB, free: 120 kB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.7214, allocations: 4 kB / 0.7531 GB, free: 116 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.269e-06/0.7214, allocations: 0 / 0.7531 GB, free: 116 kB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.368e-06/0.7214, allocations: 4 kB / 0.7531 GB, free: 112 kB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.7216, allocations: 175.6 kB / 0.7533 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.773e-05/0.7217, allocations: 81.09 kB / 0.7534 GB, free: 15.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.7218, allocations: 11.94 kB / 0.7534 GB, free: 15.81 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.7219, allocations: 11.98 kB / 0.7534 GB, free: 15.8 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.7219, allocations: 0 / 0.7534 GB, free: 15.8 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.722, allocations: 8 kB / 0.7534 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.145e-05/0.722, allocations: 87.27 kB / 0.7535 GB, free: 15.71 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.57e-07/0.7221, allocations: 0 / 0.7535 GB, free: 15.71 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003172/0.7224, allocations: 11.91 kB / 0.7535 GB, free: 15.7 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001411/0.7225, allocations: 103.2 kB / 0.7536 GB, free: 15.58 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001429/0.7227, allocations: 35.94 kB / 0.7536 GB, free: 15.55 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7227, allocations: 0 / 0.7536 GB, free: 15.55 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.1e-05/0.7228, allocations: 20 kB / 0.7536 GB, free: 15.53 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.723, allocations: 16.23 kB / 0.7537 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002747/0.7233, allocations: 76 kB / 0.7537 GB, free: 15.41 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.7237, allocations: 0.6885 MB / 0.7544 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.058e-05/0.7237, allocations: 4.188 kB / 0.7544 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.7238, allocations: 11.44 kB / 0.7544 GB, free: 14.69 MB / 0.6355 GB Notification: Performance of SimCode: time 1.438e-06/0.7238, allocations: 3.938 kB / 0.7544 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of Templates: time 0.003047/0.7269, allocations: 0.5554 MB / 0.755 GB, free: 14.14 MB / 0.6355 GB