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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.17/4.17, allocations: 432.6 MB / 445.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.422e-05/3.435e-05, allocations: 5.547 kB / 0.5383 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2049, allocations: 98.73 MB / 0.6347 GB, free: 1.898 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2254/0.4304, allocations: 124.6 MB / 0.7564 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.4307, allocations: 71.94 kB / 0.7565 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003745/0.4345, allocations: 0.9432 MB / 0.7574 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.833e-06/0.4345, allocations: 0 / 0.7574 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.4346, allocations: 0 / 0.7574 GB, free: 4.074 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006107/0.4352, allocations: 374.4 kB / 0.7578 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.4352, allocations: 8.031 kB / 0.7578 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.319e-05/0.4353, allocations: 34.56 kB / 0.7578 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.4354, allocations: 11.89 kB / 0.7578 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.4355, allocations: 175 kB / 0.758 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.4355, allocations: 4 kB / 0.758 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.4356, allocations: 4 kB / 0.758 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.4358, allocations: 65.67 kB / 0.7581 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.4358, allocations: 0 / 0.7581 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.918e-05/0.4358, allocations: 8 kB / 0.7581 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.4358, allocations: 4 kB / 0.7581 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001222/0.436, allocations: 27.94 kB / 0.7581 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007128/0.4367, allocations: 336.6 kB / 0.7584 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.4369, allocations: 66.58 kB / 0.7585 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.307e-05/0.437, allocations: 36.86 kB / 0.7585 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.437, allocations: 8.109 kB / 0.7585 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/0.4372, allocations: 75.39 kB / 0.7586 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.244e-06/0.4373, allocations: 0 / 0.7586 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003385/0.4376, allocations: 113.5 kB / 0.7587 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.4377, allocations: 59.48 kB / 0.7588 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.694e-05/0.4378, allocations: 104.9 kB / 0.7589 GB, free: 2.391 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.4378, allocations: 29.7 kB / 0.7589 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.931e-05/0.4379, allocations: 88.36 kB / 0.759 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.4379, allocations: 27.64 kB / 0.759 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.438, allocations: 8 kB / 0.759 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4381, allocations: 314.8 kB / 0.7593 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.996e-05/0.4382, allocations: 24 kB / 0.7593 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.4383, allocations: 55.44 kB / 0.7594 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.701e-05/0.4384, allocations: 31.92 kB / 0.7594 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4384, allocations: 0 / 0.7594 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002739/0.4387, allocations: 117.6 kB / 0.7595 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.4387, allocations: 4 kB / 0.7595 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.4387, allocations: 4 kB / 0.7595 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.4388, allocations: 4.094 kB / 0.7595 GB, free: 1.656 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.439, allocations: 27.92 kB / 0.7596 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.439, allocations: 7.953 kB / 0.7596 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.4391, allocations: 11.98 kB / 0.7596 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.4392, allocations: 4 kB / 0.7596 GB, free: 1.605 MB / 0.6355 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 9.909e-05/0.4393, allocations: 118.8 kB / 0.7597 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.4393, allocations: 11.91 kB / 0.7597 GB, free: 1.473 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003138/0.4396, allocations: 118.2 kB / 0.7598 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.4397, allocations: 4 kB / 0.7598 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4397, allocations: 0 / 0.7598 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.4397, allocations: 3.953 kB / 0.7598 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005626/0.4403, allocations: 378.4 kB / 0.7602 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.4403, allocations: 0 / 0.7602 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.4404, allocations: 19.92 kB / 0.7602 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.4404, allocations: 4 kB / 0.7602 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.4405, allocations: 0 / 0.7602 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.4405, allocations: 7.953 kB / 0.7602 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4405, allocations: 4.172 kB / 0.7602 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003276/0.4408, allocations: 207.4 kB / 0.7604 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.673e-05/0.4409, allocations: 89 kB / 0.7605 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.4409, allocations: 0 / 0.7605 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.4411, allocations: 15.98 kB / 0.7605 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.4412, allocations: 19.88 kB / 0.7606 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.4412, allocations: 4.25 kB / 0.7606 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.308e-05/0.4413, allocations: 83.28 kB / 0.7606 GB, free: 440 kB / 0.6355 GB Notification: Performance of sort global known variables: time 4.01e-07/0.4413, allocations: 0 / 0.7606 GB, free: 440 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002999/0.4416, allocations: 16 kB / 0.7607 GB, free: 424 kB / 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.0006347/0.4422, allocations: 0.7529 MB / 0.7614 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000232/0.4425, allocations: 67.94 kB / 0.7615 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4425, allocations: 0 / 0.7615 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.4426, allocations: 39.94 kB / 0.7615 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.4429, allocations: 11.94 kB / 0.7615 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005399/0.4434, allocations: 135.7 kB / 0.7616 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.4437, allocations: 0.6926 MB / 0.7623 GB, free: 14.63 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.474e-05/0.4438, allocations: 8.422 kB / 0.7623 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.118e-05/0.4439, allocations: 23.38 kB / 0.7623 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of SimCode: time 2.665e-06/0.4439, allocations: 0 / 0.7623 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.4678, allocations: 1.616 MB / 0.7639 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003222/0.4682, allocations: 171.8 kB / 0.7641 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.257/2.725, allocations: 0 / 0.7641 GB, free: 12.83 MB / 0.6511 GB