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.01081/0.01081, allocations: 107.4 kB / 15.06 MB, free: 6.031 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.00118/0.001179, allocations: 181.8 kB / 15.95 MB, free: 5.957 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 2.064/2.064, allocations: 194.5 MB / 211.3 MB, free: 11.09 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.692/2.692, allocations: 236.2 MB / 492.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007627/0.0007632, allocations: 16 kB / 0.587 GB, free: 2.078 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7921/0.7929, allocations: 98.7 MB / 0.6834 GB, free: 16.8 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001731/0.7947, allocations: 1.085 MB / 0.6845 GB, free: 16 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0005849/0.7954, allocations: 221.2 kB / 0.6847 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.362e-05/0.7954, allocations: 0 / 0.6847 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.117e-05/0.7955, allocations: 3.938 kB / 0.6847 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 6.729e-05/0.7956, allocations: 6.234 kB / 0.6847 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.7958, allocations: 25.67 kB / 0.6847 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 8.117e-05/0.7959, allocations: 30.23 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 9.917e-05/0.796, allocations: 5.422 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 7.144e-05/0.7961, allocations: 17 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 5.796e-05/0.7961, allocations: 18.39 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.7962, allocations: 2.062 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.572e-05/0.7962, allocations: 2.656 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.26e-05/0.7962, allocations: 7.438 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 3.586e-05/0.7963, allocations: 38.28 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 8.814e-05/0.7964, allocations: 27.75 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.7964, allocations: 0 / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.404e-06/0.7964, allocations: 1.266 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.7964, allocations: 0 / 0.6849 GB, free: 15.75 MB / 0.5261 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.0006024/0.797, allocations: 364.8 kB / 0.6852 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.7971, allocations: 9.531 kB / 0.6852 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.372e-05/0.7971, allocations: 37.11 kB / 0.6853 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.7972, allocations: 6.594 kB / 0.6853 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.7973, allocations: 175 kB / 0.6855 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.7973, allocations: 5.938 kB / 0.6855 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.7973, allocations: 3.375 kB / 0.6855 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.7976, allocations: 75.64 kB / 0.6855 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.7976, allocations: 0 / 0.6855 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.7977, allocations: 1.906 kB / 0.6855 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.7977, allocations: 1.125 kB / 0.6855 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003187/0.798, allocations: 56.48 kB / 0.6856 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004682/0.7985, allocations: 285.2 kB / 0.6859 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.7988, allocations: 58.61 kB / 0.6859 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.7988, allocations: 1.188 kB / 0.6859 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.7992, allocations: 82.97 kB / 0.686 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 2.444e-06/0.7992, allocations: 0 / 0.686 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0006688/0.7998, allocations: 147.8 kB / 0.6861 GB, free: 14.62 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.7999, allocations: 61.3 kB / 0.6862 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.934e-05/0.8, allocations: 104.4 kB / 0.6863 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.8, allocations: 26.41 kB / 0.6863 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/0.8001, allocations: 87.47 kB / 0.6864 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.8001, allocations: 15.77 kB / 0.6864 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-06/0.8001, allocations: 4 kB / 0.6864 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.747e-05/0.8002, allocations: 319 kB / 0.6867 GB, free: 14 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.8004, allocations: 29.55 kB / 0.6868 GB, free: 14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.8006, allocations: 65.88 kB / 0.6868 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.8008, allocations: 38.62 kB / 0.6869 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.8008, allocations: 1.375 kB / 0.6869 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004669/0.8013, allocations: 125.1 kB / 0.687 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.8013, allocations: 5.875 kB / 0.687 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.8014, allocations: 1.438 kB / 0.687 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.8014, allocations: 5 kB / 0.687 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.8016, allocations: 19.3 kB / 0.687 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.8016, allocations: 9.844 kB / 0.687 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.8017, allocations: 9.594 kB / 0.687 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.8018, allocations: 4.344 kB / 0.687 GB, free: 13.86 MB / 0.5261 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 0.0001068/0.8019, allocations: 119.5 kB / 0.6871 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.8019, allocations: 6.125 kB / 0.6871 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004821/0.8024, allocations: 129.7 kB / 0.6873 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.8024, allocations: 0.6094 kB / 0.6873 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.8024, allocations: 0 / 0.6873 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.8025, allocations: 5.906 kB / 0.6873 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006596/0.8031, allocations: 373.2 kB / 0.6876 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.8031, allocations: 0.5156 kB / 0.6876 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.8033, allocations: 17.39 kB / 0.6877 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.633e-06/0.8033, allocations: 0.7031 kB / 0.6877 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.8033, allocations: 5.312 kB / 0.6877 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.8033, allocations: 6.406 kB / 0.6877 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.8033, allocations: 4 kB / 0.6877 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000437/0.8038, allocations: 206.7 kB / 0.6879 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.8038, allocations: 82.88 kB / 0.6879 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.8039, allocations: 1 kB / 0.6879 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.804, allocations: 19.11 kB / 0.688 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.513e-05/0.8041, allocations: 10.55 kB / 0.688 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.8041, allocations: 4.875 kB / 0.688 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.995e-05/0.8042, allocations: 79.41 kB / 0.6881 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.81e-07/0.8042, allocations: 0 / 0.6881 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003375/0.8045, allocations: 14.44 kB / 0.6881 GB, free: 12.98 MB / 0.5261 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.0006923/0.8052, allocations: 0.7462 MB / 0.6888 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004783/0.8057, allocations: 86.45 kB / 0.6889 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.8058, allocations: 0 / 0.6889 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.806, allocations: 39.81 kB / 0.6889 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.8063, allocations: 17.44 kB / 0.6889 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007851/0.8071, allocations: 0.9591 MB / 0.6899 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.8072, allocations: 0.6865 MB / 0.6905 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.913e-05/0.8073, allocations: 9.188 kB / 0.6905 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.418e-05/0.8074, allocations: 19.25 kB / 0.6906 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of SimCode: time 1.372e-06/0.8074, allocations: 0 / 0.6906 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.8311, allocations: 1.371 MB / 0.6919 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002343/0.8314, allocations: 195.1 kB / 0.6921 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.362/3.193, allocations: 3.938 kB / 0.6921 GB, free: 10.11 MB / 0.5261 GB