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/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.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.09/4.09, allocations: 432.6 MB / 445.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.417e-05/4.443e-05, allocations: 5.781 kB / 0.5383 GB, free: 10.26 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2249, allocations: 98.73 MB / 0.6347 GB, free: 1.918 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2445/0.4694, allocations: 124.8 MB / 0.7566 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/0.4698, allocations: 71.95 kB / 0.7567 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01017/0.48, allocations: 2.225 MB / 0.7589 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.773e-06/0.48, allocations: 0 / 0.7589 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.339e-05/0.48, allocations: 4 kB / 0.7589 GB, free: 2.613 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.001056/0.4811, allocations: 491.1 kB / 0.7593 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.4812, allocations: 12.03 kB / 0.7594 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.4813, allocations: 54.55 kB / 0.7594 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.4814, allocations: 39.8 kB / 0.7594 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.4816, allocations: 178.9 kB / 0.7596 GB, free: 1.762 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.0007703/0.4824, allocations: 0.4928 MB / 0.7601 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.4825, allocations: 43.98 kB / 0.7601 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008461/0.4834, allocations: 317.5 kB / 0.7604 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.4834, allocations: 4 kB / 0.7604 GB, free: 0.8359 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.914e-05/0.4835, allocations: 15.98 kB / 0.7605 GB, free: 0.8203 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.4835, allocations: 4 kB / 0.7605 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004957/0.484, allocations: 152 kB / 0.7606 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.4857, allocations: 0.6213 MB / 0.7612 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002273/0.4881, allocations: 0.5531 MB / 0.7618 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007722/0.4889, allocations: 244.8 kB / 0.762 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.4889, allocations: 8 kB / 0.762 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001307/0.4903, allocations: 0.5626 MB / 0.7626 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=52): time 3.717e-06/0.4903, allocations: 0 / 0.7626 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of matching and sorting (n=52): time 0.001556/0.4919, allocations: 0.5583 MB / 0.7631 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.492, allocations: 59.83 kB / 0.7632 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001928/0.4922, allocations: 143.6 kB / 0.7633 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.4923, allocations: 73.69 kB / 0.7634 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.362e-05/0.4924, allocations: 101.4 kB / 0.7635 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.4926, allocations: 122.7 kB / 0.7636 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-05/0.4927, allocations: 28 kB / 0.7636 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4928, allocations: 338.8 kB / 0.7639 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005652/0.4934, allocations: 193.6 kB / 0.7641 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006978/0.4941, allocations: 284.1 kB / 0.7644 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/0.4946, allocations: 163.2 kB / 0.7645 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.966e-06/0.4946, allocations: 4 kB / 0.7645 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001435/0.4961, allocations: 0.5417 MB / 0.7651 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.4961, allocations: 8 kB / 0.7651 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.4962, allocations: 3.953 kB / 0.7651 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.826e-05/0.4962, allocations: 4 kB / 0.7651 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.4965, allocations: 47.84 kB / 0.7651 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.721e-05/0.4965, allocations: 4 kB / 0.7651 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.4969, allocations: 47.83 kB / 0.7652 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-05/0.497, allocations: 36.22 kB / 0.7652 GB, free: 11.8 MB / 0.6511 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.0002858/0.4973, allocations: 178.1 kB / 0.7654 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.4974, allocations: 39.72 kB / 0.7654 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000125/0.4975, allocations: 38.17 kB / 0.7655 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.4975, allocations: 15.89 kB / 0.7655 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.4976, allocations: 4 kB / 0.7655 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4976, allocations: 0 / 0.7655 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.4996, allocations: 0.9895 MB / 0.7664 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.4997, allocations: 12 kB / 0.7665 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.507e-05/0.4998, allocations: 11.94 kB / 0.7665 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.437e-05/0.4998, allocations: 7.953 kB / 0.7665 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.789e-05/0.4999, allocations: 27.97 kB / 0.7665 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.4999, allocations: 0 / 0.7665 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4999, allocations: 0 / 0.7665 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.5014, allocations: 0.6638 MB / 0.7671 GB, free: 9.738 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.557e-05/0.5015, allocations: 96.77 kB / 0.7672 GB, free: 9.625 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.5017, allocations: 47.88 kB / 0.7673 GB, free: 9.578 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003727/0.502, allocations: 31.98 kB / 0.7673 GB, free: 9.547 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003297/0.5024, allocations: 120.2 kB / 0.7674 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.926e-05/0.5025, allocations: 43.97 kB / 0.7675 GB, free: 9.387 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001047/0.5026, allocations: 101.3 kB / 0.7676 GB, free: 9.289 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.21e-07/0.5026, allocations: 0 / 0.7676 GB, free: 9.289 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000576/0.5032, allocations: 124 kB / 0.7677 GB, free: 9.168 MB / 0.6511 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.001912/0.5051, allocations: 1.252 MB / 0.7689 GB, free: 7.891 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.5096/1.015, allocations: 14.77 MB / 0.7833 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/1.015, allocations: 0.5312 kB / 0.7833 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.006121/1.021, allocations: 14.54 MB / 0.7975 GB, free: 121.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005173/1.022, allocations: 38.16 kB / 0.7976 GB, free: 121.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/1.024, allocations: 0.5766 MB / 0.7981 GB, free: 121.2 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/1.024, allocations: 0.7504 MB / 0.7989 GB, free: 120.5 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002061/1.024, allocations: 36.31 kB / 0.7989 GB, free: 120.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002614/1.024, allocations: 84.61 kB / 0.799 GB, free: 120.5 MB / 0.6511 GB Notification: Performance of SimCode: time 1.012e-06/1.024, allocations: 0 / 0.799 GB, free: 120.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04244/1.067, allocations: 6.942 MB / 0.8058 GB, free: 120 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/1.067, allocations: 157.6 kB / 0.8059 GB, free: 119.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.746/3.813, allocations: 1.469 kB / 0.8059 GB, free: 119.8 MB / 0.6511 GB