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.01128/0.01128, allocations: 107.4 kB / 15.05 MB, free: 5.934 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.001215/0.001215, allocations: 181.5 kB / 15.94 MB, free: 5.898 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.002/2.002, allocations: 194.6 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.294/2.294, allocations: 236.1 MB / 492.6 MB, free: 11.41 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006795/0.0006794, allocations: 20 kB / 0.587 GB, free: 2.055 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6984/0.6991, allocations: 98.71 MB / 0.6834 GB, free: 16.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2775/0.9766, allocations: 124.5 MB / 0.8051 GB, free: 1.633 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.9769, allocations: 71.95 kB / 0.8051 GB, free: 1.562 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003509/0.9805, allocations: 0.893 MB / 0.806 GB, free: 0.668 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.874e-06/0.9805, allocations: 0 / 0.806 GB, free: 0.668 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.166e-05/0.9805, allocations: 0 / 0.806 GB, free: 0.668 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.0006492/0.9812, allocations: 367.2 kB / 0.8064 GB, free: 268 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.9812, allocations: 8.031 kB / 0.8064 GB, free: 260 kB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.9813, allocations: 38.56 kB / 0.8064 GB, free: 212 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.9814, allocations: 7.938 kB / 0.8064 GB, free: 204 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.9815, allocations: 175 kB / 0.8066 GB, free: 15.98 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.9815, allocations: 0 / 0.8066 GB, free: 15.98 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.9816, allocations: 8 kB / 0.8066 GB, free: 15.98 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.9819, allocations: 69.66 kB / 0.8067 GB, free: 15.9 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.9819, allocations: 0 / 0.8067 GB, free: 15.9 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.9819, allocations: 11.81 kB / 0.8067 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.9819, allocations: 0 / 0.8067 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/0.9823, allocations: 59.94 kB / 0.8067 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.9829, allocations: 300.7 kB / 0.807 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.9832, allocations: 62.55 kB / 0.8071 GB, free: 15.42 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.9832, allocations: 0 / 0.8071 GB, free: 15.42 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002977/0.9835, allocations: 79.5 kB / 0.8071 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.953e-06/0.9836, allocations: 0 / 0.8071 GB, free: 15.33 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0006727/0.9842, allocations: 149.6 kB / 0.8073 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.9843, allocations: 51.41 kB / 0.8073 GB, free: 15.12 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.096e-05/0.9844, allocations: 100.9 kB / 0.8074 GB, free: 15.01 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.9844, allocations: 29.7 kB / 0.8075 GB, free: 14.98 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.9845, allocations: 92.06 kB / 0.8075 GB, free: 14.88 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.319e-05/0.9845, allocations: 19.75 kB / 0.8076 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.9846, allocations: 0 / 0.8076 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.9847, allocations: 322.8 kB / 0.8079 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.9849, allocations: 23.98 kB / 0.8079 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.9851, allocations: 72.2 kB / 0.808 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.9853, allocations: 31.98 kB / 0.808 GB, free: 14.4 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.9853, allocations: 0 / 0.808 GB, free: 14.4 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004589/0.9858, allocations: 129.4 kB / 0.8081 GB, free: 14.27 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.9858, allocations: 4.125 kB / 0.8081 GB, free: 14.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.9858, allocations: 4 kB / 0.8081 GB, free: 14.26 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.9859, allocations: 4 kB / 0.8081 GB, free: 14.25 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.9861, allocations: 15.98 kB / 0.8081 GB, free: 14.24 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.9861, allocations: 7.953 kB / 0.8082 GB, free: 14.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.9862, allocations: 15.98 kB / 0.8082 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.9862, allocations: 4 kB / 0.8082 GB, free: 14.21 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 () * 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.000116/0.9864, allocations: 121.8 kB / 0.8083 GB, free: 14.08 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.911e-05/0.9864, allocations: 4.156 kB / 0.8083 GB, free: 14.08 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004813/0.9869, allocations: 122 kB / 0.8084 GB, free: 13.95 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.9869, allocations: 0 / 0.8084 GB, free: 13.95 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.9869, allocations: 4 kB / 0.8084 GB, free: 13.95 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.9869, allocations: 7.953 kB / 0.8084 GB, free: 13.94 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007035/0.9876, allocations: 362.5 kB / 0.8088 GB, free: 13.53 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.9877, allocations: 3.938 kB / 0.8088 GB, free: 13.52 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.9878, allocations: 15.98 kB / 0.8088 GB, free: 13.51 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.9878, allocations: 4 kB / 0.8088 GB, free: 13.5 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.9878, allocations: 0 / 0.8088 GB, free: 13.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.9878, allocations: 3.953 kB / 0.8088 GB, free: 13.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.9879, allocations: 0 / 0.8088 GB, free: 13.5 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004805/0.9883, allocations: 211.4 kB / 0.809 GB, free: 13.28 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.244e-05/0.9884, allocations: 85.02 kB / 0.8091 GB, free: 13.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.9885, allocations: 4 kB / 0.8091 GB, free: 13.17 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.9886, allocations: 11.98 kB / 0.8091 GB, free: 13.16 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.145e-05/0.9887, allocations: 11.94 kB / 0.8091 GB, free: 13.15 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.9887, allocations: 0 / 0.8091 GB, free: 13.15 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.964e-05/0.9888, allocations: 87.28 kB / 0.8092 GB, free: 13.06 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.5e-07/0.9888, allocations: 192 / 0.8092 GB, free: 13.06 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003082/0.9891, allocations: 12 kB / 0.8092 GB, free: 13.05 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) * 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.0008303/0.99, allocations: 0.7499 MB / 0.8099 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004265/0.9904, allocations: 84.48 kB / 0.81 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.9904, allocations: 4.25 kB / 0.81 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.9906, allocations: 39.92 kB / 0.8101 GB, free: 12.15 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.9909, allocations: 15.88 kB / 0.8101 GB, free: 12.13 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009529/0.9919, allocations: 0.953 MB / 0.811 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.9922, allocations: 0.6944 MB / 0.8117 GB, free: 10.39 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.004e-05/0.9923, allocations: 4.188 kB / 0.8117 GB, free: 10.39 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.552e-05/0.9923, allocations: 19.42 kB / 0.8117 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of SimCode: time 9.62e-07/0.9923, allocations: 3.938 kB / 0.8117 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/1.012, allocations: 1.362 MB / 0.813 GB, free: 9.117 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003744/1.012, allocations: 199.6 kB / 0.8132 GB, free: 8.867 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/3.374, allocations: 0 / 0.8132 GB, free: 8.867 MB / 0.6355 GB