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.Toggle.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.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") [: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.35/2.35, allocations: 253.1 MB / 260.4 MB, free: 7.625 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.002232/0.002231, allocations: 173.3 kB / 319.6 MB, free: 3.297 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.167/2.167, 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.001295/0.001295, allocations: 94.62 kB / 0.6746 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.008e-05/1.023e-05, allocations: 0 / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2624, allocations: 106.3 MB / 0.8881 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7247/0.9873, allocations: 132 MB / 1.017 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000324/0.9877, allocations: 72.08 kB / 1.017 GB, free: 6.289 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.009266/0.9969, allocations: 1.675 MB / 1.019 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.23e-05/0.997, allocations: 0 / 1.019 GB, free: 4.836 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.001039/0.9981, allocations: 444.3 kB / 1.019 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.9982, allocations: 12.03 kB / 1.019 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.9983, allocations: 23.8 kB / 1.019 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.9985, allocations: 182.4 kB / 1.019 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.365e-05/0.9986, allocations: 7.984 kB / 1.019 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.625e-05/0.9987, allocations: 23.98 kB / 1.019 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003268/0.999, allocations: 78.42 kB / 1.019 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.9996, allocations: 197.7 kB / 1.02 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.9996, allocations: 2.625 kB / 1.02 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.467e-05/0.9997, allocations: 15.59 kB / 1.02 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.9997, allocations: 4 kB / 1.02 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/1.001, allocations: 498.8 kB / 1.02 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007359/1.002, allocations: 247.6 kB / 1.02 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/1.002, allocations: 127.5 kB / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/1.002, allocations: 4 kB / 1.02 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007775/1.003, allocations: 297.7 kB / 1.021 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 3.146e-06/1.003, allocations: 0 / 1.021 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.001022/1.004, allocations: 331.7 kB / 1.021 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/1.004, allocations: 55.41 kB / 1.021 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/1.005, allocations: 132.1 kB / 1.021 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001369/1.005, allocations: 48.27 kB / 1.021 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.089e-05/1.005, allocations: 99.47 kB / 1.021 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/1.005, allocations: 105.6 kB / 1.022 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/1.005, allocations: 0 / 1.022 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001693/1.005, allocations: 332.8 kB / 1.022 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000386/1.006, allocations: 130.2 kB / 1.022 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/1.006, allocations: 206.6 kB / 1.022 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002586/1.006, allocations: 84.89 kB / 1.022 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/1.006, allocations: 0 / 1.022 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009466/1.007, allocations: 337.5 kB / 1.023 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/1.007, allocations: 6.5 kB / 1.023 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/1.007, allocations: 4.234 kB / 1.023 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.833e-05/1.007, allocations: 12.22 kB / 1.023 GB, free: 1.371 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/1.008, allocations: 30.86 kB / 1.023 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/1.008, allocations: 7.938 kB / 1.023 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000315/1.008, allocations: 15.98 kB / 1.023 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.256e-05/1.008, allocations: 15.75 kB / 1.023 GB, free: 1.312 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.clr,$PRE.truCle.clr,$PRE.iniFalOut.clr,$PRE.iniTruOut.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$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,falCle.clr,$PRE.falCle.y,falCle.y,$PRE.truCle.u,truCle.u,truCle.clr,$PRE.truCle.y,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.y,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.togInp.pulseStart,togInp.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.0002779/1.008, allocations: 148.8 kB / 1.023 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-05/1.008, allocations: 19.81 kB / 1.023 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/1.009, allocations: 33.62 kB / 1.023 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/1.009, allocations: 4 kB / 1.023 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.009, allocations: 3.984 kB / 1.023 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/1.009, allocations: 7.891 kB / 1.023 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002214/1.011, allocations: 0.8259 MB / 1.024 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.011, allocations: 0 / 1.024 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.527e-05/1.011, allocations: 15.84 kB / 1.024 GB, free: 356 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.098e-05/1.011, allocations: 0 / 1.024 GB, free: 356 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.7e-05/1.011, allocations: 23.22 kB / 1.024 GB, free: 340 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/1.011, allocations: 4 kB / 1.024 GB, free: 336 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/1.011, allocations: 7.922 kB / 1.024 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009823/1.012, allocations: 494.4 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/1.012, allocations: 96.83 kB / 1.024 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/1.013, allocations: 22.05 kB / 1.024 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/1.013, allocations: 23.03 kB / 1.024 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003299/1.013, allocations: 97.72 kB / 1.024 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-05/1.013, allocations: 39.19 kB / 1.024 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001122/1.014, allocations: 96.91 kB / 1.025 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006192/1.014, allocations: 63.98 kB / 1.025 GB, free: 15.45 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 46 (swiCleInp.clr,swiCleInp1.clr,$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.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.pulseStart,togInp.pulseStart,falCle.clr,iniFalOut.clr,iniTruOut.clr,truCle.clr) * Number of discrete states: 12 (iniTruOut.u,iniTruOut.y,iniFalOut.u,iniFalOut.y,truCle.u,truCle.y,falCle.u,falCle.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.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.00035/1.015, allocations: 138 kB / 1.025 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001039/1.016, allocations: 335.6 kB / 1.025 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/1.016, allocations: 4.062 kB / 1.025 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005269/1.016, allocations: 208.7 kB / 1.025 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/1.017, allocations: 23.78 kB / 1.025 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/1.019, allocations: 390.5 kB / 1.026 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007246/1.019, allocations: 0.7883 MB / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of SimCode: time 1.382e-06/1.019, allocations: 0 / 1.026 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of Templates: time 0.01378/1.033, allocations: 4.068 MB / 1.03 GB, free: 9.723 MB / 0.6511 GB