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.01278/0.01278, allocations: 221.4 kB / 15.17 MB, free: 6 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.001283/0.001282, allocations: 178.9 kB / 16.06 MB, free: 5.871 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 3.777/3.777, allocations: 389 MB / 405.9 MB, free: 67.64 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.198/4.198, allocations: 472.3 MB / 0.9018 GB, free: 13.25 MB / 0.573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004807/0.0004809, allocations: 8 kB / 1.008 GB, free: 0.5898 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5944/0.595, allocations: 98.73 MB / 1.104 GB, free: 183.8 MB / 0.6823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001477/0.5965, allocations: 1.101 MB / 1.105 GB, free: 182.6 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.0005286/0.5971, allocations: 228.8 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.439e-05/0.5971, allocations: 0 / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 1.907e-05/0.5972, allocations: 0 / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 6.412e-05/0.5972, allocations: 11.92 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.5974, allocations: 27.91 kB / 1.105 GB, free: 182.4 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 9.264e-05/0.5975, allocations: 55.83 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.766e-05/0.5977, allocations: 15.56 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.65e-05/0.5977, allocations: 19.92 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 6.163e-05/0.5978, allocations: 23.91 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.914e-05/0.5978, allocations: 4 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 1.838e-05/0.5979, allocations: 0 / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 2.079e-05/0.5979, allocations: 20.47 kB / 1.106 GB, free: 182.3 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 3.304e-05/0.5979, allocations: 33.7 kB / 1.106 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 8.744e-05/0.598, allocations: 43.89 kB / 1.106 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.5981, allocations: 0 / 1.106 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.444e-06/0.5981, allocations: 3.406 kB / 1.106 GB, free: 182.2 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.5981, allocations: 0 / 1.106 GB, free: 182.2 MB / 0.6823 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.0006307/0.5987, allocations: 369.4 kB / 1.106 GB, free: 181.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.5988, allocations: 18.09 kB / 1.106 GB, free: 181.8 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.5988, allocations: 38.55 kB / 1.106 GB, free: 181.7 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.5989, allocations: 11.86 kB / 1.106 GB, free: 181.7 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.921e-05/0.599, allocations: 164.1 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.599, allocations: 7.938 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.359e-05/0.599, allocations: 8 kB / 1.106 GB, free: 181.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.5993, allocations: 85.73 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.5994, allocations: 0 / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.5994, allocations: 1.828 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.5994, allocations: 4 kB / 1.106 GB, free: 181.4 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.5997, allocations: 66.83 kB / 1.106 GB, free: 181.3 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005562/0.6003, allocations: 320.2 kB / 1.107 GB, free: 181 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.6006, allocations: 80.27 kB / 1.107 GB, free: 180.9 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.6008, allocations: 50.39 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.6009, allocations: 11.03 kB / 1.107 GB, free: 180.8 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003039/0.6012, allocations: 96.3 kB / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 2.876e-06/0.6012, allocations: 0 / 1.107 GB, free: 180.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0007151/0.6019, allocations: 189.7 kB / 1.107 GB, free: 180.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.602, allocations: 55.97 kB / 1.107 GB, free: 180.5 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.189e-05/0.6021, allocations: 114.2 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.6021, allocations: 25.7 kB / 1.107 GB, free: 180.3 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.984e-05/0.6021, allocations: 92.28 kB / 1.107 GB, free: 180.2 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.6022, allocations: 27.64 kB / 1.107 GB, free: 180.2 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.288e-06/0.6022, allocations: 4 kB / 1.107 GB, free: 180.2 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.416e-05/0.6023, allocations: 315 kB / 1.108 GB, free: 179.9 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.6025, allocations: 51.56 kB / 1.108 GB, free: 179.8 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.6027, allocations: 74.05 kB / 1.108 GB, free: 179.7 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.6029, allocations: 46.61 kB / 1.108 GB, free: 179.7 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.6029, allocations: 0 / 1.108 GB, free: 179.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004723/0.6034, allocations: 154.4 kB / 1.108 GB, free: 179.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.6034, allocations: 4 kB / 1.108 GB, free: 179.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.6034, allocations: 4 kB / 1.108 GB, free: 179.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.6035, allocations: 0 / 1.108 GB, free: 179.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.6037, allocations: 30.81 kB / 1.108 GB, free: 179.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.178e-06/0.6037, allocations: 4 kB / 1.108 GB, free: 179.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.6038, allocations: 15.98 kB / 1.108 GB, free: 179.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.6038, allocations: 4 kB / 1.108 GB, free: 179.5 MB / 0.6823 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.0001118/0.604, allocations: 123.7 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.604, allocations: 8.906 kB / 1.108 GB, free: 179.4 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005092/0.6045, allocations: 161.2 kB / 1.108 GB, free: 179.2 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.6045, allocations: 0 / 1.108 GB, free: 179.2 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.6045, allocations: 3.953 kB / 1.108 GB, free: 179.2 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.6046, allocations: 0.9375 kB / 1.108 GB, free: 179.2 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006795/0.6052, allocations: 425.2 kB / 1.109 GB, free: 178.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.6053, allocations: 0 / 1.109 GB, free: 178.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.6054, allocations: 12 kB / 1.109 GB, free: 178.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.6054, allocations: 5.703 kB / 1.109 GB, free: 178.7 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.6054, allocations: 3.953 kB / 1.109 GB, free: 178.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.6054, allocations: 2.719 kB / 1.109 GB, free: 178.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.6055, allocations: 0 / 1.109 GB, free: 178.7 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004799/0.6059, allocations: 246.5 kB / 1.109 GB, free: 178.4 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.95e-05/0.606, allocations: 89 kB / 1.109 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.606, allocations: 0 / 1.109 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.6062, allocations: 23.44 kB / 1.109 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.6063, allocations: 5.734 kB / 1.109 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.6063, allocations: 7.984 kB / 1.109 GB, free: 178.3 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.693e-05/0.6063, allocations: 84.16 kB / 1.109 GB, free: 178.2 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.81e-07/0.6063, allocations: 0.9375 kB / 1.109 GB, free: 178.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003146/0.6067, allocations: 12.75 kB / 1.109 GB, free: 178.2 MB / 0.6823 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.0006795/0.6074, allocations: 0.7879 MB / 1.11 GB, free: 177.4 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00044/0.6078, allocations: 111.7 kB / 1.11 GB, free: 177.3 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.6078, allocations: 0 / 1.11 GB, free: 177.3 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.6081, allocations: 51.97 kB / 1.11 GB, free: 177.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.6085, allocations: 18.59 kB / 1.11 GB, free: 177.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.6098, allocations: 0.5676 MB / 1.111 GB, free: 176.6 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.61, allocations: 0.6887 MB / 1.111 GB, free: 175.9 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.451e-05/0.6101, allocations: 8.422 kB / 1.111 GB, free: 175.9 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.6101, allocations: 15.44 kB / 1.111 GB, free: 175.9 MB / 0.6823 GB Notification: Performance of SimCode: time 1.162e-06/0.6101, allocations: 0 / 1.111 GB, free: 175.9 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.6326, allocations: 1.63 MB / 1.113 GB, free: 174.5 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002473/0.6329, allocations: 203 kB / 1.113 GB, free: 174.3 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.438/3.071, allocations: 2.438 kB / 1.113 GB, free: 174.3 MB / 0.6823 GB