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.009341/0.009346, allocations: 110.4 kB / 15.06 MB, free: 5.562 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.001207/0.001207, allocations: 181.7 kB / 15.95 MB, free: 5.523 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 2.062/2.062, allocations: 194.6 MB / 211.3 MB, free: 11.08 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.291/2.291, allocations: 236.2 MB / 492.6 MB, free: 11.25 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004837/0.0004839, allocations: 19.98 kB / 0.587 GB, free: 2.125 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5497/0.5502, allocations: 98.7 MB / 0.6833 GB, free: 16.72 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001632/0.5519, allocations: 1.217 MB / 0.6845 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0005907/0.5525, allocations: 265.9 kB / 0.6848 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.453e-05/0.5526, allocations: 1.062 kB / 0.6848 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.033e-05/0.5526, allocations: 6.141 kB / 0.6848 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 9.037e-05/0.5527, allocations: 11.52 kB / 0.6848 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.5529, allocations: 37.97 kB / 0.6848 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 9.95e-05/0.5531, allocations: 54.34 kB / 0.6849 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.5532, allocations: 24.47 kB / 0.6849 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 7.748e-05/0.5533, allocations: 29.58 kB / 0.6849 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 7.536e-05/0.5534, allocations: 42.36 kB / 0.685 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.5534, allocations: 3.344 kB / 0.685 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.818e-05/0.5534, allocations: 3.438 kB / 0.685 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.513e-05/0.5535, allocations: 11.25 kB / 0.685 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 3.984e-05/0.5535, allocations: 38.98 kB / 0.685 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.5536, allocations: 61.34 kB / 0.6851 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.967e-06/0.5536, allocations: 4 kB / 0.6851 GB, free: 15.47 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.876e-06/0.5537, allocations: 0 / 0.6851 GB, free: 15.47 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.375e-06/0.5537, allocations: 0 / 0.6851 GB, free: 15.47 MB / 0.5261 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.0006338/0.5543, allocations: 411.2 kB / 0.6855 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.5544, allocations: 10.08 kB / 0.6855 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.579e-05/0.5544, allocations: 9.75 kB / 0.6855 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.5545, allocations: 181.5 kB / 0.6857 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.5546, allocations: 2.594 kB / 0.6857 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.5546, allocations: 10 kB / 0.6857 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003508/0.555, allocations: 104.9 kB / 0.6858 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.555, allocations: 0 / 0.6858 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.555, allocations: 5.703 kB / 0.6858 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.872e-06/0.555, allocations: 3.094 kB / 0.6858 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.5555, allocations: 112.5 kB / 0.6859 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006808/0.5562, allocations: 364.6 kB / 0.6863 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006128/0.5568, allocations: 162 kB / 0.6864 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.5569, allocations: 5.578 kB / 0.6864 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003822/0.5573, allocations: 124.7 kB / 0.6865 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=11): time 4.565e-06/0.5573, allocations: 3.984 kB / 0.6865 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11): time 0.000846/0.5581, allocations: 232.4 kB / 0.6868 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.177e-05/0.5582, allocations: 57.78 kB / 0.6868 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.5583, allocations: 126.9 kB / 0.6869 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.5583, allocations: 32.47 kB / 0.687 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.5584, allocations: 93.44 kB / 0.6871 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.5585, allocations: 30.95 kB / 0.6871 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.5585, allocations: 8 kB / 0.6871 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.828e-05/0.5585, allocations: 324.9 kB / 0.6874 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/0.5588, allocations: 62.25 kB / 0.6875 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.5591, allocations: 95.95 kB / 0.6876 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.5593, allocations: 63.53 kB / 0.6876 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.36e-06/0.5593, allocations: 0 / 0.6876 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006085/0.56, allocations: 191.8 kB / 0.6878 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.56, allocations: 9.969 kB / 0.6878 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.953e-06/0.56, allocations: 1.531 kB / 0.6878 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.56, allocations: 2.469 kB / 0.6878 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.5602, allocations: 37.83 kB / 0.6879 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.096e-06/0.5603, allocations: 0.9688 kB / 0.6879 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.5604, allocations: 33.55 kB / 0.6879 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.5605, allocations: 4.219 kB / 0.6879 GB, free: 13.45 MB / 0.5261 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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.0001135/0.5606, allocations: 128.4 kB / 0.688 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.074e-05/0.5606, allocations: 12.42 kB / 0.688 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000594/0.5612, allocations: 177.9 kB / 0.6882 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.385e-06/0.5613, allocations: 2.094 kB / 0.6882 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.983e-06/0.5613, allocations: 4.984 kB / 0.6882 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.651e-06/0.5613, allocations: 0.6094 kB / 0.6882 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008449/0.5622, allocations: 463.6 kB / 0.6886 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.474e-06/0.5622, allocations: 0 / 0.6886 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.5623, allocations: 30.88 kB / 0.6887 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.336e-06/0.5624, allocations: 0 / 0.6887 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.5624, allocations: 5.656 kB / 0.6887 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.5624, allocations: 5.594 kB / 0.6887 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.212e-06/0.5624, allocations: 0 / 0.6887 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005661/0.563, allocations: 267.4 kB / 0.6889 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.522e-05/0.563, allocations: 88.84 kB / 0.689 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.5631, allocations: 5.922 kB / 0.689 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.5633, allocations: 30.09 kB / 0.6891 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.5634, allocations: 21.7 kB / 0.6891 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.5634, allocations: 3.562 kB / 0.6891 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.129e-05/0.5635, allocations: 93.53 kB / 0.6892 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.42e-07/0.5635, allocations: 0 / 0.6892 GB, free: 12.51 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003612/0.5639, allocations: 20.94 kB / 0.6892 GB, free: 12.51 MB / 0.5261 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 (zeroCrossing.y,$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.0001343/0.564, allocations: 117.5 kB / 0.6893 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005713/0.5646, allocations: 148.7 kB / 0.6894 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.281e-06/0.5646, allocations: 0.9062 kB / 0.6894 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002761/0.5649, allocations: 75.19 kB / 0.6895 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.5652, allocations: 13.77 kB / 0.6895 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005867/0.5658, allocations: 242.2 kB / 0.6898 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.566, allocations: 0.6981 MB / 0.6904 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 8.843e-05/0.5661, allocations: 12.31 kB / 0.6905 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.78e-05/0.5662, allocations: 17.36 kB / 0.6905 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of SimCode: time 1.459e-06/0.5662, allocations: 0 / 0.6905 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of Templates: time 0.004647/0.5708, allocations: 1.118 MB / 0.6916 GB, free: 11.38 MB / 0.5261 GB