Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.33/2.33, allocations: 251.1 MB / 266.1 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001497/0.001497, allocations: 171.2 kB / 325.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.509/2.509, allocations: 205.4 MB / 0.5766 GB, free: 20.76 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001514/0.001514, allocations: 103.9 kB / 0.6811 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006855/0.0006854, allocations: 13.34 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2116, allocations: 106.3 MB / 0.8989 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2655/0.4772, allocations: 131.9 MB / 1.028 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.4776, allocations: 75.95 kB / 1.028 GB, free: 13.29 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006186/0.4838, allocations: 1.353 MB / 1.029 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.134e-06/0.4839, allocations: 4 kB / 1.029 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.267e-06/0.4839, allocations: 0 / 1.029 GB, free: 11.93 MB / 0.6823 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.0009057/0.4848, allocations: 414.9 kB / 1.03 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.4849, allocations: 8.031 kB / 1.03 GB, free: 11.47 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.801e-05/0.4849, allocations: 7.906 kB / 1.03 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.4851, allocations: 182.8 kB / 1.03 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.4852, allocations: 11.98 kB / 1.03 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/0.4852, allocations: 15.94 kB / 1.03 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004689/0.4857, allocations: 101.6 kB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.4857, allocations: 3.984 kB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.4857, allocations: 8 kB / 1.03 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.4858, allocations: 4 kB / 1.03 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000641/0.4864, allocations: 111.9 kB / 1.03 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008788/0.4873, allocations: 360.6 kB / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009441/0.4883, allocations: 166.5 kB / 1.03 GB, free: 10.41 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.4883, allocations: 0 / 1.03 GB, free: 10.41 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005074/0.4888, allocations: 119.3 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 2.364e-06/0.4889, allocations: 0 / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.001185/0.4901, allocations: 241.4 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.279e-05/0.4901, allocations: 55.41 kB / 1.031 GB, free: 9.977 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.4903, allocations: 115.3 kB / 1.031 GB, free: 9.855 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.4904, allocations: 37.69 kB / 1.031 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.4904, allocations: 91.98 kB / 1.031 GB, free: 9.719 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.309e-05/0.4905, allocations: 31.69 kB / 1.031 GB, free: 9.688 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.4905, allocations: 4 kB / 1.031 GB, free: 9.684 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.4907, allocations: 318.8 kB / 1.031 GB, free: 9.363 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003435/0.4911, allocations: 67.95 kB / 1.032 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003737/0.4914, allocations: 91.39 kB / 1.032 GB, free: 9.195 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003462/0.4918, allocations: 59.95 kB / 1.032 GB, free: 9.137 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4918, allocations: 4 kB / 1.032 GB, free: 9.133 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008494/0.4927, allocations: 193.4 kB / 1.032 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.4927, allocations: 4 kB / 1.032 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4927, allocations: 4 kB / 1.032 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.4928, allocations: 0 / 1.032 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.493, allocations: 27.97 kB / 1.032 GB, free: 8.902 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.4931, allocations: 7.953 kB / 1.032 GB, free: 8.895 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.4933, allocations: 35.86 kB / 1.032 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.4934, allocations: 4 kB / 1.032 GB, free: 8.855 MB / 0.6823 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.0001675/0.4935, allocations: 133.6 kB / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.4936, allocations: 7.906 kB / 1.032 GB, free: 8.707 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008262/0.4944, allocations: 177.9 kB / 1.032 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4944, allocations: 3.984 kB / 1.032 GB, free: 8.527 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.4945, allocations: 7.938 kB / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.4945, allocations: 3.953 kB / 1.032 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.4956, allocations: 450.5 kB / 1.033 GB, free: 8.02 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4956, allocations: 0 / 1.033 GB, free: 8.02 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.4959, allocations: 27.91 kB / 1.033 GB, free: 7.992 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.4959, allocations: 3.984 kB / 1.033 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.4959, allocations: 11.94 kB / 1.033 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.4959, allocations: 11.94 kB / 1.033 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4959, allocations: 0 / 1.033 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008563/0.4968, allocations: 268.9 kB / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.558e-05/0.4969, allocations: 85.02 kB / 1.033 GB, free: 7.586 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.4969, allocations: 4 kB / 1.033 GB, free: 7.582 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.4972, allocations: 27.97 kB / 1.033 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.4974, allocations: 23.92 kB / 1.033 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.4974, allocations: 4 kB / 1.033 GB, free: 7.527 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001009/0.4975, allocations: 91.27 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.6e-07/0.4975, allocations: 0 / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003372/0.4979, allocations: 20 kB / 1.033 GB, free: 7.418 MB / 0.6823 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.0001832/0.498, allocations: 111.2 kB / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0007904/0.4988, allocations: 151.9 kB / 1.033 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4989, allocations: 4.188 kB / 1.033 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003756/0.4993, allocations: 76.11 kB / 1.034 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.4996, allocations: 11.98 kB / 1.034 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006773/0.5003, allocations: 223.4 kB / 1.034 GB, free: 6.805 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.5006, allocations: 0.6965 MB / 1.034 GB, free: 6.082 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001031/0.5008, allocations: 16.55 kB / 1.034 GB, free: 6.066 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.39e-05/0.5008, allocations: 11.44 kB / 1.034 GB, free: 6.055 MB / 0.6823 GB Notification: Performance of SimCode: time 1.412e-06/0.5009, allocations: 0 / 1.034 GB, free: 6.055 MB / 0.6823 GB Notification: Performance of Templates: time 0.005217/0.5061, allocations: 1.086 MB / 1.036 GB, free: 4.98 MB / 0.6823 GB