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.01278/0.01278, allocations: 223 kB / 15.17 MB, free: 5.934 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.001186/0.001186, allocations: 179.6 kB / 16.06 MB, free: 5.832 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 4.016/4.016, allocations: 389.1 MB / 405.9 MB, free: 13.32 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.102/4.102, allocations: 472.3 MB / 0.9017 GB, free: 130 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004758/0.0004759, allocations: 23.94 kB / 1.008 GB, free: 21.49 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6187/0.6192, allocations: 98.71 MB / 1.104 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001673/0.6209, allocations: 1.215 MB / 1.105 GB, free: 9.453 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0006376/0.6216, allocations: 270.6 kB / 1.106 GB, free: 9.188 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.6216, allocations: 0 / 1.106 GB, free: 9.188 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 2.322e-05/0.6217, allocations: 7.922 kB / 1.106 GB, free: 9.18 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.6218, allocations: 7.938 kB / 1.106 GB, free: 9.172 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.622, allocations: 35.83 kB / 1.106 GB, free: 9.137 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.6222, allocations: 80.86 kB / 1.106 GB, free: 9.059 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.6223, allocations: 21.7 kB / 1.106 GB, free: 9.039 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 7.587e-05/0.6224, allocations: 35.86 kB / 1.106 GB, free: 9.004 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 7.228e-05/0.6225, allocations: 31.83 kB / 1.106 GB, free: 8.973 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.6225, allocations: 4.906 kB / 1.106 GB, free: 8.969 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 2.164e-05/0.6225, allocations: 4 kB / 1.106 GB, free: 8.965 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.6226, allocations: 19.97 kB / 1.106 GB, free: 8.945 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 3.592e-05/0.6226, allocations: 35.02 kB / 1.106 GB, free: 8.906 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0001028/0.6227, allocations: 63.86 kB / 1.106 GB, free: 8.844 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.6227, allocations: 0 / 1.106 GB, free: 8.844 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6227, allocations: 5.188 kB / 1.106 GB, free: 8.84 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.6228, allocations: 0 / 1.106 GB, free: 8.84 MB / 0.5105 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.0007741/0.6235, allocations: 407.9 kB / 1.106 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.6236, allocations: 12.03 kB / 1.106 GB, free: 8.387 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.6236, allocations: 40.08 kB / 1.106 GB, free: 8.34 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.6237, allocations: 7.906 kB / 1.106 GB, free: 8.332 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.6238, allocations: 182.9 kB / 1.107 GB, free: 8.113 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.6239, allocations: 0 / 1.107 GB, free: 8.113 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.6239, allocations: 12.66 kB / 1.107 GB, free: 8.102 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004239/0.6243, allocations: 117.1 kB / 1.107 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.6243, allocations: 0 / 1.107 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.6244, allocations: 0 / 1.107 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.6244, allocations: 0 / 1.107 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005939/0.625, allocations: 116.1 kB / 1.107 GB, free: 7.875 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007327/0.6257, allocations: 369.5 kB / 1.107 GB, free: 7.469 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/0.6266, allocations: 159.3 kB / 1.107 GB, free: 7.309 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.6269, allocations: 70.41 kB / 1.107 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.627, allocations: 9.594 kB / 1.107 GB, free: 7.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004677/0.6274, allocations: 121.4 kB / 1.107 GB, free: 7.102 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=11): time 3.477e-06/0.6275, allocations: 0.5 kB / 1.107 GB, free: 7.102 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.001046/0.6285, allocations: 235.3 kB / 1.108 GB, free: 6.871 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.6286, allocations: 51.94 kB / 1.108 GB, free: 6.809 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.6287, allocations: 122.7 kB / 1.108 GB, free: 6.68 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.6288, allocations: 37.69 kB / 1.108 GB, free: 6.637 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.845e-05/0.6288, allocations: 93.52 kB / 1.108 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.965e-05/0.6289, allocations: 35.53 kB / 1.108 GB, free: 6.508 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.6289, allocations: 4 kB / 1.108 GB, free: 6.504 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.629, allocations: 320.5 kB / 1.108 GB, free: 6.184 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/0.6293, allocations: 67.95 kB / 1.108 GB, free: 6.117 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.6296, allocations: 91.39 kB / 1.108 GB, free: 6.016 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/0.63, allocations: 59.95 kB / 1.109 GB, free: 5.957 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-06/0.63, allocations: 0 / 1.109 GB, free: 5.957 MB / 0.5105 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007399/0.6307, allocations: 193.5 kB / 1.109 GB, free: 5.762 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.6308, allocations: 8 kB / 1.109 GB, free: 5.754 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.6308, allocations: 3.938 kB / 1.109 GB, free: 5.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.6308, allocations: 7.953 kB / 1.109 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002276/0.631, allocations: 23.97 kB / 1.109 GB, free: 5.719 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.6311, allocations: 4 kB / 1.109 GB, free: 5.715 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.6313, allocations: 35.89 kB / 1.109 GB, free: 5.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.6313, allocations: 4 kB / 1.109 GB, free: 5.676 MB / 0.5105 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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.0001086/0.6315, allocations: 129.8 kB / 1.109 GB, free: 5.539 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.553e-05/0.6315, allocations: 7.906 kB / 1.109 GB, free: 5.531 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007243/0.6322, allocations: 178.5 kB / 1.109 GB, free: 5.348 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.6322, allocations: 7.953 kB / 1.109 GB, free: 5.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6323, allocations: 3.984 kB / 1.109 GB, free: 5.336 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.6323, allocations: 4 kB / 1.109 GB, free: 5.332 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009382/0.6332, allocations: 462.4 kB / 1.11 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.6332, allocations: 0 / 1.11 GB, free: 4.824 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.6334, allocations: 27.91 kB / 1.11 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.6335, allocations: 3.953 kB / 1.11 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.6335, allocations: 0 / 1.11 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.6335, allocations: 0 / 1.11 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.6335, allocations: 8 kB / 1.11 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006816/0.6342, allocations: 267.3 kB / 1.11 GB, free: 4.508 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.6342, allocations: 84.95 kB / 1.11 GB, free: 4.406 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/0.6343, allocations: 11.95 kB / 1.11 GB, free: 4.395 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.6345, allocations: 23.97 kB / 1.11 GB, free: 4.371 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.6347, allocations: 23.97 kB / 1.11 GB, free: 4.348 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.6347, allocations: 0 / 1.11 GB, free: 4.348 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.947e-05/0.6348, allocations: 99.77 kB / 1.11 GB, free: 4.25 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.91e-07/0.6348, allocations: 0 / 1.11 GB, free: 4.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000329/0.6351, allocations: 20 kB / 1.11 GB, free: 4.23 MB / 0.5105 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 (zeroCrossing.y,$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.0009429/0.6361, allocations: 0.8138 MB / 1.111 GB, free: 3.391 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007292/0.6368, allocations: 155.9 kB / 1.111 GB, free: 3.238 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.6368, allocations: 0 / 1.111 GB, free: 3.238 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003354/0.6372, allocations: 75.88 kB / 1.111 GB, free: 3.164 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.6376, allocations: 20.08 kB / 1.111 GB, free: 3.145 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.6397, allocations: 0.7755 MB / 1.112 GB, free: 2.312 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.6399, allocations: 0.6965 MB / 1.113 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.02e-05/0.64, allocations: 12.55 kB / 1.113 GB, free: 1.578 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.789e-05/0.6401, allocations: 27.42 kB / 1.113 GB, free: 1.551 MB / 0.5105 GB Notification: Performance of SimCode: time 1.022e-06/0.6401, allocations: 0 / 1.113 GB, free: 1.551 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.6665, allocations: 2.175 MB / 1.115 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004694/0.6671, allocations: 203.2 kB / 1.115 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.537/3.204, allocations: 0 / 1.115 GB, free: 15.25 MB / 0.5261 GB