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.ZeroOrderHold.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01261/0.01261, allocations: 221.5 kB / 15.17 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001162/0.001161, allocations: 176.4 kB / 16.06 MB, free: 5.836 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.945/3.945, allocations: 389.1 MB / 405.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.238/4.238, allocations: 472.3 MB / 0.9017 GB, free: 130 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004979/0.0004983, allocations: 16 kB / 1.008 GB, free: 21.45 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6226/0.6232, allocations: 98.71 MB / 1.104 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001552/0.6248, allocations: 1.093 MB / 1.105 GB, free: 9.555 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0005622/0.6254, allocations: 213.7 kB / 1.105 GB, free: 9.344 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.275e-05/0.6254, allocations: 4 kB / 1.105 GB, free: 9.34 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 1.753e-05/0.6255, allocations: 5.25 kB / 1.105 GB, free: 9.336 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 7.891e-05/0.6256, allocations: 0 / 1.105 GB, free: 9.336 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.6258, allocations: 27.84 kB / 1.105 GB, free: 9.309 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 7.903e-05/0.6259, allocations: 41.98 kB / 1.105 GB, free: 9.27 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 8.978e-05/0.626, allocations: 7.984 kB / 1.105 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 6.765e-05/0.626, allocations: 19.92 kB / 1.106 GB, free: 9.242 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 4.872e-05/0.6261, allocations: 15.92 kB / 1.106 GB, free: 9.227 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.6261, allocations: 5.875 kB / 1.106 GB, free: 9.223 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 1.429e-05/0.6262, allocations: 0 / 1.106 GB, free: 9.223 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 2.137e-05/0.6262, allocations: 11.98 kB / 1.106 GB, free: 9.211 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 3.053e-05/0.6262, allocations: 33.69 kB / 1.106 GB, free: 9.172 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 7.564e-05/0.6263, allocations: 23.94 kB / 1.106 GB, free: 9.148 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.6263, allocations: 4.562 kB / 1.106 GB, free: 9.145 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.733e-06/0.6263, allocations: 0 / 1.106 GB, free: 9.145 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.6264, allocations: 2.031 kB / 1.106 GB, free: 9.145 MB / 0.5105 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.0006157/0.627, allocations: 361.7 kB / 1.106 GB, free: 8.746 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.627, allocations: 9 kB / 1.106 GB, free: 8.738 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.6271, allocations: 38.5 kB / 1.106 GB, free: 8.691 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.054e-05/0.6271, allocations: 0 / 1.106 GB, free: 8.691 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.876e-05/0.6272, allocations: 180 kB / 1.106 GB, free: 8.477 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.6272, allocations: 0 / 1.106 GB, free: 8.477 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.6273, allocations: 5.062 kB / 1.106 GB, free: 8.473 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.6275, allocations: 70.91 kB / 1.106 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.6276, allocations: 0 / 1.106 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.6276, allocations: 0.7812 kB / 1.106 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.6276, allocations: 0 / 1.106 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.6279, allocations: 57.8 kB / 1.106 GB, free: 8.344 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004181/0.6284, allocations: 282.8 kB / 1.107 GB, free: 8.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.6286, allocations: 66.2 kB / 1.107 GB, free: 7.949 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.6288, allocations: 40.95 kB / 1.107 GB, free: 7.906 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.6288, allocations: 0 / 1.107 GB, free: 7.906 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.6291, allocations: 85.47 kB / 1.107 GB, free: 7.812 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 2.936e-06/0.6291, allocations: 2.031 kB / 1.107 GB, free: 7.812 MB / 0.5105 GB Notification: Performance of matching and sorting (n=7): time 0.0006191/0.6297, allocations: 150.8 kB / 1.107 GB, free: 7.66 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.6298, allocations: 52.09 kB / 1.107 GB, free: 7.598 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.036e-05/0.6299, allocations: 109.8 kB / 1.107 GB, free: 7.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.6299, allocations: 29.7 kB / 1.107 GB, free: 7.445 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.367e-05/0.6299, allocations: 88.08 kB / 1.107 GB, free: 7.355 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.63, allocations: 11.81 kB / 1.107 GB, free: 7.344 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.63, allocations: 0 / 1.107 GB, free: 7.344 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.279e-05/0.6301, allocations: 322.8 kB / 1.107 GB, free: 7.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.6302, allocations: 31.98 kB / 1.108 GB, free: 6.988 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.6304, allocations: 64.2 kB / 1.108 GB, free: 6.91 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.6306, allocations: 43.95 kB / 1.108 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.6306, allocations: 0 / 1.108 GB, free: 6.867 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004159/0.631, allocations: 125.6 kB / 1.108 GB, free: 6.738 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.6311, allocations: 7.984 kB / 1.108 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.6311, allocations: 4 kB / 1.108 GB, free: 6.727 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.6311, allocations: 0 / 1.108 GB, free: 6.727 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.6313, allocations: 19.98 kB / 1.108 GB, free: 6.707 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.6313, allocations: 3.953 kB / 1.108 GB, free: 6.703 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.6314, allocations: 12 kB / 1.108 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.6314, allocations: 4 kB / 1.108 GB, free: 6.688 MB / 0.5105 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 () * Number of clocked 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.117e-05/0.6315, allocations: 129.7 kB / 1.108 GB, free: 6.551 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.924e-05/0.6316, allocations: 7.906 kB / 1.108 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004232/0.632, allocations: 114 kB / 1.108 GB, free: 6.422 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.632, allocations: 0 / 1.108 GB, free: 6.422 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.632, allocations: 4 kB / 1.108 GB, free: 6.418 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.6321, allocations: 7.953 kB / 1.108 GB, free: 6.41 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005787/0.6326, allocations: 362.5 kB / 1.108 GB, free: 6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.6327, allocations: 0 / 1.108 GB, free: 6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.6328, allocations: 19.98 kB / 1.108 GB, free: 5.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.6328, allocations: 0 / 1.108 GB, free: 5.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.6328, allocations: 4 kB / 1.108 GB, free: 5.977 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.6328, allocations: 3.953 kB / 1.108 GB, free: 5.973 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.6328, allocations: 0 / 1.108 GB, free: 5.973 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.6332, allocations: 219.8 kB / 1.109 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 2.723e-05/0.6333, allocations: 77.11 kB / 1.109 GB, free: 5.648 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.6333, allocations: 4 kB / 1.109 GB, free: 5.645 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.6335, allocations: 12.17 kB / 1.109 GB, free: 5.633 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.6336, allocations: 11.94 kB / 1.109 GB, free: 5.621 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-05/0.6336, allocations: 8.188 kB / 1.109 GB, free: 5.613 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.663e-05/0.6336, allocations: 91.28 kB / 1.109 GB, free: 5.523 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.6e-07/0.6336, allocations: 0 / 1.109 GB, free: 5.523 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003173/0.634, allocations: 11.98 kB / 1.109 GB, free: 5.512 MB / 0.5105 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) * Number of clocked states: 0 () * 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.000619/0.6346, allocations: 0.7514 MB / 1.11 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004126/0.635, allocations: 75.95 kB / 1.11 GB, free: 4.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.635, allocations: 0 / 1.11 GB, free: 4.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.6352, allocations: 39.97 kB / 1.11 GB, free: 4.621 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.6356, allocations: 7.953 kB / 1.11 GB, free: 4.613 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.6368, allocations: 0.5196 MB / 1.11 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.637, allocations: 0.6887 MB / 1.111 GB, free: 3.316 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 4.729e-05/0.637, allocations: 4.188 kB / 1.111 GB, free: 3.312 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.152e-05/0.6371, allocations: 11.44 kB / 1.111 GB, free: 3.301 MB / 0.5105 GB Notification: Performance of SimCode: time 7.51e-07/0.6371, allocations: 4 kB / 1.111 GB, free: 3.297 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.6607, allocations: 1.396 MB / 1.112 GB, free: 2.012 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002054/0.661, allocations: 195.5 kB / 1.112 GB, free: 1.773 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/2.961, allocations: 0 / 1.112 GB, free: 1.773 MB / 0.5105 GB