Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") [: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 loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.535/2.535, allocations: 253.1 MB / 260.4 MB, free: 7.469 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0017/0.001699, allocations: 173.3 kB / 319.6 MB, free: 3.324 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.4 MB / 0.5704 GB, free: 15.04 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001333/0.001332, allocations: 96.95 kB / 0.6746 GB, free: 4.406 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.238e-05/1.258e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2351, allocations: 106.2 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6827/0.9179, allocations: 132 MB / 1.017 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/0.9183, allocations: 71.02 kB / 1.017 GB, free: 6.32 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.008625/0.9269, allocations: 1.66 MB / 1.019 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.927, allocations: 0 / 1.019 GB, free: 4.879 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.001076/0.9281, allocations: 443.9 kB / 1.019 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.9281, allocations: 8.031 kB / 1.019 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.9282, allocations: 22.94 kB / 1.019 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.9285, allocations: 186.9 kB / 1.019 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.9285, allocations: 11.98 kB / 1.019 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.481e-05/0.9286, allocations: 23.38 kB / 1.019 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000327/0.9289, allocations: 83.48 kB / 1.019 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005029/0.9295, allocations: 194.2 kB / 1.02 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.9295, allocations: 2.625 kB / 1.02 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.9295, allocations: 11.97 kB / 1.02 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.9296, allocations: 0 / 1.02 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.9309, allocations: 0.4928 MB / 1.02 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000757/0.9317, allocations: 247.8 kB / 1.02 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003366/0.932, allocations: 141.1 kB / 1.02 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.9321, allocations: 4 kB / 1.02 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007181/0.9328, allocations: 290 kB / 1.021 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 3.236e-06/0.9328, allocations: 0 / 1.021 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.000982/0.9338, allocations: 330.4 kB / 1.021 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.9339, allocations: 62.66 kB / 1.021 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.9341, allocations: 127.6 kB / 1.021 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.962e-05/0.9342, allocations: 50.62 kB / 1.021 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.072e-05/0.9343, allocations: 96.41 kB / 1.021 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.9344, allocations: 98.03 kB / 1.021 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.9344, allocations: 0 / 1.021 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.9346, allocations: 337.4 kB / 1.022 GB, free: 2 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.935, allocations: 110.4 kB / 1.022 GB, free: 1.938 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.9354, allocations: 201.2 kB / 1.022 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.9357, allocations: 80.39 kB / 1.022 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.9357, allocations: 0 / 1.022 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008548/0.9366, allocations: 321.6 kB / 1.022 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.9366, allocations: 7.984 kB / 1.022 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.9366, allocations: 0 / 1.022 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.952e-05/0.9367, allocations: 12.16 kB / 1.022 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.9369, allocations: 23.55 kB / 1.022 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.9369, allocations: 16.12 kB / 1.022 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.9372, allocations: 15.98 kB / 1.023 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.765e-05/0.9373, allocations: 17.19 kB / 1.023 GB, free: 1.375 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: 66 ($PRE.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$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,falCle.y,$PRE.truCle.u,truCle.u,$PRE.truCle.clr,truCle.clr,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.clr,iniFalOut.clr,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,$PRE.iniTruOut.clr,iniTruOut.clr,iniTruOut.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$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 (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * 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.0002342/0.9375, allocations: 144.2 kB / 1.023 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.443e-05/0.9376, allocations: 19.81 kB / 1.023 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.9377, allocations: 32.31 kB / 1.023 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.9378, allocations: 4 kB / 1.023 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.9378, allocations: 7.922 kB / 1.023 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.9378, allocations: 3.906 kB / 1.023 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001469/0.9393, allocations: 0.697 MB / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.9393, allocations: 0 / 1.023 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.317e-05/0.9394, allocations: 15.11 kB / 1.023 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.9394, allocations: 0 / 1.023 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.662e-05/0.9395, allocations: 18.97 kB / 1.023 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.9395, allocations: 0 / 1.023 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.9395, allocations: 4 kB / 1.023 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00097/0.9405, allocations: 445.9 kB / 1.024 GB, free: 188 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.407e-05/0.9406, allocations: 92.83 kB / 1.024 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.9408, allocations: 17.42 kB / 1.024 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.9411, allocations: 19.98 kB / 1.024 GB, free: 44 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003156/0.9414, allocations: 84.97 kB / 1.024 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.519e-05/0.9415, allocations: 30.86 kB / 1.024 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001052/0.9417, allocations: 100.9 kB / 1.024 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005298/0.9422, allocations: 59.98 kB / 1.024 GB, free: 15.81 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: 46 ($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,truCle.u,truCle.clr,truCle.y,iniFalOut.u,iniFalOut.clr,iniFalOut.y,iniTruOut.u,iniTruOut.clr,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * 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.0002822/0.9425, allocations: 136.6 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009558/0.9435, allocations: 339.7 kB / 1.025 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.9435, allocations: 0 / 1.025 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005784/0.9441, allocations: 260.6 kB / 1.025 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.9446, allocations: 19.89 kB / 1.025 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.9462, allocations: 386.9 kB / 1.025 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006403/0.9468, allocations: 0.7789 MB / 1.026 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of SimCode: time 1.282e-06/0.9468, allocations: 0 / 1.026 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of Templates: time 0.01252/0.9594, allocations: 3.793 MB / 1.03 GB, free: 10.35 MB / 0.6511 GB