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.Latch.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.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadModel(Buildings): time 3.969/3.969, allocations: 433.4 MB / 440.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.513e-05/2.516e-05, allocations: 8 kB / 0.5325 GB, free: 1.848 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.496/0.4961, allocations: 98.71 MB / 0.6289 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.6933, allocations: 124.2 MB / 0.7502 GB, free: 3.293 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.6936, allocations: 75.95 kB / 0.7503 GB, free: 3.219 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.008318/0.7019, allocations: 2.213 MB / 0.7524 GB, free: 1 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.009e-06/0.702, allocations: 0 / 0.7524 GB, free: 1 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.125e-05/0.702, allocations: 8 kB / 0.7524 GB, free: 0.9922 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.000865/0.7029, allocations: 479.2 kB / 0.7529 GB, free: 492 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.7029, allocations: 16 kB / 0.7529 GB, free: 476 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.703, allocations: 39.75 kB / 0.7529 GB, free: 436 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001724/0.7032, allocations: 171 kB / 0.7531 GB, free: 224 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 = pre(swiCleInp1.y) elseif swiCleInp1.scenario == 4 then swiCleInp1.y = false 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 = pre(swiCleInp.y) elseif swiCleInp.scenario == 4 then swiCleInp.y = false 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 = pre(iniTruOut.y) elseif iniTruOut.scenario == 4 then iniTruOut.y = false 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 = pre(iniFalOut.y) elseif iniFalOut.scenario == 4 then iniFalOut.y = false 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 = pre(truCle.y) elseif truCle.scenario == 4 then truCle.y = false 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 = pre(falCle.y) elseif falCle.scenario == 4 then falCle.y = false else falCle.y = false end if to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006887/0.7039, allocations: 495.6 kB / 0.7536 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.365e-05/0.704, allocations: 35.98 kB / 0.7536 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003449/0.7044, allocations: 111.9 kB / 0.7537 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.705, allocations: 249.5 kB / 0.7539 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.705, allocations: 0 / 0.7539 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.883e-05/0.7051, allocations: 7.984 kB / 0.754 GB, free: 15.26 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.475e-06/0.7051, allocations: 4 kB / 0.754 GB, free: 15.26 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.7064, allocations: 0.571 MB / 0.7545 GB, free: 14.65 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.7075, allocations: 494.6 kB / 0.755 GB, free: 14.16 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004426/0.708, allocations: 200.8 kB / 0.7552 GB, free: 13.96 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.708, allocations: 8 kB / 0.7552 GB, free: 13.95 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009785/0.709, allocations: 0.5033 MB / 0.7557 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 4.346e-06/0.7091, allocations: 3.938 kB / 0.7557 GB, free: 13.43 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001107/0.7102, allocations: 471.7 kB / 0.7561 GB, free: 12.96 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.7102, allocations: 63.84 kB / 0.7562 GB, free: 12.89 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.7104, allocations: 125.2 kB / 0.7563 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001081/0.7105, allocations: 53.69 kB / 0.7564 GB, free: 12.7 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.997e-05/0.7106, allocations: 109.3 kB / 0.7565 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.7108, allocations: 126.6 kB / 0.7566 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.7109, allocations: 4 kB / 0.7566 GB, free: 12.46 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001808/0.7111, allocations: 334.8 kB / 0.7569 GB, free: 12.12 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004106/0.7115, allocations: 161.6 kB / 0.7571 GB, free: 11.96 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005152/0.712, allocations: 246.5 kB / 0.7573 GB, free: 11.69 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.7123, allocations: 118.1 kB / 0.7574 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.7123, allocations: 0 / 0.7574 GB, free: 11.58 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001018/0.7134, allocations: 446.6 kB / 0.7578 GB, free: 11.14 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.7134, allocations: 4 kB / 0.7578 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.7134, allocations: 4 kB / 0.7578 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.7134, allocations: 4 kB / 0.7579 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.7136, allocations: 55.8 kB / 0.7579 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.7137, allocations: 4 kB / 0.7579 GB, free: 11.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002438/0.7139, allocations: 28.14 kB / 0.7579 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.543e-05/0.714, allocations: 35.94 kB / 0.758 GB, free: 11 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 78 ($PRE.falCle.scenario,$PRE.truCle.scenario,$PRE.iniFalOut.scenario,$PRE.iniTruOut.scenario,$PRE.swiCleInp.scenario,$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,$PRE.falCle.clr,falCle.clr,$PRE.falCle.y,falCle.y,falCle.scenario,$PRE.truCle.u,truCle.u,$PRE.truCle.clr,truCle.clr,$PRE.truCle.y,truCle.y,truCle.scenario,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,iniFalOut.scenario,$PRE.iniTruOut.u,iniTruOut.u,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.y,iniTruOut.scenario,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,swiCleInp.scenario,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,swiCleInp1.scenario,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.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.0002317/0.7143, allocations: 150.1 kB / 0.7581 GB, free: 10.85 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.837e-05/0.7144, allocations: 39.72 kB / 0.7582 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.992e-05/0.7145, allocations: 30.19 kB / 0.7582 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.7145, allocations: 15.98 kB / 0.7582 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.67e-06/0.7145, allocations: 3.953 kB / 0.7582 GB, free: 10.76 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.181e-06/0.7145, allocations: 0 / 0.7582 GB, free: 10.76 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.7161, allocations: 0.8456 MB / 0.759 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.7161, allocations: 0 / 0.759 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.251e-05/0.7162, allocations: 15.92 kB / 0.759 GB, free: 9.855 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.734e-06/0.7162, allocations: 0 / 0.759 GB, free: 9.855 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.446e-05/0.7162, allocations: 19.97 kB / 0.7591 GB, free: 9.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.284e-06/0.7163, allocations: 4 kB / 0.7591 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.144e-06/0.7163, allocations: 3.953 kB / 0.7591 GB, free: 9.828 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.7173, allocations: 0.5623 MB / 0.7596 GB, free: 9.25 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.585e-05/0.7174, allocations: 96.91 kB / 0.7597 GB, free: 9.137 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.7176, allocations: 20 kB / 0.7597 GB, free: 9.117 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.7178, allocations: 23.97 kB / 0.7597 GB, free: 9.094 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/0.7181, allocations: 116.2 kB / 0.7599 GB, free: 8.98 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.7183, allocations: 47.97 kB / 0.7599 GB, free: 8.934 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.01e-05/0.7184, allocations: 99.27 kB / 0.76 GB, free: 8.836 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.72e-07/0.7184, allocations: 3.938 kB / 0.76 GB, free: 8.832 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000531/0.7189, allocations: 87.98 kB / 0.7601 GB, free: 8.746 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: 52 ($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.clr,falCle.y,falCle.scenario,truCle.u,truCle.clr,truCle.y,truCle.scenario,iniFalOut.u,iniFalOut.clr,iniFalOut.y,iniFalOut.scenario,iniTruOut.u,iniTruOut.clr,iniTruOut.y,iniTruOut.scenario,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp.scenario,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp1.scenario,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 18 (iniTruOut.u,iniTruOut.clr,iniFalOut.u,iniFalOut.clr,truCle.u,truCle.clr,falCle.u,falCle.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.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.0002476/0.7192, allocations: 154.1 kB / 0.7602 GB, free: 8.59 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01056/0.7298, allocations: 14.61 MB / 0.7745 GB, free: 9.477 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.109e-06/0.7298, allocations: 4 kB / 0.7745 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.01009/0.7399, allocations: 14.41 MB / 0.7886 GB, free: 10.56 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.7404, allocations: 23.97 kB / 0.7886 GB, free: 10.54 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.7417, allocations: 433.7 kB / 0.789 GB, free: 10.09 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.7421, allocations: 0.7497 MB / 0.7897 GB, free: 9.316 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001828/0.7423, allocations: 35.28 kB / 0.7898 GB, free: 9.281 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.7425, allocations: 43.41 kB / 0.7898 GB, free: 9.238 MB / 0.6667 GB Notification: Performance of SimCode: time 1.919e-06/0.7425, allocations: 4 kB / 0.7898 GB, free: 9.234 MB / 0.6667 GB Notification: Performance of Templates: time 0.0131/0.7556, allocations: 4.831 MB / 0.7945 GB, free: 4.406 MB / 0.6667 GB