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.Switch.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.176/4.176, allocations: 433.2 MB / 440.7 MB, free: 4.578 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.097e-05/3.076e-05, allocations: 7.547 kB / 0.5325 GB, free: 12.76 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2311, allocations: 98.74 MB / 0.6289 GB, free: 9.148 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2551/0.4862, allocations: 123.9 MB / 0.7499 GB, free: 13.12 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.4865, allocations: 71.95 kB / 0.7499 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004654/0.4912, allocations: 1.095 MB / 0.751 GB, free: 11.96 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.563e-06/0.4912, allocations: 4 kB / 0.751 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.4913, allocations: 4 kB / 0.751 GB, free: 11.95 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007233/0.492, allocations: 386.4 kB / 0.7514 GB, free: 11.53 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.4921, allocations: 8.031 kB / 0.7514 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.886e-05/0.4921, allocations: 11.86 kB / 0.7514 GB, free: 11.51 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.4923, allocations: 170.9 kB / 0.7516 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.4923, allocations: 0 / 0.7516 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.4924, allocations: 7.938 kB / 0.7516 GB, free: 11.29 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001375/0.4925, allocations: 27.98 kB / 0.7516 GB, free: 11.27 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.4926, allocations: 49.69 kB / 0.7516 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.4927, allocations: 0 / 0.7516 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.4927, allocations: 0 / 0.7516 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.4927, allocations: 0 / 0.7516 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00052/0.4932, allocations: 273.4 kB / 0.7519 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000104/0.4934, allocations: 42.45 kB / 0.7519 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.1e-05/0.4934, allocations: 16.98 kB / 0.752 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.4935, allocations: 4 kB / 0.752 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001647/0.4937, allocations: 63.41 kB / 0.752 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.785e-06/0.4937, allocations: 0 / 0.752 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002468/0.4939, allocations: 73.55 kB / 0.7521 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.494, allocations: 51.41 kB / 0.7521 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.4941, allocations: 116.9 kB / 0.7523 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.4941, allocations: 25.7 kB / 0.7523 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.4942, allocations: 92.05 kB / 0.7524 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.173e-05/0.4943, allocations: 19.8 kB / 0.7524 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.4943, allocations: 4 kB / 0.7524 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4944, allocations: 310.8 kB / 0.7527 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.218e-05/0.4945, allocations: 16 kB / 0.7527 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.976e-05/0.4946, allocations: 25.7 kB / 0.7527 GB, free: 9.984 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.768e-05/0.4946, allocations: 12 kB / 0.7527 GB, free: 9.973 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.4946, allocations: 0 / 0.7527 GB, free: 9.973 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001719/0.4948, allocations: 73.62 kB / 0.7528 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.4948, allocations: 8 kB / 0.7528 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4949, allocations: 0 / 0.7528 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.4949, allocations: 0 / 0.7528 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.4951, allocations: 19.98 kB / 0.7528 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.4952, allocations: 0 / 0.7528 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.4954, allocations: 43.8 kB / 0.7529 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.4954, allocations: 0 / 0.7529 GB, free: 9.824 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.494e-05/0.4956, allocations: 109 kB / 0.753 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001702/0.4957, allocations: 69.75 kB / 0.7531 GB, free: 9.637 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.4958, allocations: 3.906 kB / 0.7531 GB, free: 9.633 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.4958, allocations: 16.61 kB / 0.7531 GB, free: 9.617 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.4958, allocations: 3.953 kB / 0.7531 GB, free: 9.613 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4959, allocations: 0 / 0.7531 GB, free: 9.613 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4959, allocations: 7.984 kB / 0.7531 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.496, allocations: 154.2 kB / 0.7532 GB, free: 9.418 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.4961, allocations: 0 / 0.7532 GB, free: 9.418 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.4963, allocations: 23.98 kB / 0.7533 GB, free: 9.395 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.4963, allocations: 0 / 0.7533 GB, free: 9.395 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.4963, allocations: 0 / 0.7533 GB, free: 9.395 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.4963, allocations: 0 / 0.7533 GB, free: 9.395 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4963, allocations: 7.938 kB / 0.7533 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.4965, allocations: 96.98 kB / 0.7534 GB, free: 9.273 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.504e-05/0.4966, allocations: 85 kB / 0.7534 GB, free: 9.172 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.4966, allocations: 7.938 kB / 0.7534 GB, free: 9.164 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.4968, allocations: 19.98 kB / 0.7535 GB, free: 9.145 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.4969, allocations: 11.92 kB / 0.7535 GB, free: 9.133 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.497, allocations: 11.98 kB / 0.7535 GB, free: 9.121 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.006e-05/0.497, allocations: 91.66 kB / 0.7536 GB, free: 9.031 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.01e-07/0.497, allocations: 0 / 0.7536 GB, free: 9.031 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000267/0.4973, allocations: 15.95 kB / 0.7536 GB, free: 9.016 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005098/0.4978, allocations: 0.6203 MB / 0.7542 GB, free: 8.363 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001727/0.498, allocations: 52.11 kB / 0.7542 GB, free: 8.312 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4981, allocations: 0 / 0.7542 GB, free: 8.312 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.342e-05/0.4981, allocations: 20 kB / 0.7543 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.4984, allocations: 8.688 kB / 0.7543 GB, free: 8.285 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004978/0.4989, allocations: 130.6 kB / 0.7544 GB, free: 8.121 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.4992, allocations: 0.6963 MB / 0.7551 GB, free: 7.398 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.51e-05/0.4993, allocations: 192 / 0.7551 GB, free: 7.395 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.292e-05/0.4994, allocations: 23.42 kB / 0.7551 GB, free: 7.375 MB / 0.6355 GB Notification: Performance of SimCode: time 1.022e-06/0.4994, allocations: 0 / 0.7551 GB, free: 7.375 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.5377, allocations: 1.386 MB / 0.7564 GB, free: 6.008 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002823/0.5381, allocations: 149.8 kB / 0.7566 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.412/2.95, allocations: 0 / 0.7566 GB, free: 5.809 MB / 0.6355 GB