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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.093/4.093, allocations: 432.7 MB / 445.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.03e-05/3.048e-05, allocations: 4.688 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1809, allocations: 98.74 MB / 0.6347 GB, free: 1.902 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2073/0.3882, allocations: 124.9 MB / 0.7567 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003752/0.3887, allocations: 71.95 kB / 0.7568 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.008659/0.3973, allocations: 1.36 MB / 0.7581 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.411e-06/0.3974, allocations: 0 / 0.7581 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.269e-05/0.3974, allocations: 0 / 0.7581 GB, free: 3.395 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.001071/0.3985, allocations: 402.3 kB / 0.7585 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.356e-05/0.3986, allocations: 8.031 kB / 0.7585 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.3987, allocations: 7.906 kB / 0.7585 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.399, allocations: 171 kB / 0.7587 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.399, allocations: 11.94 kB / 0.7587 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.3991, allocations: 8 kB / 0.7587 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003467/0.3994, allocations: 73.67 kB / 0.7588 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.3995, allocations: 0 / 0.7588 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.3995, allocations: 11.94 kB / 0.7588 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3996, allocations: 3.984 kB / 0.7588 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003066/0.3999, allocations: 47.98 kB / 0.7588 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.4012, allocations: 364.6 kB / 0.7592 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008775/0.4021, allocations: 126.6 kB / 0.7593 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.4023, allocations: 29.05 kB / 0.7593 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.4024, allocations: 3.938 kB / 0.7593 GB, free: 2 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003014/0.4027, allocations: 83.39 kB / 0.7594 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.158e-05/0.4027, allocations: 0 / 0.7594 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0005251/0.4033, allocations: 105.5 kB / 0.7595 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.601e-05/0.4034, allocations: 51.41 kB / 0.7596 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.4036, allocations: 121.2 kB / 0.7597 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.4037, allocations: 33.7 kB / 0.7597 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.4039, allocations: 101.9 kB / 0.7598 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.923e-05/0.404, allocations: 31.58 kB / 0.7598 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-05/0.404, allocations: 0 / 0.7598 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002577/0.4043, allocations: 322.8 kB / 0.7601 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.4045, allocations: 28 kB / 0.7602 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.4048, allocations: 63.42 kB / 0.7602 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.4049, allocations: 24.05 kB / 0.7603 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.34e-06/0.405, allocations: 7.922 kB / 0.7603 GB, free: 0.9766 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005851/0.4056, allocations: 117.5 kB / 0.7604 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.4056, allocations: 4 kB / 0.7604 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.4057, allocations: 4 kB / 0.7604 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.4057, allocations: 4.094 kB / 0.7604 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.4061, allocations: 35.86 kB / 0.7604 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.4061, allocations: 0 / 0.7604 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.4065, allocations: 35.88 kB / 0.7605 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.4065, allocations: 8 kB / 0.7605 GB, free: 0.7656 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.0001762/0.4067, allocations: 112.9 kB / 0.7606 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.859e-05/0.4068, allocations: 7.906 kB / 0.7606 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005376/0.4073, allocations: 118.2 kB / 0.7607 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.614e-06/0.4074, allocations: 4 kB / 0.7607 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.4074, allocations: 3.953 kB / 0.7607 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.991e-06/0.4074, allocations: 0 / 0.7607 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.4085, allocations: 386.4 kB / 0.7611 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.093e-06/0.4085, allocations: 0 / 0.7611 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.4089, allocations: 23.97 kB / 0.7611 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/0.4089, allocations: 4 kB / 0.7611 GB, free: 48 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.4089, allocations: 11.95 kB / 0.7611 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.924e-06/0.409, allocations: 3.938 kB / 0.7611 GB, free: 32 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.409, allocations: 3.984 kB / 0.7611 GB, free: 28 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005791/0.4096, allocations: 199.4 kB / 0.7613 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.4097, allocations: 85.02 kB / 0.7614 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.303e-05/0.4098, allocations: 0 / 0.7614 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004224/0.4102, allocations: 31.92 kB / 0.7614 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.4104, allocations: 19.97 kB / 0.7614 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.4104, allocations: 7.984 kB / 0.7614 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001236/0.4106, allocations: 95.28 kB / 0.7615 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.312e-06/0.4106, allocations: 3.938 kB / 0.7615 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0007159/0.4113, allocations: 20 kB / 0.7616 GB, free: 15.54 MB / 0.6511 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.000257/0.4116, allocations: 113.8 kB / 0.7617 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004735/0.4121, allocations: 72.38 kB / 0.7617 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4122, allocations: 4 kB / 0.7617 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.4124, allocations: 40.34 kB / 0.7618 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.413, allocations: 20.2 kB / 0.7618 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006928/0.4137, allocations: 125.5 kB / 0.7619 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.4143, allocations: 0.6965 MB / 0.7626 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001462/0.4144, allocations: 16.55 kB / 0.7626 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.4146, allocations: 11.44 kB / 0.7626 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of SimCode: time 2.265e-06/0.4146, allocations: 0 / 0.7626 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of Templates: time 0.007689/0.4223, allocations: 1.101 MB / 0.7637 GB, free: 13.3 MB / 0.6511 GB