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.Latch.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.Latch,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",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.01006/0.01007, allocations: 88.36 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.001382/0.001382, allocations: 173.8 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.058/2.058, allocations: 205.5 MB / 222.2 MB, free: 13.75 MB / 186.8 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.356/2.356, allocations: 252.8 MB / 0.511 GB, free: 8.371 MB / 426.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004861/0.0004862, allocations: 16.67 kB / 0.6243 GB, free: 28.33 MB / 0.4949 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2252, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5574 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002105/0.2274, allocations: 1.193 MB / 0.7292 GB, free: 8.953 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.0009625/0.2284, allocations: 352.7 kB / 0.7296 GB, free: 8.605 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.38e-05/0.2285, allocations: 4 kB / 0.7296 GB, free: 8.602 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 2.975e-05/0.2285, allocations: 7.922 kB / 0.7296 GB, free: 8.594 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.2286, allocations: 11.98 kB / 0.7296 GB, free: 8.582 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.229, allocations: 91.8 kB / 0.7297 GB, free: 8.492 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.0002263/0.2292, allocations: 131.8 kB / 0.7298 GB, free: 8.363 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.2294, allocations: 37.27 kB / 0.7299 GB, free: 8.32 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.2296, allocations: 95.78 kB / 0.7299 GB, free: 8.227 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.2298, allocations: 87.69 kB / 0.73 GB, free: 8.141 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 5.272e-05/0.2298, allocations: 15.94 kB / 0.73 GB, free: 8.125 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 5.236e-05/0.2299, allocations: 12 kB / 0.7301 GB, free: 8.113 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.23, allocations: 55.84 kB / 0.7301 GB, free: 8.059 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 7.668e-05/0.2301, allocations: 49.64 kB / 0.7302 GB, free: 8.004 MB / 0.5574 GB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.2304, allocations: 167.6 kB / 0.7303 GB, free: 7.84 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.2304, allocations: 0 / 0.7303 GB, free: 7.84 MB / 0.5574 GB Notification: Performance of FrontEnd: time 2.184e-06/0.2304, allocations: 0 / 0.7303 GB, free: 7.84 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.2304, allocations: 0 / 0.7303 GB, free: 7.84 MB / 0.5574 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0009872/0.2314, allocations: 455.1 kB / 0.7307 GB, free: 7.348 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.2315, allocations: 8.031 kB / 0.7308 GB, free: 7.34 MB / 0.5574 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.559e-05/0.2316, allocations: 46.55 kB / 0.7308 GB, free: 7.285 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.157e-05/0.2317, allocations: 27.75 kB / 0.7308 GB, free: 7.258 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.2322, allocations: 253.9 kB / 0.7311 GB, free: 6.973 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.2323, allocations: 19.98 kB / 0.7311 GB, free: 6.953 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.967e-05/0.2324, allocations: 24 kB / 0.7311 GB, free: 6.93 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005634/0.2329, allocations: 205.5 kB / 0.7313 GB, free: 6.723 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.233, allocations: 0 / 0.7313 GB, free: 6.723 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.299e-05/0.233, allocations: 15.97 kB / 0.7313 GB, free: 6.707 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.233, allocations: 3.938 kB / 0.7313 GB, free: 6.703 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000345/0.2334, allocations: 103.9 kB / 0.7314 GB, free: 6.602 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.2347, allocations: 0.5275 MB / 0.7319 GB, free: 6.023 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.2359, allocations: 302.4 kB / 0.7322 GB, free: 5.719 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.236, allocations: 3.984 kB / 0.7322 GB, free: 5.715 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001163/0.2372, allocations: 482.3 kB / 0.7327 GB, free: 5.23 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=42): time 3.426e-06/0.2372, allocations: 0 / 0.7327 GB, free: 5.23 MB / 0.5574 GB Notification: Performance of matching and sorting (n=42): time 0.001747/0.2389, allocations: 0.52 MB / 0.7332 GB, free: 4.703 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.239, allocations: 55.41 kB / 0.7333 GB, free: 4.637 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.2392, allocations: 161.4 kB / 0.7334 GB, free: 4.469 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 9.429e-05/0.2393, allocations: 53.69 kB / 0.7335 GB, free: 4.41 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 9.957e-05/0.2395, allocations: 116.9 kB / 0.7336 GB, free: 4.293 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.2396, allocations: 94.94 kB / 0.7337 GB, free: 4.199 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.403e-05/0.2396, allocations: 12 kB / 0.7337 GB, free: 4.188 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.2398, allocations: 338.8 kB / 0.734 GB, free: 3.848 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003854/0.2402, allocations: 133 kB / 0.7341 GB, free: 3.719 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/0.2407, allocations: 215.6 kB / 0.7343 GB, free: 3.477 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.241, allocations: 98.12 kB / 0.7344 GB, free: 3.387 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.241, allocations: 0 / 0.7344 GB, free: 3.387 MB / 0.5574 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00101/0.242, allocations: 398.4 kB / 0.7348 GB, free: 2.988 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.2421, allocations: 11.12 kB / 0.7348 GB, free: 2.98 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.2421, allocations: 4 kB / 0.7348 GB, free: 2.977 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.2421, allocations: 4 kB / 0.7348 GB, free: 2.973 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.2423, allocations: 23.92 kB / 0.7348 GB, free: 2.949 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.2423, allocations: 11.94 kB / 0.7349 GB, free: 2.938 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/0.2426, allocations: 44.08 kB / 0.7349 GB, free: 2.895 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.107e-05/0.2427, allocations: 20 kB / 0.7349 GB, free: 2.875 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,tru.y,fal.y,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,falCle.y,$PRE.truCle.u,truCle.u,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.pulseStart,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.falCle.clr,falCle.clr,$PRE.truCle.clr,truCle.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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.0002789/0.243, allocations: 163 kB / 0.7351 GB, free: 2.707 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.677e-05/0.2431, allocations: 31.67 kB / 0.7351 GB, free: 2.676 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.2432, allocations: 46.3 kB / 0.7351 GB, free: 2.629 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.2432, allocations: 4 kB / 0.7351 GB, free: 2.625 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.2432, allocations: 0 / 0.7351 GB, free: 2.625 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2433, allocations: 0 / 0.7351 GB, free: 2.625 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.2449, allocations: 0.8114 MB / 0.7359 GB, free: 1.758 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-06/0.2449, allocations: 4 kB / 0.7359 GB, free: 1.754 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.812e-05/0.245, allocations: 7.938 kB / 0.736 GB, free: 1.746 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.121e-05/0.245, allocations: 4 kB / 0.736 GB, free: 1.742 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-05/0.2451, allocations: 19.97 kB / 0.736 GB, free: 1.723 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.2451, allocations: 0 / 0.736 GB, free: 1.723 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.2451, allocations: 0 / 0.736 GB, free: 1.723 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.2463, allocations: 0.5027 MB / 0.7365 GB, free: 1.203 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 7.482e-05/0.2464, allocations: 104.8 kB / 0.7366 GB, free: 1.082 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.2465, allocations: 23.92 kB / 0.7366 GB, free: 1.059 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002832/0.2468, allocations: 23.98 kB / 0.7366 GB, free: 1.035 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.247, allocations: 67.86 kB / 0.7367 GB, free: 0.9688 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.1e-05/0.2471, allocations: 31.97 kB / 0.7367 GB, free: 0.9375 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0001042/0.2472, allocations: 109.7 kB / 0.7368 GB, free: 0.832 MB / 0.5574 GB Notification: Performance of sort global known variables: time 2.124e-06/0.2472, allocations: 0 / 0.7368 GB, free: 0.832 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0005151/0.2477, allocations: 79.88 kB / 0.7369 GB, free: 0.7539 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 14 (iniFalOut.u,iniTruOut.u,falCle.u,truCle.u,swiCleInp.u,swiCleInp.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.00152/0.2493, allocations: 1.074 MB / 0.7379 GB, free: 15.65 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001049/0.2504, allocations: 355.3 kB / 0.7383 GB, free: 15.31 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2504, allocations: 4.188 kB / 0.7383 GB, free: 15.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005103/0.2509, allocations: 211.8 kB / 0.7385 GB, free: 15.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.2513, allocations: 27.97 kB / 0.7385 GB, free: 15.07 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004126/0.2555, allocations: 2.937 MB / 0.7414 GB, free: 12.04 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.2559, allocations: 0.7374 MB / 0.7421 GB, free: 11.28 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002171/0.2561, allocations: 42.94 kB / 0.7421 GB, free: 11.24 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002514/0.2564, allocations: 75.41 kB / 0.7422 GB, free: 11.16 MB / 0.573 GB Notification: Performance of SimCode: time 1.112e-06/0.2564, allocations: 0 / 0.7422 GB, free: 11.16 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/0.2848, allocations: 4.851 MB / 0.7469 GB, free: 6.422 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000315/0.2852, allocations: 182.3 kB / 0.7471 GB, free: 6.188 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.599/2.884, allocations: 0 / 0.7471 GB, free: 6.188 MB / 0.573 GB