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.01067/0.01068, allocations: 109 kB / 15.06 MB, free: 5.555 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.002705/0.002704, allocations: 178.6 kB / 15.95 MB, free: 5.52 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.36/2.36, allocations: 194.6 MB / 211.3 MB, free: 11.04 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.421/2.421, allocations: 236.1 MB / 492.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006621/0.0006622, allocations: 12 kB / 0.587 GB, free: 2.059 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7651/0.7659, allocations: 98.71 MB / 0.6834 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001687/0.7676, allocations: 1.096 MB / 0.6845 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0005854/0.7683, allocations: 226 kB / 0.6847 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.756e-05/0.7683, allocations: 5.375 kB / 0.6847 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 1.76e-05/0.7683, allocations: 0.8906 kB / 0.6847 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 8.02e-05/0.7684, allocations: 6.703 kB / 0.6847 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002012/0.7687, allocations: 28.94 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 9.201e-05/0.7688, allocations: 38.23 kB / 0.6848 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 9.582e-05/0.7689, allocations: 6.812 kB / 0.6848 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 8.424e-05/0.769, allocations: 21.94 kB / 0.6848 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 7.445e-05/0.769, allocations: 30.69 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.57e-05/0.7691, allocations: 3 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.8e-05/0.7691, allocations: 4.219 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.7691, allocations: 13.55 kB / 0.6849 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 3.637e-05/0.7692, allocations: 34.2 kB / 0.6849 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.7693, allocations: 38.67 kB / 0.685 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.7693, allocations: 0 / 0.685 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.004e-06/0.7693, allocations: 1.281 kB / 0.685 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.7693, allocations: 0 / 0.685 GB, free: 15.7 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006912/0.77, allocations: 384.2 kB / 0.6853 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.7701, allocations: 9.125 kB / 0.6853 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.7702, allocations: 41.69 kB / 0.6854 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.7702, allocations: 12.92 kB / 0.6854 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.571e-05/0.7703, allocations: 170.1 kB / 0.6855 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.7704, allocations: 4.062 kB / 0.6855 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.7704, allocations: 4.906 kB / 0.6856 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003232/0.7707, allocations: 89.03 kB / 0.6856 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.7708, allocations: 1.062 kB / 0.6856 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.7708, allocations: 1.734 kB / 0.6856 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.7708, allocations: 5.875 kB / 0.6856 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003523/0.7712, allocations: 66.41 kB / 0.6857 GB, free: 15 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.7717, allocations: 308.9 kB / 0.686 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002937/0.7721, allocations: 84.34 kB / 0.6861 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.7721, allocations: 3.266 kB / 0.6861 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000328/0.7724, allocations: 102.3 kB / 0.6862 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=10): time 2.475e-06/0.7725, allocations: 0 / 0.6862 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=10): time 0.0007822/0.7732, allocations: 190.2 kB / 0.6864 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.7733, allocations: 55.05 kB / 0.6864 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.886e-05/0.7734, allocations: 104.9 kB / 0.6865 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.7734, allocations: 33.27 kB / 0.6865 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.207e-05/0.7735, allocations: 90.8 kB / 0.6866 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.7735, allocations: 34.33 kB / 0.6867 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-06/0.7735, allocations: 4 kB / 0.6867 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.183e-05/0.7736, allocations: 319.5 kB / 0.687 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.7738, allocations: 40.45 kB / 0.687 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.7741, allocations: 73.19 kB / 0.6871 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.7743, allocations: 49.2 kB / 0.6871 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.7743, allocations: 0 / 0.6871 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005/0.7748, allocations: 149.5 kB / 0.6873 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.7749, allocations: 5.766 kB / 0.6873 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.7749, allocations: 5.312 kB / 0.6873 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.7749, allocations: 2.438 kB / 0.6873 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.7751, allocations: 29.22 kB / 0.6873 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.7752, allocations: 14.55 kB / 0.6873 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.7753, allocations: 10.2 kB / 0.6873 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.7753, allocations: 8 kB / 0.6873 GB, free: 13.71 MB / 0.5261 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.0001046/0.7754, allocations: 121.3 kB / 0.6875 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.095e-05/0.7755, allocations: 7.062 kB / 0.6875 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005381/0.776, allocations: 160.7 kB / 0.6876 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.776, allocations: 1 kB / 0.6876 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.776, allocations: 4.812 kB / 0.6876 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.7761, allocations: 3.953 kB / 0.6876 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007223/0.7768, allocations: 410.8 kB / 0.688 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.7768, allocations: 1 kB / 0.688 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.7769, allocations: 17.94 kB / 0.688 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.777, allocations: 0 / 0.688 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.777, allocations: 1.797 kB / 0.688 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.777, allocations: 5.109 kB / 0.688 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.777, allocations: 0.6094 kB / 0.688 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005204/0.7775, allocations: 248.5 kB / 0.6883 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.038e-05/0.7776, allocations: 83.61 kB / 0.6884 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.7776, allocations: 2.469 kB / 0.6884 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.7778, allocations: 16.66 kB / 0.6884 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.875e-05/0.7779, allocations: 13.94 kB / 0.6884 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.7779, allocations: 7.422 kB / 0.6884 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.961e-05/0.778, allocations: 85.83 kB / 0.6885 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.11e-07/0.778, allocations: 0 / 0.6885 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003415/0.7783, allocations: 17.22 kB / 0.6885 GB, free: 12.8 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: 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.0007322/0.7791, allocations: 0.7831 MB / 0.6893 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004814/0.7796, allocations: 109.3 kB / 0.6894 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.7796, allocations: 0 / 0.6894 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.7798, allocations: 55.67 kB / 0.6894 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.7801, allocations: 13.75 kB / 0.6894 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008263/0.7809, allocations: 0.836 MB / 0.6903 GB, free: 11.22 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.7811, allocations: 0.6899 MB / 0.6909 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.783e-05/0.7812, allocations: 5.562 kB / 0.6909 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.555e-05/0.7812, allocations: 29.98 kB / 0.691 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.182e-06/0.7813, allocations: 0 / 0.691 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.8024, allocations: 1.595 MB / 0.6925 GB, free: 10.28 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/0.8027, allocations: 203.5 kB / 0.6927 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.587/3.389, allocations: 0 / 0.6927 GB, free: 10.04 MB / 0.5261 GB