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 Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01593/0.01593, allocations: 109.7 kB / 15.05 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001744/0.001744, allocations: 180.3 kB / 15.94 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.999/1.999, allocations: 194.6 MB / 211.3 MB, free: 11.07 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.256/2.256, allocations: 236.2 MB / 492.6 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005037/0.0005038, allocations: 16 kB / 0.587 GB, free: 2.125 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5509/0.5514, allocations: 98.7 MB / 0.6833 GB, free: 16.84 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1964/0.7478, allocations: 125 MB / 0.8054 GB, free: 1.328 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.7481, allocations: 67.97 kB / 0.8054 GB, free: 1.262 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.008562/0.7567, allocations: 2.285 MB / 0.8077 GB, free: 14.97 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.611e-06/0.7567, allocations: 0 / 0.8077 GB, free: 14.97 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.174e-05/0.7567, allocations: 4 kB / 0.8077 GB, free: 14.97 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.0009271/0.7577, allocations: 495.9 kB / 0.8081 GB, free: 14.43 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.7577, allocations: 12.03 kB / 0.8082 GB, free: 14.42 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.7578, allocations: 35.81 kB / 0.8082 GB, free: 14.39 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.758, allocations: 182.9 kB / 0.8084 GB, free: 14.17 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.0006692/0.7587, allocations: 486.8 kB / 0.8088 GB, free: 13.62 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.7588, allocations: 47.98 kB / 0.8089 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007877/0.7596, allocations: 345.3 kB / 0.8092 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.7597, allocations: 224 / 0.8092 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.982e-05/0.7597, allocations: 19.98 kB / 0.8092 GB, free: 13.21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.682e-06/0.7597, allocations: 7.938 kB / 0.8092 GB, free: 13.2 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004262/0.7602, allocations: 151.9 kB / 0.8094 GB, free: 13.05 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.7616, allocations: 0.6367 MB / 0.81 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.7629, allocations: 0.5644 MB / 0.8105 GB, free: 11.8 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.7629, allocations: 4 kB / 0.8106 GB, free: 11.79 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001209/0.7641, allocations: 0.6261 MB / 0.8112 GB, free: 11.16 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 3.848e-06/0.7642, allocations: 0 / 0.8112 GB, free: 11.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.00181/0.766, allocations: 0.776 MB / 0.8119 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.7661, allocations: 55.84 kB / 0.812 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.7662, allocations: 142.2 kB / 0.8121 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.7664, allocations: 73.69 kB / 0.8122 GB, free: 10.08 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.422e-05/0.7665, allocations: 109.4 kB / 0.8123 GB, free: 9.969 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.7667, allocations: 122.7 kB / 0.8124 GB, free: 9.848 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.674e-05/0.7667, allocations: 24 kB / 0.8124 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001953/0.7669, allocations: 338.8 kB / 0.8127 GB, free: 9.484 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005388/0.7675, allocations: 221.2 kB / 0.813 GB, free: 9.27 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006385/0.7682, allocations: 331.9 kB / 0.8133 GB, free: 8.895 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004056/0.7686, allocations: 170.1 kB / 0.8134 GB, free: 8.73 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.613e-06/0.7686, allocations: 4 kB / 0.8134 GB, free: 8.727 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001307/0.7699, allocations: 0.5844 MB / 0.814 GB, free: 8.133 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.7699, allocations: 8 kB / 0.814 GB, free: 8.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.77, allocations: 4 kB / 0.814 GB, free: 8.121 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.77, allocations: 16.33 kB / 0.814 GB, free: 8.105 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.7702, allocations: 51.84 kB / 0.8141 GB, free: 8.055 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.7702, allocations: 7.938 kB / 0.8141 GB, free: 8.047 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.7705, allocations: 39.98 kB / 0.8141 GB, free: 8.008 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.029e-05/0.7706, allocations: 36 kB / 0.8142 GB, free: 7.973 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 () * Number of clocked 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.0003112/0.7709, allocations: 202.9 kB / 0.8144 GB, free: 7.766 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.7711, allocations: 39.72 kB / 0.8144 GB, free: 7.727 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.7712, allocations: 42.61 kB / 0.8144 GB, free: 7.684 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.7712, allocations: 8 kB / 0.8144 GB, free: 7.676 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.529e-06/0.7712, allocations: 3.953 kB / 0.8145 GB, free: 7.672 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.759e-06/0.7712, allocations: 0 / 0.8145 GB, free: 7.672 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.7737, allocations: 1.176 MB / 0.8156 GB, free: 6.418 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.627e-06/0.7737, allocations: 4 kB / 0.8156 GB, free: 6.414 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.704e-05/0.7738, allocations: 8.062 kB / 0.8156 GB, free: 6.406 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.403e-06/0.7738, allocations: 8 kB / 0.8156 GB, free: 6.398 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-05/0.7739, allocations: 35.97 kB / 0.8157 GB, free: 6.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.138e-05/0.7739, allocations: 7.938 kB / 0.8157 GB, free: 6.355 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.045e-06/0.7739, allocations: 3.984 kB / 0.8157 GB, free: 6.352 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.7753, allocations: 0.7302 MB / 0.8164 GB, free: 5.57 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.434e-05/0.7754, allocations: 96.83 kB / 0.8165 GB, free: 5.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.7756, allocations: 39.98 kB / 0.8165 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.7758, allocations: 35.97 kB / 0.8165 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003071/0.7762, allocations: 140.1 kB / 0.8167 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.506e-05/0.7763, allocations: 51.95 kB / 0.8167 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001061/0.7764, allocations: 105.6 kB / 0.8168 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.9e-07/0.7764, allocations: 0 / 0.8168 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006292/0.777, allocations: 124 kB / 0.8169 GB, free: 4.973 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) * Number of clocked states: 0 () * 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.0002611/0.7773, allocations: 159.2 kB / 0.8171 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01129/0.7886, allocations: 14.81 MB / 0.8316 GB, free: 5.496 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.746e-06/0.7887, allocations: 0 / 0.8316 GB, free: 5.496 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.01063/0.7993, allocations: 14.52 MB / 0.8457 GB, free: 6.465 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.7998, allocations: 50.36 kB / 0.8458 GB, free: 6.418 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.8014, allocations: 0.6334 MB / 0.8464 GB, free: 5.746 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.8019, allocations: 0.7508 MB / 0.8471 GB, free: 4.965 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001934/0.8021, allocations: 42.95 kB / 0.8472 GB, free: 4.922 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.8023, allocations: 51.41 kB / 0.8472 GB, free: 4.871 MB / 0.6667 GB Notification: Performance of SimCode: time 1.625e-06/0.8023, allocations: 0 / 0.8472 GB, free: 4.871 MB / 0.6667 GB Notification: Performance of Templates: time 0.01434/0.8167, allocations: 5.343 MB / 0.8525 GB, free: 15.53 MB / 0.6823 GB