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.LogicalSwitch.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.LogicalSwitch,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.118/4.118, allocations: 433.2 MB / 440.7 MB, free: 4.578 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.645e-05, allocations: 5.625 kB / 0.5325 GB, free: 12.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2236, allocations: 98.73 MB / 0.6289 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2293/0.453, allocations: 123.6 MB / 0.7496 GB, free: 13.36 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.4533, allocations: 71.95 kB / 0.7497 GB, free: 13.29 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004739/0.458, allocations: 1.145 MB / 0.7508 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4581, allocations: 4 kB / 0.7508 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.4581, allocations: 0 / 0.7508 GB, free: 12.14 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007111/0.4588, allocations: 394.2 kB / 0.7512 GB, free: 11.71 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.4589, allocations: 8.031 kB / 0.7512 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.043e-05/0.459, allocations: 15.86 kB / 0.7512 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.4592, allocations: 178.9 kB / 0.7514 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.4592, allocations: 8 kB / 0.7514 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.4592, allocations: 4 kB / 0.7514 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001216/0.4594, allocations: 24 kB / 0.7514 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.4595, allocations: 57.61 kB / 0.7515 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.4595, allocations: 0 / 0.7515 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.4596, allocations: 4 kB / 0.7515 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.4596, allocations: 0 / 0.7515 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.4602, allocations: 281.4 kB / 0.7517 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.4603, allocations: 38.58 kB / 0.7518 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.444e-05/0.4604, allocations: 24.95 kB / 0.7518 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.4604, allocations: 3.938 kB / 0.7518 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001995/0.4606, allocations: 91.36 kB / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.034e-06/0.4606, allocations: 0 / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.000268/0.4609, allocations: 85.58 kB / 0.752 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.461, allocations: 55.41 kB / 0.752 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.4611, allocations: 120.9 kB / 0.7521 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.4611, allocations: 25.7 kB / 0.7522 GB, free: 10.56 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.361e-05/0.4612, allocations: 92.12 kB / 0.7522 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.4613, allocations: 15.72 kB / 0.7523 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.4613, allocations: 8 kB / 0.7523 GB, free: 10.44 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4614, allocations: 318.8 kB / 0.7526 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.545e-05/0.4615, allocations: 16 kB / 0.7526 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.098e-05/0.4616, allocations: 43.44 kB / 0.7526 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.057e-05/0.4617, allocations: 23.95 kB / 0.7527 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4617, allocations: 8 kB / 0.7527 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002062/0.4619, allocations: 85.53 kB / 0.7527 GB, free: 9.93 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4619, allocations: 4 kB / 0.7527 GB, free: 9.926 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4619, allocations: 4 kB / 0.7527 GB, free: 9.922 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.462, allocations: 0 / 0.7527 GB, free: 9.922 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.139e-05/0.4621, allocations: 11.94 kB / 0.7528 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.4621, allocations: 7.938 kB / 0.7528 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.4623, allocations: 24.08 kB / 0.7528 GB, free: 9.879 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.4623, allocations: 4 kB / 0.7528 GB, free: 9.875 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 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.935e-05/0.4624, allocations: 109.6 kB / 0.7529 GB, free: 9.762 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001958/0.4627, allocations: 89.52 kB / 0.753 GB, free: 9.668 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.4627, allocations: 7.906 kB / 0.753 GB, free: 9.66 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.4627, allocations: 12.62 kB / 0.753 GB, free: 9.648 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4628, allocations: 3.953 kB / 0.753 GB, free: 9.645 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.4628, allocations: 7.984 kB / 0.753 GB, free: 9.637 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.4628, allocations: 4 kB / 0.753 GB, free: 9.633 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/0.463, allocations: 162.2 kB / 0.7532 GB, free: 9.438 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.463, allocations: 0 / 0.7532 GB, free: 9.438 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.672e-05/0.463, allocations: 0 / 0.7532 GB, free: 9.438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.158e-05/0.4631, allocations: 4 kB / 0.7532 GB, free: 9.434 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.4631, allocations: 7.875 kB / 0.7532 GB, free: 9.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4631, allocations: 0 / 0.7532 GB, free: 9.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.4631, allocations: 0 / 0.7532 GB, free: 9.426 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002273/0.4633, allocations: 121.1 kB / 0.7533 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-05/0.4634, allocations: 89.02 kB / 0.7534 GB, free: 9.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.4635, allocations: 7.938 kB / 0.7534 GB, free: 9.176 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.4636, allocations: 19.97 kB / 0.7534 GB, free: 9.156 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.865e-05/0.4638, allocations: 19.97 kB / 0.7534 GB, free: 9.137 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.4638, allocations: 0 / 0.7534 GB, free: 9.137 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.449e-05/0.4639, allocations: 95.23 kB / 0.7535 GB, free: 9.043 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.7e-07/0.4639, allocations: 4 kB / 0.7535 GB, free: 9.039 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002703/0.4642, allocations: 16 kB / 0.7535 GB, free: 9.023 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: 10 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005561/0.4647, allocations: 0.6457 MB / 0.7542 GB, free: 8.348 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001854/0.4649, allocations: 55.92 kB / 0.7542 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4649, allocations: 8.188 kB / 0.7542 GB, free: 8.285 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 9.634e-05/0.465, allocations: 31.94 kB / 0.7543 GB, free: 8.254 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.4654, allocations: 16.92 kB / 0.7543 GB, free: 8.238 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005578/0.466, allocations: 145.8 kB / 0.7544 GB, free: 8.059 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.4663, allocations: 0.7002 MB / 0.7551 GB, free: 7.332 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.351e-05/0.4664, allocations: 8.547 kB / 0.7551 GB, free: 7.324 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.168e-05/0.4664, allocations: 20 kB / 0.7551 GB, free: 7.305 MB / 0.6355 GB Notification: Performance of SimCode: time 1.082e-06/0.4665, allocations: 0 / 0.7551 GB, free: 7.305 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04093/0.5074, allocations: 1.72 MB / 0.7568 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002755/0.5077, allocations: 150.4 kB / 0.757 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.274/2.782, allocations: 3.938 kB / 0.757 GB, free: 5.414 MB / 0.6355 GB