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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.106/4.106, allocations: 433.2 MB / 440.7 MB, free: 4.574 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.565e-05/3.566e-05, allocations: 6.5 kB / 0.5325 GB, free: 12.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2302, allocations: 98.74 MB / 0.6289 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2499/0.4801, allocations: 124.2 MB / 0.7502 GB, free: 12.79 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.4804, allocations: 71.95 kB / 0.7502 GB, free: 12.71 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009725/0.4902, allocations: 2.215 MB / 0.7524 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.793e-06/0.4902, allocations: 0 / 0.7524 GB, free: 10.49 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.4903, allocations: 4 kB / 0.7524 GB, free: 10.49 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.001156/0.4914, allocations: 495.1 kB / 0.7529 GB, free: 9.957 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.4915, allocations: 12.03 kB / 0.7529 GB, free: 9.945 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.4916, allocations: 35.77 kB / 0.7529 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.4919, allocations: 179 kB / 0.7531 GB, free: 9.695 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.0007627/0.4926, allocations: 477.1 kB / 0.7535 GB, free: 9.156 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.4928, allocations: 39.98 kB / 0.7536 GB, free: 9.117 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004028/0.4932, allocations: 108 kB / 0.7537 GB, free: 9.012 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.4939, allocations: 261.4 kB / 0.7539 GB, free: 8.75 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.4939, allocations: 0 / 0.7539 GB, free: 8.75 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.931e-05/0.494, allocations: 4 kB / 0.7539 GB, free: 8.746 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.494, allocations: 4 kB / 0.7539 GB, free: 8.742 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.4956, allocations: 0.5671 MB / 0.7545 GB, free: 8.137 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.497, allocations: 490.6 kB / 0.755 GB, free: 7.648 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004759/0.4975, allocations: 208.8 kB / 0.7552 GB, free: 7.441 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.4975, allocations: 4 kB / 0.7552 GB, free: 7.438 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.4987, allocations: 0.5033 MB / 0.7557 GB, free: 6.922 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 5.661e-06/0.4987, allocations: 3.938 kB / 0.7557 GB, free: 6.918 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001261/0.5, allocations: 479.6 kB / 0.7561 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.5, allocations: 55.84 kB / 0.7562 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.5002, allocations: 133.1 kB / 0.7563 GB, free: 6.234 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.5003, allocations: 53.7 kB / 0.7563 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.681e-05/0.5005, allocations: 105.3 kB / 0.7564 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.5006, allocations: 118.6 kB / 0.7566 GB, free: 5.953 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.5007, allocations: 4 kB / 0.7566 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001965/0.5009, allocations: 346.8 kB / 0.7569 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004489/0.5014, allocations: 157.6 kB / 0.757 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005469/0.5019, allocations: 238.5 kB / 0.7573 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.5023, allocations: 122.1 kB / 0.7574 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.5023, allocations: 0 / 0.7574 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00115/0.5035, allocations: 442.9 kB / 0.7578 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.5035, allocations: 12.03 kB / 0.7578 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.5035, allocations: 3.984 kB / 0.7578 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.5036, allocations: 11.95 kB / 0.7578 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.5038, allocations: 39.86 kB / 0.7579 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.5039, allocations: 11.94 kB / 0.7579 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.5042, allocations: 23.83 kB / 0.7579 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.068e-05/0.5043, allocations: 35.98 kB / 0.7579 GB, free: 4.492 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.0002657/0.5045, allocations: 154.1 kB / 0.7581 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001154/0.5057, allocations: 463.7 kB / 0.7585 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.742e-05/0.5058, allocations: 35.77 kB / 0.7586 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.5059, allocations: 38.17 kB / 0.7586 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.506, allocations: 4 kB / 0.7586 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.506, allocations: 0 / 0.7586 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.506, allocations: 11.92 kB / 0.7586 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.5077, allocations: 0.8494 MB / 0.7595 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.5077, allocations: 0 / 0.7595 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.923e-05/0.5078, allocations: 11.94 kB / 0.7595 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.5078, allocations: 7.953 kB / 0.7595 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.421e-05/0.5079, allocations: 23.97 kB / 0.7595 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.5079, allocations: 0 / 0.7595 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5079, allocations: 0 / 0.7595 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.5092, allocations: 0.5584 MB / 0.76 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.611e-05/0.5093, allocations: 96.83 kB / 0.7601 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.5095, allocations: 31.88 kB / 0.7602 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003255/0.5098, allocations: 27.97 kB / 0.7602 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003419/0.5102, allocations: 112.2 kB / 0.7603 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.5103, allocations: 47.97 kB / 0.7603 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.66e-05/0.5104, allocations: 95.28 kB / 0.7604 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.21e-07/0.5104, allocations: 0 / 0.7604 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005718/0.511, allocations: 91.98 kB / 0.7605 GB, free: 1.762 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.001684/0.5127, allocations: 1.155 MB / 0.7616 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.009674/0.5224, allocations: 14.61 MB / 0.7759 GB, free: 1.473 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.5224, allocations: 0 / 0.7759 GB, free: 1.473 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.4975/1.02, allocations: 14.4 MB / 0.79 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/1.021, allocations: 23.92 kB / 0.79 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001917/1.022, allocations: 491.2 kB / 0.7905 GB, free: 134.2 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/1.023, allocations: 0.7463 MB / 0.7912 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002284/1.023, allocations: 39.66 kB / 0.7912 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/1.023, allocations: 86.42 kB / 0.7913 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of SimCode: time 1.332e-06/1.023, allocations: 0 / 0.7913 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05649/1.08, allocations: 6.512 MB / 0.7977 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/1.08, allocations: 141.2 kB / 0.7978 GB, free: 133 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.584/3.664, allocations: 7.938 kB / 0.7978 GB, free: 133 MB / 0.6511 GB