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.Logical.Validation.ZeroCrossing.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.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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.01078/0.01078, allocations: 107.3 kB / 15.05 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.001182/0.001182, allocations: 184.7 kB / 15.95 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.077/2.077, allocations: 194.5 MB / 211.3 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.309/2.309, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004867/0.0004867, allocations: 16 kB / 0.587 GB, free: 2.062 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6585/0.659, allocations: 98.72 MB / 0.6835 GB, free: 16.68 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2213/0.8804, allocations: 125 MB / 0.8055 GB, free: 1.164 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.8808, allocations: 71.95 kB / 0.8056 GB, free: 1.094 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.005885/0.8867, allocations: 1.342 MB / 0.8069 GB, free: 15.75 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.274e-06/0.8867, allocations: 4 kB / 0.8069 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.165e-06/0.8867, allocations: 0 / 0.8069 GB, free: 15.74 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008338/0.8876, allocations: 419 kB / 0.8073 GB, free: 15.29 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.8877, allocations: 8.031 kB / 0.8073 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.006e-05/0.8877, allocations: 38.56 kB / 0.8074 GB, free: 15.23 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.428e-05/0.8878, allocations: 7.906 kB / 0.8074 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000152/0.888, allocations: 182.9 kB / 0.8075 GB, free: 15 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.888, allocations: 12 kB / 0.8075 GB, free: 14.99 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.803e-05/0.888, allocations: 8 kB / 0.8076 GB, free: 14.98 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004533/0.8885, allocations: 109.6 kB / 0.8077 GB, free: 14.87 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.8885, allocations: 3.938 kB / 0.8077 GB, free: 14.87 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.8886, allocations: 3.984 kB / 0.8077 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.8886, allocations: 4 kB / 0.8077 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006295/0.8892, allocations: 111.9 kB / 0.8078 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008187/0.8901, allocations: 364.5 kB / 0.8081 GB, free: 14.34 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009132/0.891, allocations: 162.6 kB / 0.8083 GB, free: 14.18 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.742e-05/0.8911, allocations: 4.188 kB / 0.8083 GB, free: 14.17 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005205/0.8916, allocations: 123.3 kB / 0.8084 GB, free: 14.04 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 5.5e-06/0.8916, allocations: 0 / 0.8084 GB, free: 14.04 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.00116/0.8928, allocations: 225.4 kB / 0.8086 GB, free: 13.81 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.8929, allocations: 55.34 kB / 0.8087 GB, free: 13.75 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.893, allocations: 129.1 kB / 0.8088 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.358e-05/0.8931, allocations: 29.7 kB / 0.8088 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.71e-05/0.8932, allocations: 108 kB / 0.8089 GB, free: 13.46 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.478e-05/0.8932, allocations: 19.72 kB / 0.8089 GB, free: 13.45 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.487e-05/0.8933, allocations: 4 kB / 0.8089 GB, free: 13.44 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001692/0.8934, allocations: 322.8 kB / 0.8093 GB, free: 13.12 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.8938, allocations: 67.95 kB / 0.8093 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003814/0.8942, allocations: 93.34 kB / 0.8094 GB, free: 12.95 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.8945, allocations: 56.41 kB / 0.8095 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.8946, allocations: 4 kB / 0.8095 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008249/0.8954, allocations: 201.3 kB / 0.8097 GB, free: 12.69 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.8954, allocations: 5.406 kB / 0.8097 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.8955, allocations: 0 / 0.8097 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.8955, allocations: 7.938 kB / 0.8097 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.8958, allocations: 31.92 kB / 0.8097 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.8958, allocations: 0 / 0.8097 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.896, allocations: 39.94 kB / 0.8097 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.8961, allocations: 4 kB / 0.8097 GB, free: 12.6 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: 13 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * 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.0001478/0.8962, allocations: 121.8 kB / 0.8099 GB, free: 12.47 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.8963, allocations: 7.906 kB / 0.8099 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008203/0.8971, allocations: 182 kB / 0.81 GB, free: 12.28 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.8971, allocations: 0 / 0.81 GB, free: 12.28 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.8971, allocations: 3.953 kB / 0.81 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.8972, allocations: 0 / 0.81 GB, free: 12.27 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.8983, allocations: 458.3 kB / 0.8105 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.8983, allocations: 3.984 kB / 0.8105 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.8985, allocations: 19.98 kB / 0.8105 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.8985, allocations: 0 / 0.8105 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.8986, allocations: 11.94 kB / 0.8105 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.8986, allocations: 4 kB / 0.8105 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.8986, allocations: 3.938 kB / 0.8105 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007891/0.8994, allocations: 275.2 kB / 0.8108 GB, free: 11.44 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.065e-05/0.8995, allocations: 85.02 kB / 0.8109 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.8995, allocations: 0 / 0.8109 GB, free: 11.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.8998, allocations: 31.92 kB / 0.8109 GB, free: 11.31 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.907e-05/0.8999, allocations: 19.97 kB / 0.8109 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.9, allocations: 11.98 kB / 0.8109 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.068e-05/0.9001, allocations: 97.75 kB / 0.811 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.6e-07/0.9001, allocations: 0 / 0.811 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003305/0.9004, allocations: 20 kB / 0.811 GB, free: 11.16 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: 8 (triggeredSampler.trigger,$whenCondition2,$whenCondition1,booPul1.pulseStart,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.001185/0.9016, allocations: 0.8066 MB / 0.8118 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0007804/0.9024, allocations: 156.5 kB / 0.812 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.9024, allocations: 0 / 0.812 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003749/0.9028, allocations: 67.89 kB / 0.812 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.9032, allocations: 26.39 kB / 0.8121 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/0.9057, allocations: 1.197 MB / 0.8132 GB, free: 8.828 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.9061, allocations: 0.7082 MB / 0.8139 GB, free: 8.094 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0001021/0.9062, allocations: 8.547 kB / 0.8139 GB, free: 8.086 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.9063, allocations: 23.42 kB / 0.814 GB, free: 8.066 MB / 0.6355 GB Notification: Performance of SimCode: time 1.783e-06/0.9064, allocations: 0 / 0.814 GB, free: 8.066 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.9314, allocations: 2.118 MB / 0.816 GB, free: 6.059 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000336/0.9318, allocations: 194.9 kB / 0.8162 GB, free: 5.816 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.287/3.219, allocations: 4 kB / 0.8162 GB, free: 5.812 MB / 0.6355 GB