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.43/2.43, allocations: 252.6 MB / 265.2 MB, free: 5.754 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001521/0.001521, allocations: 179.9 kB / 324.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.4 MB / 0.5753 GB, free: 10.46 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.001112/0.001112, allocations: 82.7 kB / 0.6797 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.829e-05/4.846e-05, allocations: 8 kB / 0.7911 GB, free: 96.59 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1983, allocations: 106.2 MB / 0.8949 GB, free: 6.246 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8292/1.028, allocations: 131.9 MB / 1.024 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/1.028, allocations: 71.83 kB / 1.024 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005935/1.034, allocations: 1.355 MB / 1.025 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.723e-06/1.034, allocations: 4 kB / 1.025 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.017e-05/1.034, allocations: 4 kB / 1.025 GB, free: 1.391 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.000767/1.035, allocations: 404.2 kB / 1.025 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/1.035, allocations: 15.97 kB / 1.025 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.355e-05/1.035, allocations: 7.906 kB / 1.025 GB, free: 0.9375 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/1.035, allocations: 182.9 kB / 1.026 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/1.035, allocations: 4 kB / 1.026 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.824e-05/1.035, allocations: 7.938 kB / 1.026 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/1.035, allocations: 76.67 kB / 1.026 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/1.035, allocations: 0 / 1.026 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/1.035, allocations: 7.609 kB / 1.026 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/1.035, allocations: 0 / 1.026 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/1.036, allocations: 45.38 kB / 1.026 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008295/1.036, allocations: 359.7 kB / 1.026 GB, free: 248 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006404/1.037, allocations: 130.6 kB / 1.026 GB, free: 128 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/1.037, allocations: 33.23 kB / 1.026 GB, free: 100 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/1.037, allocations: 2.516 kB / 1.026 GB, free: 100 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/1.037, allocations: 85.81 kB / 1.026 GB, free: 16 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.835e-06/1.038, allocations: 0 / 1.026 GB, free: 16 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003582/1.038, allocations: 106.8 kB / 1.026 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/1.038, allocations: 59.39 kB / 1.027 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/1.038, allocations: 117.2 kB / 1.027 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/1.038, allocations: 29.58 kB / 1.027 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.76e-05/1.038, allocations: 102.7 kB / 1.027 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.547e-05/1.038, allocations: 27.14 kB / 1.027 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/1.038, allocations: 3.312 kB / 1.027 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001202/1.038, allocations: 318.7 kB / 1.027 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/1.039, allocations: 25.56 kB / 1.027 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/1.039, allocations: 62.86 kB / 1.027 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/1.039, allocations: 30.86 kB / 1.027 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/1.039, allocations: 0 / 1.027 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003103/1.039, allocations: 124.7 kB / 1.027 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/1.039, allocations: 8 kB / 1.027 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/1.039, allocations: 0 / 1.027 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/1.039, allocations: 0 / 1.027 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000273/1.039, allocations: 36.02 kB / 1.027 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/1.04, allocations: 7.938 kB / 1.027 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/1.04, allocations: 31.38 kB / 1.027 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/1.04, allocations: 4 kB / 1.027 GB, free: 14.99 MB / 0.6511 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.000117/1.04, allocations: 112.2 kB / 1.028 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/1.04, allocations: 7.906 kB / 1.028 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/1.04, allocations: 123 kB / 1.028 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/1.04, allocations: 0 / 1.028 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/1.04, allocations: 7.891 kB / 1.028 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/1.04, allocations: 3.984 kB / 1.028 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005922/1.041, allocations: 378 kB / 1.028 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/1.041, allocations: 0 / 1.028 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/1.041, allocations: 31.91 kB / 1.028 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/1.041, allocations: 4 kB / 1.028 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/1.041, allocations: 6.891 kB / 1.028 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/1.041, allocations: 0 / 1.028 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/1.041, allocations: 0 / 1.028 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/1.042, allocations: 199.1 kB / 1.028 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/1.042, allocations: 84.95 kB / 1.028 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/1.042, allocations: 14.55 kB / 1.028 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/1.042, allocations: 23.94 kB / 1.028 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/1.042, allocations: 18.89 kB / 1.028 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/1.042, allocations: 8.312 kB / 1.028 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.387e-05/1.042, allocations: 90.34 kB / 1.028 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.71e-07/1.042, allocations: 3.938 kB / 1.028 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003263/1.043, allocations: 23.38 kB / 1.029 GB, free: 13.87 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.0001748/1.043, allocations: 114 kB / 1.029 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002936/1.043, allocations: 83.19 kB / 1.029 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.043, allocations: 0 / 1.029 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/1.043, allocations: 40.12 kB / 1.029 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/1.044, allocations: 12.17 kB / 1.029 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004935/1.044, allocations: 124.7 kB / 1.029 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/1.044, allocations: 0.7004 MB / 1.03 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 9.363e-05/1.045, allocations: 8.547 kB / 1.03 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.522e-05/1.045, allocations: 11.44 kB / 1.03 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of SimCode: time 1.513e-06/1.045, allocations: 4 kB / 1.03 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of Templates: time 0.005079/1.05, allocations: 1.106 MB / 1.031 GB, free: 11.69 MB / 0.6511 GB