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.Latch.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.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009173/0.009173, allocations: 109.6 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.001185/0.001185, allocations: 183.8 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.908/1.908, allocations: 194.5 MB / 211.3 MB, free: 11.08 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.524/2.524, allocations: 236.2 MB / 492.6 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.0004772, allocations: 16 kB / 0.587 GB, free: 2.129 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6036/0.6041, allocations: 98.7 MB / 0.6833 GB, free: 16.6 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2187/0.8228, allocations: 124.9 MB / 0.8053 GB, free: 1.25 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.8231, allocations: 75.95 kB / 0.8054 GB, free: 1.176 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.01643/0.8395, allocations: 2.234 MB / 0.8076 GB, free: 14.94 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.003e-06/0.8396, allocations: 0 / 0.8076 GB, free: 14.94 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.423e-05/0.8397, allocations: 4 kB / 0.8076 GB, free: 14.93 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.001882/0.8416, allocations: 499.9 kB / 0.8081 GB, free: 14.39 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.607e-05/0.8417, allocations: 8.031 kB / 0.8081 GB, free: 14.39 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.8419, allocations: 43.81 kB / 0.8081 GB, free: 14.34 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.8423, allocations: 182.8 kB / 0.8083 GB, free: 14.12 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 = 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.001326/0.8437, allocations: 490.9 kB / 0.8088 GB, free: 13.58 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002195/0.8439, allocations: 55.91 kB / 0.8088 GB, free: 13.52 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.8456, allocations: 325.4 kB / 0.8091 GB, free: 13.2 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.8456, allocations: 224 / 0.8091 GB, free: 13.2 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.8458, allocations: 19.98 kB / 0.8091 GB, free: 13.18 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.784e-05/0.8458, allocations: 7.938 kB / 0.8092 GB, free: 13.17 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009914/0.8468, allocations: 155.9 kB / 0.8093 GB, free: 13.02 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002973/0.8498, allocations: 0.6289 MB / 0.8099 GB, free: 12.34 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002994/0.8529, allocations: 0.5609 MB / 0.8105 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.853, allocations: 4 kB / 0.8105 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002476/0.8555, allocations: 0.5665 MB / 0.811 GB, free: 11.19 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 7.626e-06/0.8555, allocations: 0 / 0.811 GB, free: 11.19 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.004154/0.8597, allocations: 0.7605 MB / 0.8118 GB, free: 10.42 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.8598, allocations: 59.84 kB / 0.8118 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.8602, allocations: 142.2 kB / 0.812 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0002598/0.8605, allocations: 73.69 kB / 0.812 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.8607, allocations: 109.4 kB / 0.8121 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003367/0.861, allocations: 118.7 kB / 0.8122 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.8612, allocations: 28 kB / 0.8123 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0003296/0.8615, allocations: 334.8 kB / 0.8126 GB, free: 9.531 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.8628, allocations: 209.2 kB / 0.8128 GB, free: 9.328 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.8641, allocations: 286.7 kB / 0.8131 GB, free: 9.016 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009402/0.8651, allocations: 170.1 kB / 0.8132 GB, free: 8.852 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.8651, allocations: 0 / 0.8132 GB, free: 8.852 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002905/0.8681, allocations: 0.5689 MB / 0.8138 GB, free: 8.273 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.8681, allocations: 4 kB / 0.8138 GB, free: 8.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/0.8682, allocations: 4 kB / 0.8138 GB, free: 8.266 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.308e-05/0.8682, allocations: 7.953 kB / 0.8138 GB, free: 8.258 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003968/0.8687, allocations: 43.86 kB / 0.8138 GB, free: 8.215 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-05/0.8687, allocations: 4 kB / 0.8138 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005783/0.8693, allocations: 35.98 kB / 0.8139 GB, free: 8.176 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.8695, allocations: 32 kB / 0.8139 GB, free: 8.145 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 () * 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.0006294/0.8702, allocations: 195 kB / 0.8141 GB, free: 7.945 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002286/0.8704, allocations: 43.69 kB / 0.8141 GB, free: 7.902 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001971/0.8706, allocations: 38.62 kB / 0.8142 GB, free: 7.863 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.8707, allocations: 4 kB / 0.8142 GB, free: 7.859 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/0.8707, allocations: 3.953 kB / 0.8142 GB, free: 7.855 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/0.8707, allocations: 7.984 kB / 0.8142 GB, free: 7.848 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004069/0.8748, allocations: 1.013 MB / 0.8152 GB, free: 6.781 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.822e-06/0.8749, allocations: 0 / 0.8152 GB, free: 6.781 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.875, allocations: 15.94 kB / 0.8152 GB, free: 6.766 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.722e-05/0.8751, allocations: 3.984 kB / 0.8152 GB, free: 6.762 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000158/0.8752, allocations: 31.94 kB / 0.8152 GB, free: 6.73 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.484e-05/0.8753, allocations: 4 kB / 0.8152 GB, free: 6.727 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.801e-06/0.8753, allocations: 3.984 kB / 0.8152 GB, free: 6.723 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00296/0.8783, allocations: 0.6677 MB / 0.8159 GB, free: 6.039 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001602/0.8785, allocations: 96.83 kB / 0.816 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002827/0.8788, allocations: 39.98 kB / 0.816 GB, free: 5.887 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006297/0.8794, allocations: 39.94 kB / 0.8161 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006193/0.8801, allocations: 116.2 kB / 0.8162 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001985/0.8803, allocations: 47.97 kB / 0.8162 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.000226/0.8806, allocations: 105.6 kB / 0.8163 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.413e-06/0.8806, allocations: 3.938 kB / 0.8163 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001358/0.882, allocations: 120 kB / 0.8164 GB, free: 5.461 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) * 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.0005165/0.8825, allocations: 160.6 kB / 0.8166 GB, free: 5.297 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.02225/0.9048, allocations: 14.8 MB / 0.831 GB, free: 5.996 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.149e-06/0.9049, allocations: 0 / 0.831 GB, free: 5.996 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.01202/0.9169, allocations: 14.54 MB / 0.8452 GB, free: 6.945 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004559/0.9174, allocations: 44 kB / 0.8453 GB, free: 6.902 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.9191, allocations: 0.6416 MB / 0.8459 GB, free: 6.234 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.9195, allocations: 0.7615 MB / 0.8466 GB, free: 5.445 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.000179/0.9197, allocations: 38.91 kB / 0.8467 GB, free: 5.402 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.9199, allocations: 43.41 kB / 0.8467 GB, free: 5.359 MB / 0.6667 GB Notification: Performance of SimCode: time 1.625e-06/0.9199, allocations: 0 / 0.8467 GB, free: 5.359 MB / 0.6667 GB Notification: Performance of Templates: time 0.01344/0.9334, allocations: 4.937 MB / 0.8515 GB, free: 436 kB / 0.6667 GB