Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_7_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.3/package.mo): time 0.01489/0.0149, allocations: 92.88 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001922/0.001922, allocations: 173.3 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.215/2.215, allocations: 205.5 MB / 222.2 MB, free: 13.57 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.44/2.44, allocations: 252.8 MB / 0.511 GB, free: 8.277 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.0004792, allocations: 11.28 kB / 0.6243 GB, free: 21.04 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2325, allocations: 106.2 MB / 0.7281 GB, free: 8.059 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.00182/0.2344, allocations: 1.116 MB / 0.7292 GB, free: 6.93 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0006074/0.235, allocations: 228.9 kB / 0.7294 GB, free: 6.703 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.998e-05/0.2351, allocations: 8 kB / 0.7294 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.2351, allocations: 3.984 kB / 0.7294 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 7.193e-05/0.2352, allocations: 0 / 0.7294 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.2354, allocations: 27.91 kB / 0.7294 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 9.255e-05/0.2355, allocations: 35.95 kB / 0.7295 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 9.752e-05/0.2357, allocations: 19.97 kB / 0.7295 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 7.954e-05/0.2357, allocations: 19.92 kB / 0.7295 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 7.036e-05/0.2358, allocations: 27.91 kB / 0.7295 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.2359, allocations: 4 kB / 0.7295 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.492e-05/0.2359, allocations: 4 kB / 0.7295 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.617e-05/0.2359, allocations: 19.91 kB / 0.7295 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 3.931e-05/0.236, allocations: 29.7 kB / 0.7296 GB, free: 6.5 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 9.739e-05/0.2361, allocations: 47.84 kB / 0.7296 GB, free: 6.453 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.2361, allocations: 0 / 0.7296 GB, free: 6.453 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2361, allocations: 0 / 0.7296 GB, free: 6.453 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.2361, allocations: 3.938 kB / 0.7296 GB, free: 6.449 MB / 0.5573 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.0006963/0.2368, allocations: 375.5 kB / 0.73 GB, free: 6.035 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.2369, allocations: 12.03 kB / 0.73 GB, free: 6.023 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.884e-05/0.2369, allocations: 34.5 kB / 0.73 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.937e-05/0.237, allocations: 11.86 kB / 0.73 GB, free: 5.969 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.2371, allocations: 171 kB / 0.7302 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.2372, allocations: 4 kB / 0.7302 GB, free: 5.758 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.2372, allocations: 4 kB / 0.7302 GB, free: 5.754 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/0.2375, allocations: 93.64 kB / 0.7303 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2375, allocations: 0 / 0.7303 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.2376, allocations: 0 / 0.7303 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.2376, allocations: 0 / 0.7303 GB, free: 5.656 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003642/0.238, allocations: 67.89 kB / 0.7304 GB, free: 5.59 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006145/0.2386, allocations: 312.8 kB / 0.7307 GB, free: 5.234 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.2389, allocations: 90.53 kB / 0.7307 GB, free: 5.137 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.239, allocations: 4.094 kB / 0.7308 GB, free: 5.133 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00034/0.2393, allocations: 99.42 kB / 0.7308 GB, free: 5.023 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=10): time 2.855e-06/0.2393, allocations: 0 / 0.7308 GB, free: 5.023 MB / 0.5573 GB Notification: Performance of matching and sorting (n=10): time 0.0008169/0.2402, allocations: 197.4 kB / 0.731 GB, free: 4.824 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.2402, allocations: 51.41 kB / 0.7311 GB, free: 4.762 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.944e-05/0.2403, allocations: 105.8 kB / 0.7312 GB, free: 4.648 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.2404, allocations: 33.7 kB / 0.7312 GB, free: 4.609 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 6.476e-05/0.2405, allocations: 92.28 kB / 0.7313 GB, free: 4.512 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.2405, allocations: 27.64 kB / 0.7313 GB, free: 4.484 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.2405, allocations: 0 / 0.7313 GB, free: 4.484 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2407, allocations: 322.8 kB / 0.7316 GB, free: 4.16 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.2409, allocations: 35.98 kB / 0.7317 GB, free: 4.125 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.2411, allocations: 79 kB / 0.7317 GB, free: 4.039 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.2413, allocations: 51.86 kB / 0.7318 GB, free: 3.988 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2414, allocations: 0 / 0.7318 GB, free: 3.988 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005267/0.2419, allocations: 149.5 kB / 0.7319 GB, free: 3.836 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.2419, allocations: 11.94 kB / 0.732 GB, free: 3.824 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2419, allocations: 0 / 0.732 GB, free: 3.824 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.242, allocations: 0 / 0.732 GB, free: 3.824 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.2422, allocations: 36.02 kB / 0.732 GB, free: 3.789 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.2422, allocations: 3.953 kB / 0.732 GB, free: 3.785 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.2424, allocations: 19.83 kB / 0.732 GB, free: 3.766 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.2424, allocations: 4 kB / 0.732 GB, free: 3.762 MB / 0.5573 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.0001441/0.2425, allocations: 122.9 kB / 0.7321 GB, free: 3.633 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.214e-05/0.2426, allocations: 3.906 kB / 0.7321 GB, free: 3.629 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000562/0.2431, allocations: 157.9 kB / 0.7323 GB, free: 3.469 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2432, allocations: 0 / 0.7323 GB, free: 3.469 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2432, allocations: 4 kB / 0.7323 GB, free: 3.465 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.2432, allocations: 3.953 kB / 0.7323 GB, free: 3.461 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008205/0.244, allocations: 418.4 kB / 0.7327 GB, free: 2.996 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.244, allocations: 0 / 0.7327 GB, free: 2.996 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.2442, allocations: 19.92 kB / 0.7327 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.2442, allocations: 0 / 0.7327 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.2442, allocations: 0 / 0.7327 GB, free: 2.977 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.2442, allocations: 11.95 kB / 0.7327 GB, free: 2.965 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2443, allocations: 0 / 0.7327 GB, free: 2.965 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005453/0.2448, allocations: 239.3 kB / 0.7329 GB, free: 2.715 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.2449, allocations: 89.09 kB / 0.733 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.2449, allocations: 288 / 0.733 GB, free: 2.609 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.2451, allocations: 11.98 kB / 0.733 GB, free: 2.598 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-05/0.2452, allocations: 7.953 kB / 0.7331 GB, free: 2.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.2452, allocations: 16.17 kB / 0.7331 GB, free: 2.574 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.993e-05/0.2452, allocations: 83.28 kB / 0.7331 GB, free: 2.492 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2453, allocations: 0 / 0.7331 GB, free: 2.492 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003425/0.2456, allocations: 23.84 kB / 0.7332 GB, free: 2.469 MB / 0.5573 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.0008698/0.2465, allocations: 0.7827 MB / 0.7339 GB, free: 1.66 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004888/0.247, allocations: 107.8 kB / 0.734 GB, free: 1.555 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.247, allocations: 0 / 0.734 GB, free: 1.555 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.2473, allocations: 60.09 kB / 0.7341 GB, free: 1.496 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.2475, allocations: 7.953 kB / 0.7341 GB, free: 1.488 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000917/0.2485, allocations: 0.8296 MB / 0.7349 GB, free: 0.5938 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.2488, allocations: 0.6887 MB / 0.7356 GB, free: 15.88 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 5.504e-05/0.2488, allocations: 8.438 kB / 0.7356 GB, free: 15.87 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.159e-05/0.2489, allocations: 23.42 kB / 0.7356 GB, free: 15.85 MB / 0.573 GB Notification: Performance of SimCode: time 8.92e-07/0.2489, allocations: 4 kB / 0.7356 GB, free: 15.84 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.2691, allocations: 1.586 MB / 0.7372 GB, free: 14.36 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003194/0.2695, allocations: 207 kB / 0.7374 GB, free: 14.11 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.385/2.654, allocations: 0 / 0.7374 GB, free: 14.11 MB / 0.573 GB