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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.904/3.904, allocations: 432.6 MB / 445.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.476e-05/3.493e-05, allocations: 6.094 kB / 0.5383 GB, free: 10.26 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2047, allocations: 98.74 MB / 0.6347 GB, free: 1.879 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.22/0.4247, allocations: 124.9 MB / 0.7567 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.4251, allocations: 71.95 kB / 0.7568 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005882/0.431, allocations: 1.356 MB / 0.7581 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.703e-06/0.431, allocations: 0 / 0.7581 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.287e-05/0.431, allocations: 4 kB / 0.7581 GB, free: 3.367 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.0007807/0.4318, allocations: 402.3 kB / 0.7585 GB, free: 2.93 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.4319, allocations: 8.031 kB / 0.7585 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.996e-05/0.432, allocations: 38.55 kB / 0.7585 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.057e-05/0.432, allocations: 7.906 kB / 0.7586 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.4322, allocations: 178.9 kB / 0.7587 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.4322, allocations: 4 kB / 0.7587 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.4323, allocations: 12 kB / 0.7587 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000208/0.4325, allocations: 77.67 kB / 0.7588 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.4325, allocations: 0 / 0.7588 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.4325, allocations: 7.984 kB / 0.7588 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.4326, allocations: 0 / 0.7588 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.4327, allocations: 44 kB / 0.7589 GB, free: 2.504 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007781/0.4335, allocations: 356.6 kB / 0.7592 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006302/0.4342, allocations: 130.6 kB / 0.7593 GB, free: 1.969 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.414e-05/0.4343, allocations: 32.86 kB / 0.7594 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.4343, allocations: 0 / 0.7594 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.4346, allocations: 93.27 kB / 0.7594 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 2.274e-06/0.4346, allocations: 4 kB / 0.7594 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003268/0.435, allocations: 97.73 kB / 0.7595 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.435, allocations: 55.34 kB / 0.7596 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.4351, allocations: 121.1 kB / 0.7597 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.4352, allocations: 29.7 kB / 0.7597 GB, free: 1.496 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.554e-05/0.4353, allocations: 96.12 kB / 0.7598 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.4353, allocations: 27.64 kB / 0.7599 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.299e-05/0.4354, allocations: 4 kB / 0.7599 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.4355, allocations: 318.8 kB / 0.7602 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.4356, allocations: 32 kB / 0.7602 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.4357, allocations: 55.42 kB / 0.7602 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.787e-05/0.4358, allocations: 35.97 kB / 0.7603 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4359, allocations: 0 / 0.7603 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003088/0.4362, allocations: 129.4 kB / 0.7604 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4362, allocations: 7.938 kB / 0.7604 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4362, allocations: 4 kB / 0.7604 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.4363, allocations: 3.953 kB / 0.7604 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.4365, allocations: 27.97 kB / 0.7604 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.4365, allocations: 0 / 0.7604 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.4368, allocations: 36.06 kB / 0.7605 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.4368, allocations: 4 kB / 0.7605 GB, free: 0.6992 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 () * 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 9.747e-05/0.4369, allocations: 116.9 kB / 0.7606 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.437, allocations: 11.89 kB / 0.7606 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000313/0.4373, allocations: 110.2 kB / 0.7607 GB, free: 460 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.4373, allocations: 4 kB / 0.7607 GB, free: 456 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.4373, allocations: 3.953 kB / 0.7607 GB, free: 452 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.4373, allocations: 7.984 kB / 0.7607 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005972/0.4379, allocations: 390.5 kB / 0.7611 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.438, allocations: 0 / 0.7611 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.4382, allocations: 23.92 kB / 0.7611 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.4382, allocations: 0 / 0.7611 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.4382, allocations: 11.89 kB / 0.7611 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.4382, allocations: 4 kB / 0.7611 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4382, allocations: 0 / 0.7611 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.4386, allocations: 191.4 kB / 0.7613 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.235e-05/0.4387, allocations: 89.02 kB / 0.7614 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.4387, allocations: 3.984 kB / 0.7614 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.439, allocations: 27.94 kB / 0.7614 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.4391, allocations: 27.89 kB / 0.7615 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.4391, allocations: 4 kB / 0.7615 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.828e-05/0.4392, allocations: 99.78 kB / 0.7616 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.21e-07/0.4392, allocations: 0 / 0.7616 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003129/0.4395, allocations: 20 kB / 0.7616 GB, free: 15.47 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.0006224/0.4402, allocations: 0.7382 MB / 0.7623 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002808/0.4405, allocations: 87.92 kB / 0.7624 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.4405, allocations: 0 / 0.7624 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001375/0.4406, allocations: 43.94 kB / 0.7624 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.4409, allocations: 19.94 kB / 0.7624 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006381/0.4416, allocations: 163.4 kB / 0.7626 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.4419, allocations: 0.7004 MB / 0.7633 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 9.116e-05/0.442, allocations: 16.48 kB / 0.7633 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.704e-05/0.4421, allocations: 19.44 kB / 0.7633 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of SimCode: time 8.92e-07/0.4421, allocations: 0 / 0.7633 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.4638, allocations: 2.154 MB / 0.7654 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003132/0.4642, allocations: 163 kB / 0.7656 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.22/2.684, allocations: 3.938 kB / 0.7656 GB, free: 11.3 MB / 0.6511 GB