Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadModel(Buildings): time 4.262/4.262, allocations: 433.4 MB / 440.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.18e-05, allocations: 4 kB / 0.5325 GB, free: 1.914 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5091/0.5091, allocations: 98.71 MB / 0.6289 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1934/0.7026, allocations: 124.2 MB / 0.7502 GB, free: 3.316 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.7028, allocations: 71.91 kB / 0.7503 GB, free: 3.246 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.008665/0.7115, allocations: 2.256 MB / 0.7525 GB, free: 0.9844 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.83e-06/0.7116, allocations: 0 / 0.7525 GB, free: 0.9844 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.785e-05/0.7116, allocations: 4 kB / 0.7525 GB, free: 0.9805 MB / 0.6198 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.0009115/0.7125, allocations: 479.2 kB / 0.7529 GB, free: 480 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.7126, allocations: 15.95 kB / 0.753 GB, free: 464 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.7127, allocations: 39.8 kB / 0.753 GB, free: 424 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.7129, allocations: 182.9 kB / 0.7532 GB, free: 200 kB / 0.6198 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.0006974/0.7136, allocations: 481.1 kB / 0.7536 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.334e-05/0.7137, allocations: 28 kB / 0.7537 GB, free: 15.62 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003543/0.7141, allocations: 115.9 kB / 0.7538 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006168/0.7147, allocations: 269.5 kB / 0.754 GB, free: 15.24 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.7148, allocations: 4 kB / 0.754 GB, free: 15.24 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.179e-05/0.7148, allocations: 15.98 kB / 0.754 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.7149, allocations: 4 kB / 0.754 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.7168, allocations: 0.571 MB / 0.7546 GB, free: 14.61 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.7179, allocations: 486.6 kB / 0.7551 GB, free: 14.12 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004054/0.7183, allocations: 212.8 kB / 0.7553 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.7183, allocations: 8 kB / 0.7553 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001078/0.7194, allocations: 0.5657 MB / 0.7558 GB, free: 13.33 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 4.349e-06/0.7195, allocations: 0 / 0.7558 GB, free: 13.33 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001138/0.7206, allocations: 475.7 kB / 0.7563 GB, free: 12.86 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.7207, allocations: 67.77 kB / 0.7564 GB, free: 12.78 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.7209, allocations: 133 kB / 0.7565 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.721, allocations: 57.69 kB / 0.7565 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.725e-05/0.7211, allocations: 105.3 kB / 0.7566 GB, free: 12.47 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.7213, allocations: 126.6 kB / 0.7568 GB, free: 12.34 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.041e-05/0.7213, allocations: 8 kB / 0.7568 GB, free: 12.34 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001956/0.7215, allocations: 338.8 kB / 0.7571 GB, free: 12 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004298/0.722, allocations: 169.6 kB / 0.7572 GB, free: 11.83 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005502/0.7225, allocations: 283.7 kB / 0.7575 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.7229, allocations: 126.1 kB / 0.7576 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.342e-06/0.7229, allocations: 0 / 0.7576 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001107/0.724, allocations: 466.9 kB / 0.7581 GB, free: 10.92 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.724, allocations: 8.094 kB / 0.7581 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.7241, allocations: 4 kB / 0.7581 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.7241, allocations: 8 kB / 0.7581 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.7243, allocations: 55.8 kB / 0.7582 GB, free: 10.85 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.7243, allocations: 8 kB / 0.7582 GB, free: 10.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.7246, allocations: 27.83 kB / 0.7582 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.59e-05/0.7247, allocations: 32 kB / 0.7582 GB, free: 10.78 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.0002562/0.725, allocations: 164.6 kB / 0.7584 GB, free: 10.61 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.7251, allocations: 35.72 kB / 0.7584 GB, free: 10.58 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.944e-05/0.7252, allocations: 34.19 kB / 0.7584 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.7252, allocations: 4 kB / 0.7584 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/0.7252, allocations: 3.953 kB / 0.7585 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.7252, allocations: 3.984 kB / 0.7585 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.7275, allocations: 1.013 MB / 0.7594 GB, free: 9.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.535e-06/0.7275, allocations: 4 kB / 0.7594 GB, free: 9.453 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.605e-05/0.7276, allocations: 11.92 kB / 0.7595 GB, free: 9.441 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.7276, allocations: 7.953 kB / 0.7595 GB, free: 9.434 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.218e-05/0.7277, allocations: 27.97 kB / 0.7595 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.315e-06/0.7277, allocations: 4 kB / 0.7595 GB, free: 9.402 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.628e-06/0.7277, allocations: 4 kB / 0.7595 GB, free: 9.398 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.7288, allocations: 0.623 MB / 0.7601 GB, free: 8.723 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.112e-05/0.7289, allocations: 100.8 kB / 0.7602 GB, free: 8.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.7291, allocations: 28 kB / 0.7602 GB, free: 8.578 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.7294, allocations: 27.97 kB / 0.7603 GB, free: 8.551 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/0.7297, allocations: 136.1 kB / 0.7604 GB, free: 8.418 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.284e-05/0.7298, allocations: 43.97 kB / 0.7604 GB, free: 8.375 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.602e-05/0.7299, allocations: 99.22 kB / 0.7605 GB, free: 8.277 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.48e-07/0.73, allocations: 4 kB / 0.7605 GB, free: 8.273 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006068/0.7306, allocations: 95.98 kB / 0.7606 GB, free: 8.18 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.0002582/0.7309, allocations: 154.5 kB / 0.7608 GB, free: 8.023 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01081/0.7417, allocations: 14.62 MB / 0.775 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.657e-06/0.7417, allocations: 0 / 0.775 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.01013/0.7519, allocations: 14.38 MB / 0.7891 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.7524, allocations: 34.66 kB / 0.7891 GB, free: 9.988 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.7537, allocations: 428.9 kB / 0.7895 GB, free: 9.531 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.7542, allocations: 0.7471 MB / 0.7903 GB, free: 8.758 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001964/0.7544, allocations: 43.27 kB / 0.7903 GB, free: 8.719 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.7546, allocations: 47.41 kB / 0.7903 GB, free: 8.672 MB / 0.6667 GB Notification: Performance of SimCode: time 1.645e-06/0.7546, allocations: 0 / 0.7903 GB, free: 8.672 MB / 0.6667 GB Notification: Performance of Templates: time 0.01373/0.7683, allocations: 5.207 MB / 0.7954 GB, free: 3.461 MB / 0.6667 GB