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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 4.285/4.285, allocations: 433 MB / 440.3 MB, free: 4.797 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5811/4.866, allocations: 104.3 MB / 0.5319 GB, free: 12.99 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/5.084, allocations: 98.74 MB / 0.6283 GB, free: 9.738 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2393/5.324, allocations: 124.1 MB / 0.7495 GB, free: 13.48 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/5.324, allocations: 75.58 kB / 0.7496 GB, free: 13.41 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.0109/5.335, allocations: 2.409 MB / 0.7519 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/5.335, allocations: 8 kB / 0.7519 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/5.335, allocations: 35.81 kB / 0.752 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/5.335, allocations: 186.9 kB / 0.7521 GB, free: 10.69 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.0007155/5.336, allocations: 478.9 kB / 0.7526 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/5.336, allocations: 31.98 kB / 0.7526 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004468/5.337, allocations: 112 kB / 0.7527 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000704/5.337, allocations: 245.5 kB / 0.753 GB, free: 9.766 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/5.337, allocations: 0 / 0.753 GB, free: 9.766 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-05/5.337, allocations: 15.98 kB / 0.753 GB, free: 9.75 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/5.337, allocations: 4 kB / 0.753 GB, free: 9.746 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/5.339, allocations: 0.5631 MB / 0.7535 GB, free: 9.145 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/5.34, allocations: 419.3 kB / 0.7539 GB, free: 8.727 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004716/5.341, allocations: 208.9 kB / 0.7541 GB, free: 8.52 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/5.341, allocations: 0 / 0.7541 GB, free: 8.52 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/5.342, allocations: 331.8 kB / 0.7544 GB, free: 8.184 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=52): time 6.402e-06/5.342, allocations: 0 / 0.7544 GB, free: 8.184 MB / 0.6355 GB Notification: Performance of matching and sorting (n=52): time 0.001278/5.343, allocations: 410.8 kB / 0.7548 GB, free: 7.773 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/5.343, allocations: 59.84 kB / 0.7549 GB, free: 7.703 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/5.343, allocations: 133.2 kB / 0.755 GB, free: 7.562 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001318/5.343, allocations: 61.62 kB / 0.7551 GB, free: 7.496 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.569e-05/5.344, allocations: 97.34 kB / 0.7552 GB, free: 7.395 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/5.344, allocations: 114.7 kB / 0.7553 GB, free: 7.281 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/5.344, allocations: 4 kB / 0.7553 GB, free: 7.277 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001356/5.344, allocations: 342.8 kB / 0.7556 GB, free: 6.934 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000488/5.344, allocations: 157.3 kB / 0.7558 GB, free: 6.781 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005872/5.345, allocations: 241.6 kB / 0.756 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003546/5.345, allocations: 127.1 kB / 0.7561 GB, free: 6.398 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/5.345, allocations: 0 / 0.7561 GB, free: 6.398 MB / 0.6355 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002005/5.347, allocations: 443.5 kB / 0.7565 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/5.347, allocations: 4 kB / 0.7565 GB, free: 5.953 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/5.347, allocations: 4 kB / 0.7565 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.237e-05/5.348, allocations: 4 kB / 0.7565 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004001/5.348, allocations: 44.11 kB / 0.7566 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.847e-05/5.348, allocations: 11.94 kB / 0.7566 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005519/5.349, allocations: 31.77 kB / 0.7566 GB, free: 5.859 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/5.349, allocations: 32 kB / 0.7567 GB, free: 5.828 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.0004026/5.349, allocations: 154.1 kB / 0.7568 GB, free: 5.672 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/5.349, allocations: 39.7 kB / 0.7568 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002066/5.35, allocations: 34.19 kB / 0.7569 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/5.35, allocations: 4 kB / 0.7569 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/5.35, allocations: 0 / 0.7569 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.298e-05/5.35, allocations: 3.984 kB / 0.7569 GB, free: 5.598 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/5.353, allocations: 0.7862 MB / 0.7577 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/5.353, allocations: 4 kB / 0.7577 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/5.353, allocations: 19.92 kB / 0.7577 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.035e-05/5.353, allocations: 3.984 kB / 0.7577 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000153/5.353, allocations: 19.97 kB / 0.7577 GB, free: 4.723 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.398e-05/5.353, allocations: 11.91 kB / 0.7577 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/5.353, allocations: 0 / 0.7577 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00192/5.355, allocations: 0.5067 MB / 0.7582 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002048/5.357, allocations: 0.8743 MB / 0.7591 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/5.357, allocations: 96.83 kB / 0.7592 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002443/5.358, allocations: 27.98 kB / 0.7592 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/5.358, allocations: 23.97 kB / 0.7592 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005227/5.359, allocations: 108.2 kB / 0.7593 GB, free: 3.023 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/5.359, allocations: 47.91 kB / 0.7594 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001568/5.359, allocations: 103.3 kB / 0.7594 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002411/5.362, allocations: 88 kB / 0.7595 GB, free: 2.789 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.0004363/5.362, allocations: 159.2 kB / 0.7597 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.01412/5.376, allocations: 14.61 MB / 0.774 GB, free: 3.508 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/5.376, allocations: 0 / 0.774 GB, free: 3.508 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.2806/5.657, allocations: 14.41 MB / 0.788 GB, free: 220.6 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005235/5.657, allocations: 28.53 kB / 0.788 GB, free: 220.6 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/5.659, allocations: 438.5 kB / 0.7885 GB, free: 220.5 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004133/5.66, allocations: 0.7991 MB / 0.7892 GB, free: 219.8 MB / 0.6511 GB Notification: Performance of SimCode: time 1.222e-06/5.66, allocations: 0 / 0.7892 GB, free: 219.8 MB / 0.6511 GB