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.Toggle.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.Toggle,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.4/4.4, allocations: 433.2 MB / 440.7 MB, free: 4.574 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.988e-05/2.992e-05, allocations: 10.3 kB / 0.5325 GB, free: 12.74 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2187, allocations: 98.72 MB / 0.6289 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2617/0.4805, allocations: 124.2 MB / 0.7502 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.4808, allocations: 71.95 kB / 0.7503 GB, free: 12.68 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009744/0.4906, allocations: 2.247 MB / 0.7525 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4906, allocations: 0 / 0.7525 GB, free: 10.43 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.308e-05/0.4907, allocations: 4 kB / 0.7525 GB, free: 10.43 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001106/0.4918, allocations: 495.8 kB / 0.7529 GB, free: 9.898 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.4919, allocations: 12.03 kB / 0.7529 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.492, allocations: 39.75 kB / 0.753 GB, free: 9.848 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.4922, allocations: 175 kB / 0.7532 GB, free: 9.637 MB / 0.6355 GB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: swiCleInp1.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if swiCleInp1.scenario == 1 then swiCleInp1.y = if swiCleInp1.clr then false else pre(swiCleInp1.y) elseif swiCleInp1.scenario == 2 then swiCleInp1.y = true elseif swiCleInp1.scenario == 3 then swiCleInp1.y = false elseif swiCleInp1.scenario == 4 then swiCleInp1.y = pre(swiCleInp1.y) else swiCleInp1.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: swiCleInp.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if swiCleInp.scenario == 1 then swiCleInp.y = if swiCleInp.clr then false else pre(swiCleInp.y) elseif swiCleInp.scenario == 2 then swiCleInp.y = true elseif swiCleInp.scenario == 3 then swiCleInp.y = false elseif swiCleInp.scenario == 4 then swiCleInp.y = pre(swiCleInp.y) else swiCleInp.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: iniTruOut.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if iniTruOut.scenario == 1 then iniTruOut.y = if iniTruOut.clr then false else pre(iniTruOut.y) elseif iniTruOut.scenario == 2 then iniTruOut.y = true elseif iniTruOut.scenario == 3 then iniTruOut.y = false elseif iniTruOut.scenario == 4 then iniTruOut.y = pre(iniTruOut.y) else iniTruOut.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: iniFalOut.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if iniFalOut.scenario == 1 then iniFalOut.y = if iniFalOut.clr then false else pre(iniFalOut.y) elseif iniFalOut.scenario == 2 then iniFalOut.y = true elseif iniFalOut.scenario == 3 then iniFalOut.y = false elseif iniFalOut.scenario == 4 then iniFalOut.y = pre(iniFalOut.y) else iniFalOut.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: truCle.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if truCle.scenario == 1 then truCle.y = if truCle.clr then false else pre(truCle.y) elseif truCle.scenario == 2 then truCle.y = true elseif truCle.scenario == 3 then truCle.y = false elseif truCle.scenario == 4 then truCle.y = pre(truCle.y) else truCle.y = false end if to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: falCle.y = false to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: if falCle.scenario == 1 then falCle.y = if falCle.clr then false else pre(falCle.y) elseif falCle.scenario == 2 then falCle.y = true elseif falCle.scenario == 3 then falCle.y = false elseif falCle.scenario == 4 then falCle.y = pre(falCle.y) else falCle.y = false end if to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007279/0.4929, allocations: 477.2 kB / 0.7536 GB, free: 9.098 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4931, allocations: 35.98 kB / 0.7536 GB, free: 9.062 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003928/0.4935, allocations: 116 kB / 0.7538 GB, free: 8.949 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006759/0.4941, allocations: 265.5 kB / 0.754 GB, free: 8.684 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.4942, allocations: 4 kB / 0.754 GB, free: 8.68 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.965e-05/0.4942, allocations: 11.98 kB / 0.754 GB, free: 8.668 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.4943, allocations: 7.938 kB / 0.754 GB, free: 8.66 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.496, allocations: 0.5749 MB / 0.7546 GB, free: 8.047 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.4973, allocations: 490.6 kB / 0.7551 GB, free: 7.559 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004412/0.4978, allocations: 204.9 kB / 0.7553 GB, free: 7.355 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.4978, allocations: 8 kB / 0.7553 GB, free: 7.348 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001233/0.4991, allocations: 0.5773 MB / 0.7558 GB, free: 6.758 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 3.336e-06/0.4991, allocations: 0 / 0.7558 GB, free: 6.758 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001299/0.5004, allocations: 475.7 kB / 0.7563 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.5005, allocations: 59.84 kB / 0.7563 GB, free: 6.215 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.5006, allocations: 129.2 kB / 0.7565 GB, free: 6.078 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.5008, allocations: 57.69 kB / 0.7565 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.578e-05/0.5009, allocations: 105.3 kB / 0.7566 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.5011, allocations: 122.6 kB / 0.7567 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.5011, allocations: 8 kB / 0.7567 GB, free: 5.781 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.5013, allocations: 334.8 kB / 0.7571 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004688/0.5018, allocations: 169.6 kB / 0.7572 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005799/0.5024, allocations: 291.6 kB / 0.7575 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.5027, allocations: 122.1 kB / 0.7576 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.5027, allocations: 0 / 0.7576 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001259/0.504, allocations: 467 kB / 0.7581 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.504, allocations: 13.41 kB / 0.7581 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.5041, allocations: 0 / 0.7581 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/0.5041, allocations: 15.89 kB / 0.7581 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.5044, allocations: 43.86 kB / 0.7581 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.5044, allocations: 8 kB / 0.7581 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.5047, allocations: 31.83 kB / 0.7582 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.91e-05/0.5048, allocations: 32 kB / 0.7582 GB, free: 4.227 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 78 ($PRE.falCle.clr,$PRE.falCle.scenario,$PRE.truCle.clr,$PRE.truCle.scenario,$PRE.iniFalOut.clr,$PRE.iniFalOut.scenario,$PRE.iniTruOut.clr,$PRE.iniTruOut.scenario,$PRE.swiCleInp.clr,$PRE.swiCleInp.scenario,$PRE.swiCleInp1.clr,$PRE.swiCleInp1.scenario,$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,$PRE.falCle.u,falCle.u,falCle.clr,$PRE.falCle.y,falCle.y,falCle.scenario,$PRE.truCle.u,truCle.u,truCle.clr,$PRE.truCle.y,truCle.y,truCle.scenario,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,iniFalOut.scenario,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.y,iniTruOut.scenario,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,swiCleInp.scenario,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,swiCleInp1.scenario,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.togInp.pulseStart,togInp.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 6 * 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.0002752/0.5051, allocations: 154.8 kB / 0.7583 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001164/0.5063, allocations: 471.7 kB / 0.7588 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-05/0.5064, allocations: 35.77 kB / 0.7588 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.5065, allocations: 42.17 kB / 0.7589 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.5065, allocations: 4 kB / 0.7589 GB, free: 3.523 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.5066, allocations: 0 / 0.7589 GB, free: 3.523 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.5066, allocations: 7.984 kB / 0.7589 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002464/0.5091, allocations: 1.017 MB / 0.7599 GB, free: 2.43 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.5091, allocations: 8 kB / 0.7599 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.465e-05/0.5092, allocations: 11.94 kB / 0.7599 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.5092, allocations: 4 kB / 0.7599 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.305e-05/0.5093, allocations: 23.97 kB / 0.7599 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.478e-05/0.5093, allocations: 4 kB / 0.7599 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.5093, allocations: 3.984 kB / 0.7599 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.5106, allocations: 0.6248 MB / 0.7605 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.123e-05/0.5107, allocations: 96.86 kB / 0.7606 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.5109, allocations: 35.94 kB / 0.7607 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.5112, allocations: 23.97 kB / 0.7607 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004085/0.5116, allocations: 132.2 kB / 0.7608 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.5117, allocations: 43.97 kB / 0.7609 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.368e-05/0.5119, allocations: 107.7 kB / 0.761 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.5e-07/0.5119, allocations: 4 kB / 0.761 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006211/0.5125, allocations: 95.98 kB / 0.7611 GB, free: 1.148 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 52 (swiCleInp.clr,swiCleInp1.clr,$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,falCle.scenario,truCle.u,truCle.y,truCle.scenario,iniFalOut.u,iniFalOut.y,iniFalOut.scenario,iniTruOut.u,iniTruOut.y,iniTruOut.scenario,swiCleInp.u,swiCleInp.y,swiCleInp.scenario,swiCleInp1.u,swiCleInp1.y,swiCleInp1.scenario,cleInp.pulseStart,togInp.pulseStart,falCle.clr,iniFalOut.clr,iniTruOut.clr,truCle.clr) * Number of discrete states: 12 (iniTruOut.u,iniTruOut.y,iniFalOut.u,iniFalOut.y,truCle.u,truCle.y,falCle.u,falCle.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 6 * 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.001936/0.5145, allocations: 1.482 MB / 0.7625 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.009643/0.5241, allocations: 14.61 MB / 0.7768 GB, free: 0.5039 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.5242, allocations: 4 kB / 0.7768 GB, free: 0.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.5165/1.041, allocations: 14.38 MB / 0.7908 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/1.041, allocations: 28.47 kB / 0.7908 GB, free: 133.9 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/1.043, allocations: 493.1 kB / 0.7913 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/1.044, allocations: 0.7477 MB / 0.792 GB, free: 133 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002514/1.044, allocations: 42.27 kB / 0.7921 GB, free: 133 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/1.044, allocations: 89.3 kB / 0.7922 GB, free: 133 MB / 0.6511 GB Notification: Performance of SimCode: time 1.132e-06/1.044, allocations: 0 / 0.7922 GB, free: 133 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06003/1.104, allocations: 6.908 MB / 0.7989 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/1.104, allocations: 143.3 kB / 0.799 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.62/3.725, allocations: 0 / 0.799 GB, free: 132.4 MB / 0.6511 GB