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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.005/4.005, allocations: 432.6 MB / 445.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.032e-05/4.039e-05, allocations: 9.328 kB / 0.5383 GB, free: 10.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.203, allocations: 98.73 MB / 0.6347 GB, free: 1.891 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.224/0.4271, allocations: 124.9 MB / 0.7567 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.4274, allocations: 71.95 kB / 0.7567 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0101/0.4375, allocations: 2.264 MB / 0.7589 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.154e-06/0.4376, allocations: 0 / 0.7589 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.294e-05/0.4376, allocations: 4 kB / 0.7589 GB, free: 2.52 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.001188/0.4388, allocations: 491.1 kB / 0.7594 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.4388, allocations: 12.03 kB / 0.7594 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.439, allocations: 62.53 kB / 0.7595 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.4391, allocations: 35.75 kB / 0.7595 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.4393, allocations: 175 kB / 0.7597 GB, free: 1.668 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.0007521/0.4401, allocations: 0.4948 MB / 0.7602 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.4402, allocations: 47.98 kB / 0.7602 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.4411, allocations: 337.4 kB / 0.7605 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.4411, allocations: 0 / 0.7605 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.186e-05/0.4412, allocations: 15.98 kB / 0.7605 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.4412, allocations: 4 kB / 0.7606 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004897/0.4417, allocations: 152 kB / 0.7607 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.4434, allocations: 0.629 MB / 0.7613 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.445, allocations: 0.5532 MB / 0.7619 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005677/0.4456, allocations: 243.9 kB / 0.7621 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.4456, allocations: 0 / 0.7621 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00138/0.447, allocations: 0.6405 MB / 0.7627 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=52): time 3.506e-06/0.447, allocations: 0 / 0.7627 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of matching and sorting (n=52): time 0.001532/0.4486, allocations: 0.5544 MB / 0.7633 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.015e-05/0.4487, allocations: 63.83 kB / 0.7633 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.4488, allocations: 139.5 kB / 0.7634 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.449, allocations: 73.69 kB / 0.7635 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.23e-05/0.4491, allocations: 105.4 kB / 0.7636 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.4493, allocations: 130.7 kB / 0.7637 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.521e-05/0.4493, allocations: 20 kB / 0.7638 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4495, allocations: 346.7 kB / 0.7641 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006192/0.4501, allocations: 205.6 kB / 0.7643 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000705/0.4509, allocations: 329.2 kB / 0.7646 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004676/0.4513, allocations: 167.2 kB / 0.7648 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.4514, allocations: 0 / 0.7648 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001476/0.4528, allocations: 0.5727 MB / 0.7653 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.672e-05/0.4529, allocations: 11.98 kB / 0.7653 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.4529, allocations: 3.953 kB / 0.7653 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/0.453, allocations: 8 kB / 0.7653 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/0.4532, allocations: 43.86 kB / 0.7654 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.205e-05/0.4533, allocations: 12.42 kB / 0.7654 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.4536, allocations: 47.83 kB / 0.7654 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.413e-05/0.4537, allocations: 36 kB / 0.7655 GB, free: 11.48 MB / 0.6511 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.0002998/0.454, allocations: 186 kB / 0.7657 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.4542, allocations: 43.7 kB / 0.7657 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.4543, allocations: 38.19 kB / 0.7657 GB, free: 11.21 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.4543, allocations: 11.89 kB / 0.7657 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.4544, allocations: 4 kB / 0.7657 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.4544, allocations: 3.984 kB / 0.7657 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.4572, allocations: 1.157 MB / 0.7669 GB, free: 9.961 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.455e-06/0.4572, allocations: 4 kB / 0.7669 GB, free: 9.957 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.136e-05/0.4573, allocations: 15.92 kB / 0.7669 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.239e-05/0.4574, allocations: 4 kB / 0.7669 GB, free: 9.938 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.299e-05/0.4574, allocations: 32.09 kB / 0.7669 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.744e-06/0.4575, allocations: 8 kB / 0.7669 GB, free: 9.898 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4575, allocations: 0 / 0.7669 GB, free: 9.898 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.4591, allocations: 0.7224 MB / 0.7676 GB, free: 9.121 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.434e-05/0.4592, allocations: 104.8 kB / 0.7677 GB, free: 9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.4594, allocations: 39.98 kB / 0.7678 GB, free: 8.961 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003685/0.4597, allocations: 39.92 kB / 0.7678 GB, free: 8.922 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003885/0.4602, allocations: 136.2 kB / 0.768 GB, free: 8.789 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.4603, allocations: 51.95 kB / 0.768 GB, free: 8.738 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.932e-05/0.4604, allocations: 101.9 kB / 0.7681 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.71e-07/0.4604, allocations: 0 / 0.7681 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006231/0.461, allocations: 124 kB / 0.7682 GB, free: 8.52 MB / 0.6511 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.002082/0.4631, allocations: 1.597 MB / 0.7698 GB, free: 6.867 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.5363/0.9995, allocations: 14.77 MB / 0.7842 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.9995, allocations: 1 kB / 0.7842 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.006159/1.006, allocations: 14.51 MB / 0.7984 GB, free: 119.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000627/1.006, allocations: 42.23 kB / 0.7984 GB, free: 119.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/1.009, allocations: 0.5766 MB / 0.799 GB, free: 119.4 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/1.009, allocations: 0.7514 MB / 0.7997 GB, free: 118.7 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002213/1.009, allocations: 39.14 kB / 0.7997 GB, free: 118.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/1.009, allocations: 90.11 kB / 0.7998 GB, free: 118.7 MB / 0.6511 GB Notification: Performance of SimCode: time 1.193e-06/1.009, allocations: 0 / 0.7998 GB, free: 118.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/1.047, allocations: 7.336 MB / 0.807 GB, free: 118.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/1.047, allocations: 164 kB / 0.8072 GB, free: 117.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.553, allocations: 0 / 0.8072 GB, free: 117.9 MB / 0.6511 GB