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: 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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.004143/0.004148, allocations: 228.6 kB / 15.82 MB, free: 6.293 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.00115/0.00115, allocations: 173.7 kB / 16.7 MB, free: 5.449 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 3.931/3.931, allocations: 389.1 MB / 406.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.082/4.082, allocations: 472.3 MB / 0.9024 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0007736/0.0007743, allocations: 19.38 kB / 1.008 GB, free: 138.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1788, allocations: 98.71 MB / 1.105 GB, free: 42.21 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7769/0.9558, allocations: 125 MB / 1.227 GB, free: 28.45 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.9562, allocations: 78.61 kB / 1.227 GB, free: 28.41 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.00606/0.9622, allocations: 1.346 MB / 1.228 GB, free: 27.56 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.265e-06/0.9623, allocations: 0 / 1.228 GB, free: 27.56 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.218e-06/0.9623, allocations: 0 / 1.228 GB, free: 27.56 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.0008197/0.9631, allocations: 417.6 kB / 1.229 GB, free: 27.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.9632, allocations: 8.031 kB / 1.229 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.606e-05/0.9633, allocations: 9.625 kB / 1.229 GB, free: 27.12 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.9634, allocations: 179.6 kB / 1.229 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.9635, allocations: 7.562 kB / 1.229 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.059e-05/0.9635, allocations: 15.17 kB / 1.229 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004472/0.964, allocations: 102.5 kB / 1.229 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.964, allocations: 4 kB / 1.229 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.964, allocations: 0.75 kB / 1.229 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.964, allocations: 0 / 1.229 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006214/0.9647, allocations: 115.4 kB / 1.229 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00086/0.9655, allocations: 362.8 kB / 1.229 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008366/0.9664, allocations: 162 kB / 1.229 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003141/0.9668, allocations: 64.83 kB / 1.23 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.9668, allocations: 0 / 1.23 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004807/0.9673, allocations: 123.3 kB / 1.23 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.655e-06/0.9673, allocations: 0 / 1.23 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.001099/0.9684, allocations: 234.3 kB / 1.23 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.9685, allocations: 56.59 kB / 1.23 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.9687, allocations: 131.8 kB / 1.23 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.9688, allocations: 29.94 kB / 1.23 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.945e-05/0.9688, allocations: 101.6 kB / 1.23 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.167e-05/0.9689, allocations: 20.86 kB / 1.23 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/0.9689, allocations: 3.5 kB / 1.23 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.9691, allocations: 323.9 kB / 1.23 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003217/0.9694, allocations: 65.88 kB / 1.231 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003413/0.9698, allocations: 93.92 kB / 1.231 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003162/0.9701, allocations: 67.38 kB / 1.231 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.9701, allocations: 0 / 1.231 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007608/0.9709, allocations: 199.8 kB / 1.231 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.9709, allocations: 5.406 kB / 1.231 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.9709, allocations: 4 kB / 1.231 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.971, allocations: 6.719 kB / 1.231 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.9712, allocations: 31.03 kB / 1.231 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.9712, allocations: 0 / 1.231 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.9715, allocations: 32.72 kB / 1.231 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.9715, allocations: 7.062 kB / 1.231 GB, free: 25.04 MB / 0.6198 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.0001627/0.9717, allocations: 125.7 kB / 1.231 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.9718, allocations: 3.906 kB / 1.231 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007735/0.9725, allocations: 184.1 kB / 1.231 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.9726, allocations: 0 / 1.231 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.9726, allocations: 4.609 kB / 1.231 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.9726, allocations: 0.6094 kB / 1.231 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.9737, allocations: 464.1 kB / 1.232 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.9738, allocations: 1.125 kB / 1.232 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002043/0.974, allocations: 27.38 kB / 1.232 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-06/0.974, allocations: 1.828 kB / 1.232 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.974, allocations: 8.562 kB / 1.232 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.974, allocations: 2.031 kB / 1.232 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.974, allocations: 0 / 1.232 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.9754, allocations: 270.1 kB / 1.232 GB, free: 40.13 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.515e-05/0.9755, allocations: 85.02 kB / 1.232 GB, free: 40.03 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.9755, allocations: 0 / 1.232 GB, free: 40.03 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.9758, allocations: 32.34 kB / 1.232 GB, free: 40.01 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.9759, allocations: 21.06 kB / 1.232 GB, free: 40 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.9759, allocations: 4.844 kB / 1.232 GB, free: 40 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.986e-05/0.9761, allocations: 100.5 kB / 1.232 GB, free: 39.91 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.41e-07/0.9761, allocations: 0 / 1.232 GB, free: 39.91 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003724/0.9764, allocations: 19.62 kB / 1.232 GB, free: 39.9 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.0001855/0.9767, allocations: 117.5 kB / 1.232 GB, free: 39.79 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0007687/0.9774, allocations: 151.7 kB / 1.233 GB, free: 39.69 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.9775, allocations: 3.25 kB / 1.233 GB, free: 39.69 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.9778, allocations: 75.22 kB / 1.233 GB, free: 39.64 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.9783, allocations: 17.72 kB / 1.233 GB, free: 39.63 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006067/0.9789, allocations: 219.8 kB / 1.233 GB, free: 39.43 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.9792, allocations: 0.6953 MB / 1.234 GB, free: 38.71 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.000107/0.9794, allocations: 15.92 kB / 1.234 GB, free: 38.71 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.485e-05/0.9794, allocations: 12.89 kB / 1.234 GB, free: 38.7 MB / 0.6355 GB Notification: Performance of SimCode: time 1.453e-06/0.9795, allocations: 0 / 1.234 GB, free: 38.7 MB / 0.6355 GB Notification: Performance of Templates: time 0.005461/0.9849, allocations: 1.105 MB / 1.235 GB, free: 38.14 MB / 0.6355 GB