Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01028/0.01028, allocations: 90.97 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001199/0.001199, allocations: 173.7 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.013/2.013, allocations: 205.5 MB / 222.2 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.369/2.369, allocations: 252.8 MB / 0.511 GB, free: 8.336 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006274/0.0006275, allocations: 20.88 kB / 0.6243 GB, free: 28.23 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2301, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002214/0.2324, allocations: 1.233 MB / 0.7293 GB, free: 8.914 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0007225/0.2332, allocations: 272.8 kB / 0.7295 GB, free: 8.645 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.182e-05/0.2333, allocations: 4 kB / 0.7295 GB, free: 8.641 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 2.1e-05/0.2333, allocations: 3.938 kB / 0.7295 GB, free: 8.637 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 9.043e-05/0.2334, allocations: 15.97 kB / 0.7296 GB, free: 8.621 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001878/0.2336, allocations: 31.84 kB / 0.7296 GB, free: 8.59 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.2337, allocations: 55.92 kB / 0.7296 GB, free: 8.535 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 9.884e-05/0.2338, allocations: 24.2 kB / 0.7297 GB, free: 8.512 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 7.674e-05/0.2339, allocations: 31.84 kB / 0.7297 GB, free: 8.48 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 7.721e-05/0.234, allocations: 35.83 kB / 0.7297 GB, free: 8.445 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.234, allocations: 4 kB / 0.7297 GB, free: 8.441 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 2.053e-05/0.2341, allocations: 4 kB / 0.7297 GB, free: 8.438 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.08e-05/0.2341, allocations: 15.98 kB / 0.7298 GB, free: 8.422 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.362e-05/0.2342, allocations: 37.64 kB / 0.7298 GB, free: 8.379 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.2343, allocations: 67.84 kB / 0.7299 GB, free: 8.312 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2343, allocations: 0 / 0.7299 GB, free: 8.312 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2343, allocations: 0 / 0.7299 GB, free: 8.312 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.2343, allocations: 0 / 0.7299 GB, free: 8.312 MB / 0.5573 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.0008535/0.2352, allocations: 411.3 kB / 0.7303 GB, free: 7.863 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.2353, allocations: 12.03 kB / 0.7303 GB, free: 7.852 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.839e-05/0.2353, allocations: 34.56 kB / 0.7303 GB, free: 7.809 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.2354, allocations: 7.906 kB / 0.7303 GB, free: 7.801 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.2355, allocations: 182.9 kB / 0.7305 GB, free: 7.582 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.2356, allocations: 7.984 kB / 0.7305 GB, free: 7.574 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.2356, allocations: 8 kB / 0.7305 GB, free: 7.566 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000493/0.2361, allocations: 105.6 kB / 0.7306 GB, free: 7.457 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2361, allocations: 7.938 kB / 0.7306 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.2362, allocations: 4 kB / 0.7306 GB, free: 7.445 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.2362, allocations: 0 / 0.7306 GB, free: 7.445 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006352/0.2368, allocations: 119.8 kB / 0.7307 GB, free: 7.328 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008713/0.2377, allocations: 368.6 kB / 0.7311 GB, free: 6.918 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008926/0.2386, allocations: 162.5 kB / 0.7312 GB, free: 6.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.2387, allocations: 3.984 kB / 0.7312 GB, free: 6.746 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005008/0.2392, allocations: 115.3 kB / 0.7313 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=11): time 2.755e-06/0.2392, allocations: 0 / 0.7313 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of matching and sorting (n=11): time 0.001251/0.2405, allocations: 237.5 kB / 0.7316 GB, free: 6.383 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.2406, allocations: 55.41 kB / 0.7316 GB, free: 6.316 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.2408, allocations: 130 kB / 0.7317 GB, free: 6.18 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.2408, allocations: 29.7 kB / 0.7318 GB, free: 6.145 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 7.279e-05/0.2409, allocations: 96.12 kB / 0.7319 GB, free: 6.047 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 5.069e-05/0.241, allocations: 27.56 kB / 0.7319 GB, free: 6.02 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/0.241, allocations: 4 kB / 0.7319 GB, free: 6.016 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.2411, allocations: 322.8 kB / 0.7322 GB, free: 5.691 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.2416, allocations: 63.95 kB / 0.7323 GB, free: 5.629 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003726/0.242, allocations: 91.38 kB / 0.7323 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.2423, allocations: 68.34 kB / 0.7324 GB, free: 5.461 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.2423, allocations: 0 / 0.7324 GB, free: 5.461 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00082/0.2432, allocations: 197.4 kB / 0.7326 GB, free: 5.262 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.2432, allocations: 4 kB / 0.7326 GB, free: 5.258 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.2432, allocations: 7.984 kB / 0.7326 GB, free: 5.25 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.2433, allocations: 3.953 kB / 0.7326 GB, free: 5.246 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.2435, allocations: 27.98 kB / 0.7326 GB, free: 5.219 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2435, allocations: 0 / 0.7326 GB, free: 5.219 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.2438, allocations: 36 kB / 0.7327 GB, free: 5.184 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.2439, allocations: 4 kB / 0.7327 GB, free: 5.18 MB / 0.5573 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.0001464/0.244, allocations: 125.8 kB / 0.7328 GB, free: 5.047 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.2441, allocations: 7.906 kB / 0.7328 GB, free: 5.039 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008064/0.2449, allocations: 178 kB / 0.733 GB, free: 4.859 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2449, allocations: 3.938 kB / 0.733 GB, free: 4.855 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/0.2449, allocations: 3.953 kB / 0.733 GB, free: 4.852 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.2449, allocations: 3.938 kB / 0.733 GB, free: 4.848 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.2461, allocations: 466.3 kB / 0.7334 GB, free: 4.336 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2461, allocations: 0 / 0.7334 GB, free: 4.336 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.2463, allocations: 23.92 kB / 0.7335 GB, free: 4.312 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.197e-06/0.2463, allocations: 4 kB / 0.7335 GB, free: 4.309 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.2464, allocations: 7.953 kB / 0.7335 GB, free: 4.301 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.058e-05/0.2464, allocations: 3.984 kB / 0.7335 GB, free: 4.297 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2464, allocations: 0 / 0.7335 GB, free: 4.297 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007858/0.2472, allocations: 267.3 kB / 0.7337 GB, free: 4.02 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-05/0.2473, allocations: 85.02 kB / 0.7338 GB, free: 3.918 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.2473, allocations: 7.922 kB / 0.7338 GB, free: 3.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.2476, allocations: 27.94 kB / 0.7338 GB, free: 3.883 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.2477, allocations: 23.95 kB / 0.7339 GB, free: 3.859 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.2477, allocations: 8 kB / 0.7339 GB, free: 3.852 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001199/0.2479, allocations: 95.77 kB / 0.734 GB, free: 3.758 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2479, allocations: 4 kB / 0.734 GB, free: 3.754 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003543/0.2483, allocations: 20 kB / 0.734 GB, free: 3.734 MB / 0.5573 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.001252/0.2495, allocations: 0.806 MB / 0.7348 GB, free: 2.902 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0007798/0.2503, allocations: 152.5 kB / 0.7349 GB, free: 2.754 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.2504, allocations: 0 / 0.7349 GB, free: 2.754 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000379/0.2507, allocations: 80.05 kB / 0.735 GB, free: 2.676 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.2511, allocations: 24.06 kB / 0.735 GB, free: 2.652 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.2537, allocations: 1.213 MB / 0.7362 GB, free: 1.367 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.2541, allocations: 0.7004 MB / 0.7369 GB, free: 0.6406 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001038/0.2542, allocations: 4.562 kB / 0.7369 GB, free: 0.6367 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.2543, allocations: 27.42 kB / 0.7369 GB, free: 0.6094 MB / 0.5573 GB Notification: Performance of SimCode: time 1.222e-06/0.2544, allocations: 4 kB / 0.7369 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.2761, allocations: 2.16 MB / 0.739 GB, free: 14.56 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003458/0.2765, allocations: 202.2 kB / 0.7392 GB, free: 14.32 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.276/2.553, allocations: 4.062 kB / 0.7392 GB, free: 14.31 MB / 0.573 GB