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 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.ZeroOrderHold,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.102/4.102, allocations: 433.2 MB / 440.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.254e-05, allocations: 4.938 kB / 0.5325 GB, free: 12.66 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2301, allocations: 98.74 MB / 0.6289 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3014/0.5316, allocations: 123.8 MB / 0.7498 GB, free: 13.16 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.5319, allocations: 67.97 kB / 0.7499 GB, free: 13.09 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003531/0.5355, allocations: 0.8914 MB / 0.7507 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5355, allocations: 0 / 0.7507 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.5355, allocations: 0 / 0.7507 GB, free: 12.2 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005675/0.5361, allocations: 354.5 kB / 0.7511 GB, free: 11.8 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.5362, allocations: 12.03 kB / 0.7511 GB, free: 11.79 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.998e-05/0.5362, allocations: 15.84 kB / 0.7511 GB, free: 11.78 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.5364, allocations: 167 kB / 0.7513 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.5364, allocations: 0 / 0.7513 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.5364, allocations: 4 kB / 0.7513 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001068/0.5365, allocations: 19.94 kB / 0.7513 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.5367, allocations: 53.66 kB / 0.7513 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.5367, allocations: 0 / 0.7513 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.5367, allocations: 3.984 kB / 0.7513 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.5367, allocations: 4 kB / 0.7513 GB, free: 11.48 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005732/0.5373, allocations: 273.4 kB / 0.7516 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.5375, allocations: 42.52 kB / 0.7516 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.376e-05/0.5375, allocations: 16.98 kB / 0.7517 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.5376, allocations: 3.984 kB / 0.7517 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001369/0.5377, allocations: 67.31 kB / 0.7517 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.054e-06/0.5377, allocations: 0 / 0.7517 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002492/0.538, allocations: 69.64 kB / 0.7518 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.538, allocations: 55.41 kB / 0.7518 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.792e-05/0.5381, allocations: 101 kB / 0.7519 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.5382, allocations: 29.7 kB / 0.752 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.772e-05/0.5382, allocations: 80.14 kB / 0.7521 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.5383, allocations: 27.66 kB / 0.7521 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.5383, allocations: 3.938 kB / 0.7521 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.5384, allocations: 314.8 kB / 0.7524 GB, free: 10.31 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.394e-05/0.5385, allocations: 15.94 kB / 0.7524 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.42e-05/0.5386, allocations: 44.3 kB / 0.7524 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.909e-05/0.5386, allocations: 19.98 kB / 0.7525 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.5386, allocations: 0 / 0.7525 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001949/0.5389, allocations: 77.62 kB / 0.7525 GB, free: 10.14 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.5389, allocations: 7.938 kB / 0.7525 GB, free: 10.13 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.5389, allocations: 4 kB / 0.7525 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.5389, allocations: 0 / 0.7525 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.5391, allocations: 24.11 kB / 0.7526 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.5391, allocations: 0 / 0.7526 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.5393, allocations: 23.78 kB / 0.7526 GB, free: 10.08 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.5393, allocations: 4 kB / 0.7526 GB, free: 10.07 MB / 0.6355 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.02e-05/0.5394, allocations: 108.9 kB / 0.7527 GB, free: 9.961 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001682/0.5396, allocations: 73.75 kB / 0.7528 GB, free: 9.883 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.733e-05/0.5396, allocations: 7.891 kB / 0.7528 GB, free: 9.875 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002064/0.5398, allocations: 74.31 kB / 0.7528 GB, free: 9.797 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.5398, allocations: 7.953 kB / 0.7529 GB, free: 9.789 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.5399, allocations: 3.984 kB / 0.7529 GB, free: 9.785 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.5399, allocations: 0 / 0.7529 GB, free: 9.785 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.5403, allocations: 299.1 kB / 0.7531 GB, free: 9.449 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.5403, allocations: 0 / 0.7531 GB, free: 9.449 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.5404, allocations: 19.98 kB / 0.7532 GB, free: 9.43 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.5404, allocations: 0 / 0.7532 GB, free: 9.43 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.5405, allocations: 3.953 kB / 0.7532 GB, free: 9.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.5405, allocations: 4 kB / 0.7532 GB, free: 9.422 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.5405, allocations: 4 kB / 0.7532 GB, free: 9.418 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000214/0.5407, allocations: 171.4 kB / 0.7533 GB, free: 9.234 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.5408, allocations: 77.11 kB / 0.7534 GB, free: 9.141 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.5408, allocations: 0 / 0.7534 GB, free: 9.141 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.541, allocations: 15.98 kB / 0.7534 GB, free: 9.125 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.979e-05/0.541, allocations: 15.97 kB / 0.7534 GB, free: 9.109 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.5411, allocations: 4 kB / 0.7534 GB, free: 9.105 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.136e-05/0.5411, allocations: 87.53 kB / 0.7535 GB, free: 9.02 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.01e-07/0.5411, allocations: 3.938 kB / 0.7535 GB, free: 9.016 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003589/0.5415, allocations: 8 kB / 0.7535 GB, free: 9.008 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.0005217/0.542, allocations: 0.7052 MB / 0.7542 GB, free: 8.273 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001591/0.5422, allocations: 44.02 kB / 0.7543 GB, free: 8.23 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5422, allocations: 3.938 kB / 0.7543 GB, free: 8.227 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.11e-05/0.5423, allocations: 23.92 kB / 0.7543 GB, free: 8.203 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.5426, allocations: 13.31 kB / 0.7543 GB, free: 8.191 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005082/0.5431, allocations: 106.3 kB / 0.7544 GB, free: 8.047 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.5434, allocations: 0.6926 MB / 0.7551 GB, free: 7.328 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.732e-05/0.5435, allocations: 4.188 kB / 0.7551 GB, free: 7.324 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.382e-05/0.5436, allocations: 15.42 kB / 0.7551 GB, free: 7.312 MB / 0.6355 GB Notification: Performance of SimCode: time 9.82e-07/0.5436, allocations: 0 / 0.7551 GB, free: 7.312 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0386/0.5822, allocations: 1.051 MB / 0.7561 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000308/0.5826, allocations: 165 kB / 0.7563 GB, free: 6.066 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.156/2.739, allocations: 0 / 0.7563 GB, free: 6.066 MB / 0.6355 GB