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 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.FirstOrderHold,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.0105/0.0105, allocations: 106.2 kB / 15.05 MB, free: 5.984 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.001141/0.00114, allocations: 182.8 kB / 15.94 MB, free: 5.941 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.009/2.009, allocations: 194.5 MB / 211.2 MB, free: 11.07 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.344/2.344, allocations: 236.1 MB / 492.6 MB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006309/0.000631, allocations: 12 kB / 0.587 GB, free: 2.062 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6541/0.6548, allocations: 98.71 MB / 0.6834 GB, free: 16.77 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2225/0.8774, allocations: 124.7 MB / 0.8052 GB, free: 1.562 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.8777, allocations: 67.95 kB / 0.8053 GB, free: 1.496 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003835/0.8815, allocations: 0.9563 MB / 0.8062 GB, free: 0.5352 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8816, allocations: 4 kB / 0.8062 GB, free: 0.5312 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.8816, allocations: 0 / 0.8062 GB, free: 0.5312 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006648/0.8823, allocations: 375.2 kB / 0.8066 GB, free: 120 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.8823, allocations: 12.03 kB / 0.8066 GB, free: 108 kB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.311e-05/0.8824, allocations: 34.55 kB / 0.8066 GB, free: 64 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.757e-05/0.8824, allocations: 11.84 kB / 0.8066 GB, free: 52 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.8826, allocations: 163 kB / 0.8068 GB, free: 15.85 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.8826, allocations: 8 kB / 0.8068 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.8827, allocations: 4 kB / 0.8068 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/0.883, allocations: 93.58 kB / 0.8069 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.883, allocations: 0 / 0.8069 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.8831, allocations: 4 kB / 0.8069 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.8831, allocations: 0 / 0.8069 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003637/0.8834, allocations: 67.89 kB / 0.807 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000736/0.8842, allocations: 332.7 kB / 0.8073 GB, free: 15.3 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.8845, allocations: 90.55 kB / 0.8074 GB, free: 15.2 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.8846, allocations: 3.984 kB / 0.8074 GB, free: 15.2 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.8849, allocations: 91.5 kB / 0.8075 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.625e-06/0.8849, allocations: 4 kB / 0.8075 GB, free: 15.09 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0007923/0.8857, allocations: 189.5 kB / 0.8076 GB, free: 14.9 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.8858, allocations: 59.36 kB / 0.8077 GB, free: 14.83 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.8859, allocations: 101 kB / 0.8078 GB, free: 14.72 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.886, allocations: 34.08 kB / 0.8078 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.981e-05/0.886, allocations: 92.27 kB / 0.8079 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.983e-05/0.8861, allocations: 23.66 kB / 0.8079 GB, free: 14.56 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-06/0.8861, allocations: 0 / 0.8079 GB, free: 14.56 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.8862, allocations: 326.8 kB / 0.8083 GB, free: 14.23 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.8865, allocations: 43.97 kB / 0.8083 GB, free: 14.19 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.8867, allocations: 67.41 kB / 0.8084 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.8869, allocations: 55.97 kB / 0.8084 GB, free: 14.06 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.887, allocations: 0 / 0.8084 GB, free: 14.06 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005263/0.8875, allocations: 141.6 kB / 0.8086 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.8875, allocations: 8.094 kB / 0.8086 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.8875, allocations: 4 kB / 0.8086 GB, free: 13.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.8876, allocations: 0 / 0.8086 GB, free: 13.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.8878, allocations: 23.92 kB / 0.8086 GB, free: 13.88 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.8878, allocations: 7.984 kB / 0.8086 GB, free: 13.87 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.888, allocations: 19.86 kB / 0.8086 GB, free: 13.85 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.888, allocations: 4 kB / 0.8086 GB, free: 13.85 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 () * Number of clocked 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 0.0001236/0.8881, allocations: 121.8 kB / 0.8087 GB, free: 13.72 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.8882, allocations: 11.89 kB / 0.8087 GB, free: 13.71 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005786/0.8887, allocations: 157.9 kB / 0.8089 GB, free: 13.54 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.8888, allocations: 0 / 0.8089 GB, free: 13.54 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8888, allocations: 7.938 kB / 0.8089 GB, free: 13.54 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.8888, allocations: 0 / 0.8089 GB, free: 13.54 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008043/0.8896, allocations: 418.3 kB / 0.8093 GB, free: 13.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.8896, allocations: 0 / 0.8093 GB, free: 13.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.8898, allocations: 27.92 kB / 0.8093 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.8898, allocations: 0 / 0.8093 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.8898, allocations: 0 / 0.8093 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.8898, allocations: 0 / 0.8093 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.8898, allocations: 3.953 kB / 0.8093 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005738/0.8904, allocations: 251.5 kB / 0.8096 GB, free: 12.78 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.8905, allocations: 81.11 kB / 0.8096 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.8905, allocations: 4 kB / 0.8097 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.8907, allocations: 11.98 kB / 0.8097 GB, free: 12.66 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.8908, allocations: 11.94 kB / 0.8097 GB, free: 12.65 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.8908, allocations: 256 / 0.8097 GB, free: 12.65 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.278e-05/0.8909, allocations: 95.28 kB / 0.8098 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.51e-07/0.8909, allocations: 0 / 0.8098 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003263/0.8912, allocations: 19.98 kB / 0.8098 GB, free: 12.54 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * 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.0008775/0.8921, allocations: 0.7811 MB / 0.8105 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0005015/0.8926, allocations: 112 kB / 0.8107 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8926, allocations: 4.062 kB / 0.8107 GB, free: 11.62 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.8929, allocations: 47.92 kB / 0.8107 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.8931, allocations: 14.56 kB / 0.8107 GB, free: 11.56 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000941/0.8941, allocations: 0.8334 MB / 0.8115 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.8944, allocations: 0.6926 MB / 0.8122 GB, free: 9.945 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.605e-05/0.8945, allocations: 8.797 kB / 0.8122 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.975e-05/0.8945, allocations: 19.44 kB / 0.8122 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of SimCode: time 8.62e-07/0.8946, allocations: 0 / 0.8122 GB, free: 9.918 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.9185, allocations: 1.591 MB / 0.8138 GB, free: 8.438 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003568/0.9189, allocations: 202.2 kB / 0.814 GB, free: 8.188 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.278/3.197, allocations: 0 / 0.814 GB, free: 8.188 MB / 0.6355 GB