Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadModel(Buildings): time 4.348/4.348, allocations: 433.4 MB / 440.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 5.329e-05/5.345e-05, allocations: 11.94 kB / 0.5325 GB, free: 1.895 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5475/0.5476, allocations: 98.71 MB / 0.6289 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1935/0.7411, allocations: 124.2 MB / 0.7503 GB, free: 3.266 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.7414, allocations: 79.83 kB / 0.7503 GB, free: 3.188 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.005068/0.7465, allocations: 1.35 MB / 0.7517 GB, free: 1.836 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.019e-06/0.7465, allocations: 0 / 0.7517 GB, free: 1.836 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.322e-05/0.7465, allocations: 4 kB / 0.7517 GB, free: 1.832 MB / 0.6198 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.0006656/0.7472, allocations: 402.2 kB / 0.752 GB, free: 1.395 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.7472, allocations: 8.031 kB / 0.7521 GB, free: 1.387 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.531e-05/0.7473, allocations: 7.906 kB / 0.7521 GB, free: 1.379 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.7475, allocations: 179 kB / 0.7522 GB, free: 1.164 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.7475, allocations: 4 kB / 0.7522 GB, free: 1.16 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.443e-05/0.7476, allocations: 4 kB / 0.7522 GB, free: 1.156 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001637/0.7477, allocations: 43.98 kB / 0.7523 GB, free: 1.113 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.7479, allocations: 69.61 kB / 0.7523 GB, free: 1.039 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.7479, allocations: 0 / 0.7523 GB, free: 1.039 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.748, allocations: 4 kB / 0.7524 GB, free: 1.035 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.427e-06/0.748, allocations: 0 / 0.7524 GB, free: 1.035 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007524/0.7487, allocations: 333.1 kB / 0.7527 GB, free: 0.6719 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.7492, allocations: 126.6 kB / 0.7528 GB, free: 0.5391 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.644e-05/0.7493, allocations: 24.86 kB / 0.7528 GB, free: 0.5117 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.7494, allocations: 0 / 0.7528 GB, free: 0.5117 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.7496, allocations: 83.38 kB / 0.7529 GB, free: 428 kB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 3.113e-06/0.7496, allocations: 4 kB / 0.7529 GB, free: 424 kB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.00028/0.7499, allocations: 97.66 kB / 0.753 GB, free: 320 kB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.7499, allocations: 55.41 kB / 0.753 GB, free: 252 kB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.7501, allocations: 117.1 kB / 0.7532 GB, free: 124 kB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.895e-05/0.7501, allocations: 29.7 kB / 0.7532 GB, free: 88 kB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.321e-05/0.7502, allocations: 92.16 kB / 0.7533 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.698e-05/0.7503, allocations: 31.64 kB / 0.7533 GB, free: 15.96 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.884e-06/0.7503, allocations: 0 / 0.7533 GB, free: 15.96 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.7505, allocations: 318.8 kB / 0.7536 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.479e-05/0.7506, allocations: 28 kB / 0.7536 GB, free: 15.61 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.7507, allocations: 59.38 kB / 0.7537 GB, free: 15.54 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.016e-05/0.7508, allocations: 23.98 kB / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.164e-06/0.7508, allocations: 0 / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002818/0.7511, allocations: 113.6 kB / 0.7538 GB, free: 15.4 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.7511, allocations: 13.41 kB / 0.7538 GB, free: 15.39 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.147e-06/0.7512, allocations: 0 / 0.7538 GB, free: 15.39 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.7512, allocations: 0 / 0.7538 GB, free: 15.39 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.7514, allocations: 35.86 kB / 0.7539 GB, free: 15.35 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.7514, allocations: 7.953 kB / 0.7539 GB, free: 15.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.7516, allocations: 31.97 kB / 0.7539 GB, free: 15.31 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.7516, allocations: 4 kB / 0.7539 GB, free: 15.31 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 () * 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.0001104/0.7518, allocations: 116.7 kB / 0.754 GB, free: 15.19 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.7518, allocations: 7.906 kB / 0.754 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.7521, allocations: 110.3 kB / 0.7541 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/0.7521, allocations: 3.984 kB / 0.7541 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.073e-06/0.7521, allocations: 0 / 0.7541 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.915e-06/0.7521, allocations: 3.953 kB / 0.7541 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005494/0.7527, allocations: 354.9 kB / 0.7545 GB, free: 14.67 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.7527, allocations: 0 / 0.7545 GB, free: 14.67 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.7529, allocations: 23.97 kB / 0.7545 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.312e-06/0.7529, allocations: 4 kB / 0.7545 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.7529, allocations: 0 / 0.7545 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.914e-06/0.7529, allocations: 0 / 0.7545 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.372e-06/0.753, allocations: 3.953 kB / 0.7545 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.7533, allocations: 203.3 kB / 0.7547 GB, free: 14.42 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.654e-05/0.7533, allocations: 84.95 kB / 0.7548 GB, free: 14.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.7534, allocations: 0 / 0.7548 GB, free: 14.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.7536, allocations: 27.97 kB / 0.7548 GB, free: 14.29 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.139e-05/0.7537, allocations: 19.97 kB / 0.7548 GB, free: 14.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.7537, allocations: 11.94 kB / 0.7548 GB, free: 14.26 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.731e-05/0.7538, allocations: 87.28 kB / 0.7549 GB, free: 14.18 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.51e-07/0.7538, allocations: 0 / 0.7549 GB, free: 14.18 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003512/0.7542, allocations: 16 kB / 0.7549 GB, free: 14.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) * 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.0001725/0.7544, allocations: 110.2 kB / 0.755 GB, free: 14.05 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002392/0.7546, allocations: 71.92 kB / 0.7551 GB, free: 13.98 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.492e-06/0.7547, allocations: 192 / 0.7551 GB, free: 13.98 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.7548, allocations: 43.94 kB / 0.7552 GB, free: 13.93 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.7551, allocations: 15.98 kB / 0.7552 GB, free: 13.92 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.7555, allocations: 120.5 kB / 0.7553 GB, free: 13.78 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.7559, allocations: 0.7002 MB / 0.756 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 7.127e-05/0.756, allocations: 8.562 kB / 0.756 GB, free: 13.04 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.065e-05/0.7561, allocations: 15.42 kB / 0.756 GB, free: 13.03 MB / 0.6355 GB Notification: Performance of SimCode: time 1.363e-06/0.7561, allocations: 0 / 0.756 GB, free: 13.03 MB / 0.6355 GB Notification: Performance of Templates: time 0.004327/0.7604, allocations: 1.049 MB / 0.757 GB, free: 12 MB / 0.6355 GB