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.009021/0.009021, allocations: 110.2 kB / 15.05 MB, free: 5.965 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.001109/0.001109, allocations: 179.3 kB / 15.94 MB, free: 5.93 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 1.986/1.986, allocations: 194.6 MB / 211.3 MB, free: 11.27 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.258/2.258, allocations: 236.2 MB / 492.6 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000468/0.0004681, allocations: 12 kB / 0.587 GB, free: 2.164 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5846/0.5851, allocations: 98.71 MB / 0.6834 GB, free: 16.84 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.7919, allocations: 125 MB / 0.8054 GB, free: 1.324 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.7922, allocations: 71.95 kB / 0.8055 GB, free: 1.254 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.005118/0.7973, allocations: 1.361 MB / 0.8068 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.365e-06/0.7974, allocations: 4 kB / 0.8068 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.148e-05/0.7974, allocations: 4 kB / 0.8068 GB, free: 15.88 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.0006873/0.7981, allocations: 411 kB / 0.8072 GB, free: 15.43 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.7981, allocations: 8.031 kB / 0.8072 GB, free: 15.42 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.996e-05/0.7982, allocations: 11.91 kB / 0.8072 GB, free: 15.41 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.7984, allocations: 178.9 kB / 0.8074 GB, free: 15.2 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.7984, allocations: 4 kB / 0.8074 GB, free: 15.19 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.7984, allocations: 12 kB / 0.8074 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.7988, allocations: 101.6 kB / 0.8075 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.352e-06/0.7988, allocations: 4 kB / 0.8075 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.7989, allocations: 4 kB / 0.8075 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.406e-06/0.7989, allocations: 0 / 0.8075 GB, free: 15.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005039/0.7994, allocations: 111.9 kB / 0.8076 GB, free: 14.96 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007536/0.8002, allocations: 364.6 kB / 0.808 GB, free: 14.55 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006177/0.8008, allocations: 162.6 kB / 0.8081 GB, free: 14.38 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.8008, allocations: 4.125 kB / 0.8081 GB, free: 14.38 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000384/0.8012, allocations: 123.3 kB / 0.8083 GB, free: 14.25 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 3.548e-06/0.8013, allocations: 0 / 0.8083 GB, free: 14.25 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0008517/0.8021, allocations: 229.4 kB / 0.8085 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.8022, allocations: 55.39 kB / 0.8085 GB, free: 13.95 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.8023, allocations: 121.4 kB / 0.8086 GB, free: 13.82 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.8024, allocations: 29.7 kB / 0.8087 GB, free: 13.79 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.8025, allocations: 100.1 kB / 0.8088 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.333e-05/0.8025, allocations: 27.64 kB / 0.8088 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.8026, allocations: 4 kB / 0.8088 GB, free: 13.65 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.8027, allocations: 322.8 kB / 0.8091 GB, free: 13.33 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.803, allocations: 63.95 kB / 0.8092 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.8033, allocations: 97.62 kB / 0.8093 GB, free: 13.16 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.8035, allocations: 63.97 kB / 0.8093 GB, free: 13.1 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.8035, allocations: 0 / 0.8093 GB, free: 13.1 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006048/0.8041, allocations: 189.8 kB / 0.8095 GB, free: 12.91 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.8042, allocations: 4 kB / 0.8095 GB, free: 12.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.604e-06/0.8042, allocations: 7.938 kB / 0.8095 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.8042, allocations: 0 / 0.8095 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.8044, allocations: 35.94 kB / 0.8096 GB, free: 12.86 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.8044, allocations: 7.953 kB / 0.8096 GB, free: 12.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.8046, allocations: 31.91 kB / 0.8096 GB, free: 12.82 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.853e-05/0.8047, allocations: 11.94 kB / 0.8096 GB, free: 12.81 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.0001426/0.8048, allocations: 125.8 kB / 0.8097 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.446e-05/0.8048, allocations: 3.906 kB / 0.8097 GB, free: 12.67 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000597/0.8055, allocations: 190 kB / 0.8099 GB, free: 12.48 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.467e-06/0.8055, allocations: 0 / 0.8099 GB, free: 12.48 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.561e-06/0.8055, allocations: 0 / 0.8099 GB, free: 12.48 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.511e-06/0.8055, allocations: 7.953 kB / 0.8099 GB, free: 12.47 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008933/0.8064, allocations: 454.3 kB / 0.8103 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.213e-06/0.8064, allocations: 0 / 0.8103 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.8066, allocations: 19.98 kB / 0.8104 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.225e-06/0.8066, allocations: 4 kB / 0.8104 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.8066, allocations: 8 kB / 0.8104 GB, free: 11.94 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.267e-06/0.8066, allocations: 3.953 kB / 0.8104 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.766e-06/0.8067, allocations: 0 / 0.8104 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005873/0.8073, allocations: 271.2 kB / 0.8106 GB, free: 11.65 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.8073, allocations: 85.02 kB / 0.8107 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.8074, allocations: 0 / 0.8107 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.8076, allocations: 27.97 kB / 0.8107 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.193e-05/0.8077, allocations: 27.91 kB / 0.8108 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.8077, allocations: 4 kB / 0.8108 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.469e-05/0.8078, allocations: 99.39 kB / 0.8109 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.51e-07/0.8078, allocations: 0 / 0.8109 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003553/0.8082, allocations: 20 kB / 0.8109 GB, free: 11.38 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.0001604/0.8084, allocations: 103.9 kB / 0.811 GB, free: 11.26 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0005589/0.8089, allocations: 151.9 kB / 0.8111 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.8089, allocations: 0 / 0.8111 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.8092, allocations: 79.83 kB / 0.8112 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.8095, allocations: 20.11 kB / 0.8112 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000565/0.8101, allocations: 222.6 kB / 0.8114 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.8105, allocations: 0.6965 MB / 0.8121 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 7.325e-05/0.8106, allocations: 8.547 kB / 0.8121 GB, free: 10.04 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/0.8106, allocations: 15.44 kB / 0.8121 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of SimCode: time 3.615e-06/0.8106, allocations: 0 / 0.8121 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of Templates: time 0.004522/0.8152, allocations: 1.101 MB / 0.8132 GB, free: 8.945 MB / 0.6355 GB