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.TriggeredMax.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.TriggeredMax,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",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.01145/0.01145, allocations: 108.5 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.001422/0.00142, allocations: 181.4 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.005/2.005, allocations: 194.6 MB / 211.3 MB, free: 11.21 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.468/2.468, allocations: 236.1 MB / 492.6 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004868/0.000487, allocations: 12 kB / 0.587 GB, free: 2.055 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.734/0.7345, allocations: 98.72 MB / 0.6834 GB, free: 16.81 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001805/0.7364, allocations: 1.142 MB / 0.6846 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.000613/0.737, allocations: 244.8 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.244e-05/0.7371, allocations: 1.344 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.232e-05/0.7371, allocations: 4.875 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.7372, allocations: 10.02 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002264/0.7375, allocations: 28.27 kB / 0.6848 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 8.351e-05/0.7376, allocations: 28.27 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 9.937e-05/0.7377, allocations: 20.72 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 6.693e-05/0.7378, allocations: 16.84 kB / 0.6849 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 5.806e-05/0.7378, allocations: 25.28 kB / 0.6849 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.7379, allocations: 2.5 kB / 0.6849 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.663e-05/0.7379, allocations: 2.688 kB / 0.6849 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 1.954e-05/0.7379, allocations: 7.391 kB / 0.6849 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 3.632e-05/0.738, allocations: 34.22 kB / 0.685 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 8.797e-05/0.7381, allocations: 38.31 kB / 0.685 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.7381, allocations: 0 / 0.685 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7381, allocations: 0 / 0.685 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.7381, allocations: 0 / 0.685 GB, free: 15.68 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006647/0.7388, allocations: 375.5 kB / 0.6854 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.7388, allocations: 9.344 kB / 0.6854 GB, free: 15.31 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.482e-05/0.7389, allocations: 32.78 kB / 0.6854 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.7389, allocations: 11.23 kB / 0.6854 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.7391, allocations: 176.2 kB / 0.6856 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.7391, allocations: 4.844 kB / 0.6856 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.7391, allocations: 8.719 kB / 0.6856 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.7394, allocations: 69.08 kB / 0.6857 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.7395, allocations: 0 / 0.6857 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.7395, allocations: 5.406 kB / 0.6857 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.7395, allocations: 0 / 0.6857 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.7398, allocations: 59.38 kB / 0.6857 GB, free: 15 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005014/0.7404, allocations: 294 kB / 0.686 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002611/0.7406, allocations: 62.42 kB / 0.6861 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.7407, allocations: 0 / 0.6861 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000312/0.741, allocations: 83.09 kB / 0.6861 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 3.456e-06/0.741, allocations: 3.984 kB / 0.6861 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0006873/0.7417, allocations: 149.2 kB / 0.6863 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.7418, allocations: 57.67 kB / 0.6863 GB, free: 14.48 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.021e-05/0.7419, allocations: 121.7 kB / 0.6865 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.7419, allocations: 26.45 kB / 0.6865 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.742, allocations: 87.31 kB / 0.6866 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.981e-05/0.742, allocations: 12.05 kB / 0.6866 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-06/0.742, allocations: 5.469 kB / 0.6866 GB, free: 14.24 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.751e-05/0.7421, allocations: 318.2 kB / 0.6869 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.7423, allocations: 33.17 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.7425, allocations: 55.39 kB / 0.687 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.7427, allocations: 37.58 kB / 0.687 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.7427, allocations: 1.031 kB / 0.687 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004281/0.7431, allocations: 120.6 kB / 0.6871 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.7432, allocations: 5.281 kB / 0.6871 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.7432, allocations: 1.516 kB / 0.6871 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.7432, allocations: 1.5 kB / 0.6871 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.7434, allocations: 23.02 kB / 0.6871 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.7434, allocations: 1.469 kB / 0.6872 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.7436, allocations: 20.11 kB / 0.6872 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.7436, allocations: 2.156 kB / 0.6872 GB, free: 13.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.583e-05/0.7437, allocations: 115 kB / 0.6873 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.206e-05/0.7437, allocations: 8.031 kB / 0.6873 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004741/0.7442, allocations: 126 kB / 0.6874 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.7442, allocations: 1.094 kB / 0.6874 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.7443, allocations: 8.141 kB / 0.6874 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.7443, allocations: 2.047 kB / 0.6874 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007372/0.745, allocations: 389.8 kB / 0.6878 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.745, allocations: 2.344 kB / 0.6878 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.7452, allocations: 16.22 kB / 0.6878 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.7452, allocations: 1.562 kB / 0.6878 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.7452, allocations: 3.953 kB / 0.6878 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.7452, allocations: 1.5 kB / 0.6878 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.7452, allocations: 0 / 0.6878 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000436/0.7457, allocations: 211.8 kB / 0.688 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.045e-05/0.7457, allocations: 79.84 kB / 0.6881 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.7458, allocations: 6.125 kB / 0.6881 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.746, allocations: 21.86 kB / 0.6881 GB, free: 13 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.746, allocations: 12.05 kB / 0.6881 GB, free: 13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.7461, allocations: 1.781 kB / 0.6881 GB, free: 13 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.651e-05/0.7461, allocations: 92.47 kB / 0.6882 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.11e-07/0.7461, allocations: 0 / 0.6882 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003286/0.7465, allocations: 14.56 kB / 0.6882 GB, free: 12.91 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * 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.0006573/0.7471, allocations: 0.7406 MB / 0.689 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004235/0.7476, allocations: 82.03 kB / 0.689 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7476, allocations: 4.062 kB / 0.689 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.7478, allocations: 39.98 kB / 0.6891 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.7481, allocations: 16.59 kB / 0.6891 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.7495, allocations: 0.8295 MB / 0.6899 GB, free: 11.49 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.7496, allocations: 0.6884 MB / 0.6906 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.262e-05/0.7497, allocations: 8.422 kB / 0.6906 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.792e-05/0.7498, allocations: 24.03 kB / 0.6906 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of SimCode: time 6.31e-07/0.7498, allocations: 0 / 0.6906 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.7689, allocations: 1.589 MB / 0.6922 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003188/0.7693, allocations: 194.3 kB / 0.6923 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/3.271, allocations: 0 / 0.6923 GB, free: 10.31 MB / 0.5261 GB